Skip to content

Conversation

@KevinMind
Copy link
Contributor

@KevinMind KevinMind commented Aug 22, 2024

Follow up of failled deployment: https://github.com/mozilla/addons-server/actions/runs/10505053101

Context

Currently our CI runs a locales job that extracts locales and runs the push locales command. On non master push it was running in dry mode and for any tag based from master this would be fine as it would include the automatically extracted locale strings.

But.... if you cherry pick a commit without cherry picking the extracted locales... then they are missing and locale job tries to push new strings.

This fails because we are on a detached head. There is no reason to run the push job at all on any event other than push so we can just avoid this class of bugs entirely.

We did NOT see this before because we didn't run any CI on tags before deploying them previously.

Checklist

  • Add #ISSUENUM at the top of your PR to an existing open issue in the mozilla/addons repository.
  • Successfully verified the change locally.
  • The change is covered by automated tests, or otherwise indicated why doing so is unnecessary/impossible.
  • Add before and after screenshots (Only for changes that impact the UI).
  • Add or update relevant docs reflecting the changes made.

@KevinMind KevinMind requested a review from diox August 22, 2024 11:45
@KevinMind KevinMind requested a review from diox August 22, 2024 12:50
@KevinMind KevinMind merged commit b410505 into master Aug 22, 2024
@KevinMind KevinMind deleted the fix-locale-tag branch August 22, 2024 13:49
KevinMind added a commit that referenced this pull request Aug 22, 2024
* CI: Only run push locales on push events

* TMP: also run push on pull requests

* TMP: revert the push check
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