Skip to content

ci: stop calling the changelog updater from the OTA release PR workflow - #39274

Merged
HowardBraham merged 2 commits into
mainfrom
drop-ota-changelog-step
Nov 10, 2026
Merged

HowardBraham merged 2 commits into
mainfrom
drop-ota-changelog-step

Conversation

@HowardBraham

@HowardBraham HowardBraham commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Description

Creating a release/X.Y.Z-ota branch starts two workflows in the same second: update-release-changelog.yml (on push) and auto-create-release-pr.yml, whose create-release-pr.yml also 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_VERSION bump 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 notice annotation 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:

  • A natural OTA creation: the auto run succeeded and created the OTA release PR without calling the updater, and the bump push's run published the changelog PR.
  • A creation push run delayed by 40 s: both push runs succeeded.
  • A manual dispatch when the OTA release PR already exists: the bump and PR steps were skipped as before.

Changelog

CHANGELOG entry: null

Related issues

Refs: MetaMask/github-tools#309

Manual testing steps

Feature: OTA release branch creation

  Scenario: a new OTA release branch is pushed
    Given a release/X.Y.Z-ota branch does not exist yet

    When the branch is created
    Then Auto Create Release PR creates the OTA release PR to stable
    And the Update Release Changelog PR workflow publishes the changelog PR
    And the "Update release changelog (OTA hotfix)" step no longer appears in the run

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-ota is created: update-release-changelog.yml (on push) and create-release-pr.yml both 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.yml no longer runs Update release changelog (OTA hotfix) or passes AI_ANALYZER_LITELLM_KEY from auto-create-release-pr.yml. Changelog updates stay on the push-triggered workflow (including after the OTA_VERSION bump push).

Reviewed by Cursor Bugbot for commit ad2e4c7. Bugbot is set up for automated code reviews on this repo. Configure here.

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.
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added the size-S label Nov 9, 2026
@metamask-ci metamask-ci Bot added team-extension-platform Extension Platform team INVALID-PR-TEMPLATE PR's body doesn't match template labels Nov 9, 2026
@metamask-ci

metamask-ci Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.83%. Comparing base (cea87ce) to head (0a87007).
⚠️ Report is 8 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

sleepytanya
sleepytanya previously approved these changes Nov 9, 2026
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 }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

NIT: Should we delete it from workflow_call args?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah you're right, we don't need that secret here anymore, fixed.

tommasini
tommasini previously approved these changes Nov 9, 2026
@HowardBraham
HowardBraham added this pull request to the merge queue Nov 9, 2026
@HowardBraham
HowardBraham removed this pull request from the merge queue due to a manual request Nov 9, 2026
@sonarqubecloud

Copy link
Copy Markdown

@HowardBraham
HowardBraham added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 8f46ce2 Nov 10, 2026
145 of 147 checks passed
@HowardBraham
HowardBraham deleted the drop-ota-changelog-step branch November 10, 2026 01:02
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2026
@metamask-ci metamask-ci Bot added the release-8.21.0 Issue or pull request that will be included in release 8.21.0 label Nov 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

INVALID-PR-TEMPLATE PR's body doesn't match template release-8.21.0 Issue or pull request that will be included in release 8.21.0 size-S team-extension-platform Extension Platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants