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(ci): Capture grep -q exit code 1 to fix string extraction job #15571

Merged
merged 1 commit into from
Jul 27, 2023

Conversation

LZoog
Copy link
Contributor

@LZoog LZoog commented Jul 21, 2023

Because:

  • Our string extraction CI job is failing when changes are found and fxa-l10n has not been requested for review yet

This commit:

  • Captures grep exit code to compare against directly, as grep -q "fxa-l10n" was failing and breaking out of the command pipeline with exit code 1

A different fix was made previously, as it appeared to least at least fix the job in this case. Looks like that worked for when fxa-l10n was already added, but I didn't realize I'd neglected to test the case where l10n hadn't been requested yet.

I hit that case in #15561 - this change is in that branch at the time of writing to show its success, see CI job under "Extract gettext and flag for review."

Because:
* Our string extraction CI job is failing when changes are found and l10n-devs has not been requested for review yet

This commit:
* Captures grep exit code to compare against directly, as grep -q "fxa-l10n" was failing and breaking out of the command pipeline with exit code 1
@LZoog LZoog requested a review from a team July 21, 2023 23:48
Copy link
Contributor

@vbudhram vbudhram left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@LZoog Thanks, I think this is why #15602 is failing too?

@LZoog LZoog merged commit 0a95a43 into main Jul 27, 2023
@LZoog LZoog deleted the fix-ci-string-extraction-again branch July 27, 2023 17:07
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.

3 participants