Skip to content

fix(ci): Capture grep -q exit code 1 to fix string extraction job#15571

Merged
LZoog merged 1 commit intomainfrom
fix-ci-string-extraction-again
Jul 27, 2023
Merged

fix(ci): Capture grep -q exit code 1 to fix string extraction job#15571
LZoog merged 1 commit intomainfrom
fix-ci-string-extraction-again

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
@nx-cloud
Copy link

nx-cloud bot commented Jul 21, 2023

@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