Skip to content

ci(amo): allow release-team manual dispatch of AMO production (INFRA-3769)#44519

Open
alucardzom wants to merge 1 commit into
mainfrom
ale/INFRA-3769-amo-production-manual-dispatch
Open

ci(amo): allow release-team manual dispatch of AMO production (INFRA-3769)#44519
alucardzom wants to merge 1 commit into
mainfrom
ale/INFRA-3769-amo-production-manual-dispatch

Conversation

@alucardzom

@alucardzom alucardzom commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

INFRA-3769 — Allow @MetaMask/release-team to independently trigger AMO production upload via workflow_dispatch.

Follow-up to Mark Stacey's review of #44017:

"To retain control over the timing of when the publishing happens, we usually submit to Firefox around the same time we increase rollout to 1% on Chrome. To retain that control, this will need to be removed from this workflow and triggered via an independent workflow_dispatch instead, gated by release team approval."

upload-extension-to-amo.yml:

  1. Production branch restriction tightenedproduction target now requires refs/heads/main only (was main | release/*). AMO production is timing-sensitive; it must be dispatched from main after the release is cut, aligned with the ~1% CWS rollout milestone. Flask keeps main | release/* unchanged.

  2. Sender gate expanded — replaces the Runway-only "Verify Runway sender" step with "Verify authorized sender" that allows:

    • Runway bot (actor_id=73448015) — existing path, unchanged
    • Any member of @MetaMask/release-team — verified via GitHub API (GET /orgs/MetaMask/teams/release-team/memberships/{actor}) before any AWS credential exchange

    Non-release-team, non-Runway actors are rejected with a clear error message.

Out of scope (follow-up tracked in INFRA-3769):

Changelog

CHANGELOG entry: null

Related issues

Fixes:

Manual testing steps

  1. From main, dispatch upload-extension-to-amo.yml with target=production as a @MetaMask/release-team member → expect sender verified, continues to OIDC step.
  2. Dispatch with target=production as a non-release-team actor → expect immediate failure with ::error::Unauthorized actor before any AWS call.
  3. Dispatch with target=production from a release/* branch → expect branch validation failure.
  4. Dispatch with target=flask from a release/* branch → expect success (flask keeps main | release/*).
  5. Runway-dispatched run with target=production → sender check passes on actor_id=73448015.

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

…3769)

- Restrict production target to refs/heads/main only (was main|release/*).
  AMO production is timing-sensitive (~1% CWS rollout); dispatch after
  the release is cut from main, not from the release branch.
- Expand sender gate to allow @MetaMask/release-team members in addition
  to Runway bot. Human actors are verified via GitHub API team-membership
  check before any AWS credential exchange.
- Flask target keeps main|release/* branch restriction unchanged.

IAM trust policy update (va-mmc-extension-submission-infra) and
amo-production GitHub Environment reviewer addition are follow-up items
tracked in INFRA-3769.
@alucardzom
alucardzom requested review from a team, HowardBraham and itsyoboieltr as code owners July 16, 2026 08:56
@metamask-ci metamask-ci Bot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Jul 16, 2026
@github-actions

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.

@metamask-ci

metamask-ci Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor
Builds ready [e55df3f] [reused from 743cccd]
Deprecated Browserify fallback builds
⚡ Performance Benchmarks (Total: 🟢 16 pass · 🟡 5 warn · 🔴 3 fail)

Baseline (latest main): 743cccd | Date: 7/16/2026 | Pipeline: 29485313318 | Baseline logs

Metricschrome-webpackfirefox-webpack
onboardingImportWallet
[Sentry log · main/release]
🔴 openAccountMenuToAccountListLoaded(p75) [CI log]🔴 [CI log]
onboardingNewWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]

Regressions (🔴 3 failures)

Interaction Benchmarks · Samples: 5
Benchmarkchrome-webpackfirefox-webpack
loadNewAccount
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]
confirmTx
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]
bridgeUserActions
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]

📈 Results compared to the previous 5 runs on main

  • loadNewAccount/load_new_account: -23%
  • loadNewAccount/total: -23%
  • confirmTx/longTaskCount: -23%
  • confirmTx/longTaskTotalDuration: -33%
  • confirmTx/tbt: -43%
  • bridgeUserActions/bridge_load_page: -14%
  • bridgeUserActions/bridge_load_asset_picker: +44%
  • bridgeUserActions/longTaskCount: -100%
  • bridgeUserActions/longTaskTotalDuration: -100%
  • bridgeUserActions/longTaskMaxDuration: -100%
  • bridgeUserActions/tbt: -100%
  • bridgeUserActions/inp: -15%
  • loadNewAccount/load_new_account: +111%
  • loadNewAccount/total: +111%
  • loadNewAccount/fcp: -48%
  • loadNewAccount/lcp: +1363%
  • confirmTx/longTaskCount: -100%
  • confirmTx/longTaskTotalDuration: -100%
  • confirmTx/longTaskMaxDuration: -100%
  • confirmTx/tbt: -100%
  • confirmTx/inp: +15%
  • confirmTx/fcp: +20%
  • confirmTx/lcp: +1294%
  • bridgeUserActions/bridge_load_page: +147%
  • bridgeUserActions/bridge_load_asset_picker: +329%
  • bridgeUserActions/longTaskCount: -100%
  • bridgeUserActions/longTaskTotalDuration: -100%
  • bridgeUserActions/longTaskMaxDuration: -100%
  • bridgeUserActions/tbt: -100%
  • bridgeUserActions/total: +37%
  • bridgeUserActions/fcp: +15%
  • bridgeUserActions/lcp: +1313%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 confirmTx/FCP: p75 2.0s
  • 🟡 bridgeUserActions/FCP: p75 1.9s
Startup Benchmarks · Samples: 100
Benchmarkchrome-webpackfirefox-webpack
startupStandardHome
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]
startupPowerUserHome
[Sentry log · main/release]
🟡 [CI log]

📈 Results compared to the previous 5 runs on main

  • startupStandardHome/uiStartup: -16%
  • startupStandardHome/load: -13%
  • startupStandardHome/domContentLoaded: -13%
  • startupStandardHome/domInteractive: -12%
  • startupStandardHome/backgroundConnect: -13%
  • startupStandardHome/firstReactRender: -98%
  • startupStandardHome/initialActions: -29%
  • startupStandardHome/loadScripts: -13%
  • startupStandardHome/setupStore: -10%
  • startupStandardHome/numNetworkReqs: -16%
  • startupStandardHome/longTaskCount: -23%
  • startupStandardHome/longTaskTotalDuration: -21%
  • startupStandardHome/longTaskMaxDuration: -16%
  • startupStandardHome/tbt: -21%
  • startupStandardHome/fcp: -12%
  • startupStandardHome/lcp: +146%
  • startupStandardHome/cls: +150%
  • startupStandardHome/load: +13%
  • startupStandardHome/domContentLoaded: +12%
  • startupStandardHome/firstReactRender: -97%
  • startupStandardHome/initialActions: +25%
  • startupStandardHome/loadScripts: +13%
  • startupStandardHome/setupStore: +14%
  • startupStandardHome/lcp: +12%
  • startupPowerUserHome/domInteractive: +17%
  • startupPowerUserHome/backgroundConnect: +36%
  • startupPowerUserHome/firstReactRender: -98%
  • startupPowerUserHome/setupStore: +17%
  • startupPowerUserHome/inp: -15%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 startupPowerUserHome/LCP: p75 3.7s
User Journey Benchmarks · Samples: 5 · mock API 🔴 3
Benchmarkchrome-webpackfirefox-webpack
onboardingImportWallet
[Sentry log · main/release]
🔴 [CI log]
🔴 total
🔴 [CI log]
🔴 total
onboardingNewWallet
[Sentry log · main/release]
🟢 [CI log]🔴 [CI log]
🔴 total
assetDetails
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]
solanaAssetDetails
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]
importSrpHome
[Sentry log · main/release]
🟡 [CI log]🟢 [CI log]
sendTransactions
[Sentry log · main/release]
🟢 [CI log]🟢 [CI log]
swap
[Sentry log · main/release]
🟢 [CI log]🟡 [CI log]

📈 Results compared to the previous 5 runs on main

  • onboardingImportWallet/srpButtonToSrpForm: -28%
  • onboardingImportWallet/confirmSrpToPwForm: -25%
  • onboardingImportWallet/pwFormToMetricsScreen: -28%
  • onboardingImportWallet/metricsToWalletReadyScreen: -44%
  • onboardingImportWallet/doneButtonToHomeScreen: -57%
  • onboardingImportWallet/openAccountMenuToAccountListLoaded: +32%
  • onboardingImportWallet/longTaskCount: -56%
  • onboardingImportWallet/longTaskTotalDuration: -40%
  • onboardingImportWallet/longTaskMaxDuration: -21%
  • onboardingImportWallet/tbt: -33%
  • onboardingImportWallet/total: -55%
  • onboardingNewWallet/agreeButtonToOnboardingSuccess: -10%
  • onboardingNewWallet/doneButtonToAssetList: +10%
  • onboardingNewWallet/longTaskCount: +25%
  • onboardingNewWallet/longTaskMaxDuration: -20%
  • onboardingNewWallet/tbt: -23%
  • onboardingNewWallet/total: +10%
  • solanaAssetDetails/assetClickToPriceChart: +56%
  • solanaAssetDetails/longTaskCount: -100%
  • solanaAssetDetails/longTaskTotalDuration: -100%
  • solanaAssetDetails/longTaskMaxDuration: -100%
  • solanaAssetDetails/tbt: -100%
  • solanaAssetDetails/total: +56%
  • importSrpHome/homeAfterImportWithNewWallet: +55%
  • importSrpHome/longTaskTotalDuration: -16%
  • importSrpHome/longTaskMaxDuration: -43%
  • importSrpHome/tbt: -29%
  • importSrpHome/total: +49%
  • importSrpHome/inp: -11%
  • importSrpHome/cls: -42%
  • sendTransactions/openSendPageFromHome: -16%
  • sendTransactions/selectTokenToSendFormLoaded: -15%
  • sendTransactions/reviewTransactionToConfirmationPage: -12%
  • sendTransactions/longTaskCount: -100%
  • sendTransactions/longTaskTotalDuration: -100%
  • sendTransactions/longTaskMaxDuration: -100%
  • sendTransactions/tbt: -100%
  • sendTransactions/total: -12%
  • sendTransactions/inp: -24%
  • sendTransactions/lcp: -15%
  • swap/openSwapPageFromHome: -11%
  • swap/fetchAndDisplaySwapQuotes: -12%
  • swap/longTaskCount: +25%
  • swap/longTaskTotalDuration: +24%
  • swap/longTaskMaxDuration: +24%
  • swap/tbt: +20%
  • swap/total: -11%
  • swap/inp: -15%
  • swap/fcp: -12%
  • swap/lcp: -18%

🌐 Core Web Vitals — 🟢 good · 🟡 needs improvement · 🔴 poor (web.dev thresholds)

  • 🟡 importSrpHome/INP: p75 296ms
  • 🟡 swap/FCP: p75 2.0s
Dapp Page Load Benchmarks · Samples: 100
Benchmarkchrome-webpack
dappPageLoad
[Sentry log · main/release]
🟢 [CI log]
Bundle size diffs
  • background: 0 Bytes (0%)
  • ui: 0 Bytes (0%)
  • common: 0 Bytes (0%)
  • other: 0 Bytes (0%)
  • contentScripts: 0 Bytes (0%)
  • zip: 0 Bytes (0%)

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e55df3f. Configure here.

# Human actor — check @MetaMask/release-team membership via GitHub API.
HTTP_STATUS=$(gh api \
"orgs/MetaMask/teams/release-team/memberships/${ACTOR}" \
--silent -o /dev/null -w "%{http_code}" 2>/dev/null || echo "000")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

GITHUB_TOKEN cannot verify team

High Severity

The new release-team gate calls orgs/MetaMask/teams/release-team/memberships/{actor} with secrets.GITHUB_TOKEN, but that token cannot access org team membership (it needs read:org, which workflow tokens do not get). Legitimate @MetaMask/release-team dispatches will see non-200 responses and fail as unauthorized before OIDC, so manual production dispatch cannot work as described.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e55df3f. Configure here.

@metamask-ci metamask-ci Bot removed the INVALID-PR-TEMPLATE PR's body doesn't match template label Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant