Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: throw error if no translations were found #824

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

yevheniyJ
Copy link
Collaborator

No description provided.

@yevheniyJ yevheniyJ linked an issue Jul 13, 2024 that may be closed by this pull request
Copy link

codecov bot commented Jul 13, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 65.90%. Comparing base (f742d84) to head (946d6fe).

Files Patch % Lines
...m/crowdin/cli/commands/actions/DownloadAction.java 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##               main     #824   +/-   ##
=========================================
  Coverage     65.90%   65.90%           
  Complexity     1514     1514           
=========================================
  Files           223      223           
  Lines          6160     6160           
  Branches        932      932           
=========================================
  Hits           4059     4059           
  Misses         1562     1562           
  Partials        539      539           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andrii-bodnar andrii-bodnar merged commit fd62985 into main Jul 18, 2024
13 checks passed
@andrii-bodnar andrii-bodnar deleted the download-translations-empty-error branch July 18, 2024 07:32
@sbrandwoo
Copy link

Please can you consider reverting this change. We run crowdin-sync via the github action and now our jobs are failing with the following:

❌ Couldn't find any file to download. Since you are using the 'Skip untranslated files' option, please make sure you have fully translated files

There's no error here, everything is working as expected, but now the process is failing.

@ben-wharton
Copy link

ben-wharton commented Jul 24, 2024

As @sbrandwoo says, we run this workflow daily on >100 repos in our infra, and this caused many engineers to wonder why their builds appear to be failing (whereas really their translations just aren't ready yet).

@andrii-bodnar
Copy link
Member

andrii-bodnar commented Jul 24, 2024

@sbrandwoo @ben-wharton Sorry for the inconvenience.

If the skip untranslated files option is enabled, we can probably still exit with code 0 as before. It looks like that would be pretty expected in this case.

@yevheniyJ, what do you think?

@yevheniyJ
Copy link
Collaborator Author

Agree, sorry for inconvenience. PR with fix is prepared #829
CC @andrii-bodnar

@andrii-bodnar
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not return Exit Code Null if all files failed to download via CLI
4 participants