Repository navigation
ci: stop calling the changelog updater from the OTA release PR workflow - #39274
Conversation
Pushing release/X.Y.Z-ota already runs update-release-changelog.yml, so the second call raced it and could skip the OTA release PR.
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
PR template — items to address before "Ready for review"Warnings — informational, address before merging:
See docs/readme/ready-for-review.md for the full Definition of Ready for Review. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #39274 +/- ##
=======================================
Coverage 87.83% 87.83%
=======================================
Files 8127 8128 +1
Lines 237657 237703 +46
Branches 60392 60402 +10
=======================================
+ Hits 208735 208786 +51
+ Misses 16387 16385 -2
+ Partials 12535 12532 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| if: needs.resolve-bases.outputs.is_ota == 'true' && steps.ota_release_pr.outputs.exists != 'true' | ||
| uses: MetaMask/github-tools/.github/actions/update-release-changelog@v1 | ||
| env: | ||
| AI_ANALYZER_LITELLM_KEY: ${{ secrets.AI_ANALYZER_LITELLM_KEY }} |
There was a problem hiding this comment.
NIT: Should we delete it from workflow_call args?
There was a problem hiding this comment.
Ah you're right, we don't need that secret here anymore, fixed.
ad2e4c7
|



Description
Creating a
release/X.Y.Z-otabranch starts two workflows in the same second:update-release-changelog.yml(on push) andauto-create-release-pr.yml, whosecreate-release-pr.ymlalso called the changelog updater in its OTA path. Both updaters generate the same changelog PR, so one of them loses the race. When the OTA step lost, its job failed and "Create OTA release PR to stable" was skipped, so no release PR to stable existed (observed on a fork with a delayed push workflow).This removes the updater call from the OTA path. The push workflow already runs for the new branch, and again for the
OTA_VERSIONbump push, so the changelog PR is still published.Expect one thing to look different: the bump moves the branch while the creation push's run may still be generating. With a released github-tools that includes MetaMask/github-tools#309, that run ends green with a
noticeannotation and the bump push's run publishes the changelog. With older github-tools versions the creation push's run can end red ("Target release branch ... changed during changelog generation"). It is a different commit than the PR head, so the PR page is not affected, and nothing is blocked.Tested on a fork (
consensys-test/metamask-mobile-howard) with this workflow:Changelog
CHANGELOG entry: null
Related issues
Refs: MetaMask/github-tools#309
Manual testing steps
Screenshots/Recordings
N/A, CI workflow change.
Pre-merge author checklist
Note
Low Risk
CI-only change that removes a redundant step; OTA release PR creation and changelog generation remain covered by the existing push workflow.
Overview
Fixes a race when
release/X.Y.Z-otais created:update-release-changelog.yml(on push) andcreate-release-pr.ymlboth invoked the changelog updater, so duplicate changelog PRs competed and a failed updater run could skip Create OTA release PR to stable.The OTA path in
create-release-pr.ymlno longer runs Update release changelog (OTA hotfix) or passesAI_ANALYZER_LITELLM_KEYfromauto-create-release-pr.yml. Changelog updates stay on the push-triggered workflow (including after theOTA_VERSIONbump push).Reviewed by Cursor Bugbot for commit ad2e4c7. Bugbot is set up for automated code reviews on this repo. Configure here.