Repository navigation
ci: add release Slack summaries workflow - #47572
vpintorico wants to merge 5 commits into
Conversation
Call the shared github-tools release-slack-summaries action on weekday schedules for the blocker and release-validation summaries. Posts stay on the test channel, and PR bodies stay unchanged, unless GA_MODE=live. Co-authored-by: Victor Pinto <vpintorico@users.noreply.github.com>
Builds ready [baf2748] [reused from ded204d]
⚡ Performance Benchmarks (Total: 🟢 5 pass · 🟡 5 warn · 🔴 3 fail)
Bundle Size Diffs
|
Use the draft action's real inputs and let a test channel limit Slack only. Pin the uses ref to a SHA or tag after github-tools#306 merges. Co-authored-by: Victor Pinto <vpintorico@users.noreply.github.com>
A test-channel run must not rewrite the release PR while Zap 597 still does. allow-pr-write is set only for live release-validation with no test channel and dry-run false. Co-authored-by: Victor Pinto <vpintorico@users.noreply.github.com>
Builds ready [3995847]
⚡ Performance Benchmarks (Total: 🟢 6 pass · 🟡 3 warn · 🔴 4 fail)
Bundle Size Diffs
|
|
Automated adversarial review (Warden), not a human review Head: 3995847 · Verdict: blocked · Fix round: 0 New findings
Other bots
Dropped3 |
Fixes Warden F1, F2, F3, F5, F6, and F7. Pin the shared action to f99347bfb23bbbd352d199be7b58b3d7cb9f9bb9, the github-tools#306 head named in the Warden review. F4 has no code change. Co-authored-by: Victor Pinto <vpintorico@users.noreply.github.com>
Builds ready [472a173]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 2 warn · 🔴 4 fail)
Bundle Size Diffs
|
|
Automated adversarial review (Warden), not a human review Head: 472a173 · Verdict: blocked · Fix round: 1 Since last review
Open findings at this head
New findings
Other bots
Dropped3 |
Fixes Warden F1, F3, F7, and F8. A test channel must be a Slack name or ID after the same blank characters JavaScript trim() drops are removed. Live posts require both Jira repository variables to be set. Co-authored-by: Victor Pinto <vpintorico@users.noreply.github.com>
Builds ready [87036f3] [reused from 472a173]
⚡ Performance Benchmarks (Total: 🟢 7 pass · 🟡 2 warn · 🔴 4 fail)
Bundle Size Diffs
|
|
|
Automated adversarial review (Warden), not a human review Head: 87036f3 · Verdict: pass with notes · Fix round: 2 Since last review
Open findings at this head (minor, left for the owner's decision)
New findingsNone that are blocker or major. Breaker finding 2 and Spec checker finding 1 at this head are the upstream remainder of F3 above. The preview fallback (flags.sh:114-115) only reaches a dry run or a test channel, and the variables override it when set (verified locally). This is noted for the owner and is not a finding. Other bots
Dropped1 |



Description
Zapier Zaps 596 (release blocker summary) and 597 (release validation summary, plus the release PR body sign-off rewrite) are moving to GitHub Actions (Jira MCRM-155). The summary logic lives in the shared action
MetaMask/github-tools.github/actions/release-slack-summaries(github-tools#306). This pull request adds only the thin caller, the same waypost-merge-validation.ymlcalls its shared action..github/workflows/release-slack-summaries.ymlchecks out.github/scripts/release-slack-summaries-flags.shand uses its outputs.16 10 * * 1-5UTC (blocker-summary) and21 10 * * 1-5UTC (release-validation), and supportsworkflow_dispatch(mode,dry-run,test-channel).workflow_dispatchof the same mode share one concurrency group (release-slack-summaries-<mode>).github.run_idis not part of the key.release-notificationsand workflow permissionsid-token: write,contents: read. The token-exchange policy pins this exact file atrefs/heads/mainand this environment name.MetaMask/github-tools/.github/actions/get-token@v1. Every run, includingblocker-summaryand dry runs, requestspull_requests: writeon this repo.contents: readis requested onMetaMask/MetaMask-planning. No personal access tokens. A narrowerpull_requests: readrequest is not used: policy PR 221 is private and was not readable from this environment, and the caller contract for that policy ispull_requests: write.SLACK_BOT_TOKENrepository secret (the one RC Slack notify uses). Jira readsJIRA_EMAILandJIRA_API_TOKENfrom the environment. This PR does not create secrets.platformisextension.uses:andgithub-tools-refare pinned to commitf99347bfb23bbbd352d199be7b58b3d7cb9f9bb9(the github-tools#306 head named in the first Warden review; branchcursor/release-slack-summaries-a324). TODO: move the pin to the merged SHA or release tag after github-tools#306 merges.github.event.inputs.dry-run, which is the stringtrueorfalse. Only the exact stringfalseposts.RELEASE_SUMMARY_TEST_CHANNELis normalized before any emptiness, dry-run, or PR-write decision. U+FEFF, U+200B, U+2060, and U+180E are removed anywhere. JavaScript whitespace, including NBSP, is trimmed from the ends only. A supplied value that normalizes to empty fails the job. The value that remains must match a Slack name (#?plus lowercase letters, digits,.,_,-, up to 80 characters) or a Slack ID (C,G, orDplus at least 8 letters or digits).#qa testandqa/../xfail. Both the dispatch input and the repository variable are validated even when a live run would not post to the variable, so a hiddenrelease-*name cannot be ignored.release-*and#release-*names are rejected in every mode. A live post reaches real release channels only when no test channel is set.GA_MODEis not exactlylive, a Slack ID is accepted only if it equals the normalizedRELEASE_SUMMARY_TEST_CHANNEL. Any other non-live channel must be a#nameorname. Unset ortestwith no channel forces dry-run.allow-pr-writeis true only whenGA_MODEis exactlylive, mode isrelease-validation, dry-run is false, and the normalized test channel is empty. Any test channel suppresses the PR rewrite.live, not a dry run, no test channel) requireRELEASE_SUMMARY_BLOCKER_JQLandRELEASE_SUMMARY_REGRESSION_JQLto be set to something other than blank characters. The workflow does not substitute a built-in query on that path. The action still appendsAND cf[14565] = "V"to the blocker base andAND cf[16946] = "V"to the regression base, and it does not substitutelabels = "regression-RC-{V}". Dry runs and test-channel runs may preview withtype = Bug AND labels = "release-blocker" AND statusCategory != Doneandtype = Bug AND statusCategory != Donewhen the variables are empty. An empty blocker base makes the action skip the blocker section. "No remaining bugs" is only the message when a query ran and the merged list is empty.key=valuelines, andmode,dry-run,allow-pr-write, andtest-channelare written after the JQL lines.Flag behavior is covered by
bash .github/scripts/release-slack-summaries-flags.test.sh. Jest'stestMatchdoes not include.sh, and no existing workflow runs these shell tests, so this file is not wired into CI.The new workflow file sits under the existing
/.github/workflows/CODEOWNERS rule. CODEOWNERS is unchanged.Prerequisites
.github/workflows/release-slack-summaries.yml@refs/heads/mainin environmentrelease-notifications.uses:/github-tools-refpin must move fromf99347bfb23bbbd352d199be7b58b3d7cb9f9bb9to the merged SHA or release tag.release-notificationsmust exist on this repository.JIRA_EMAILandJIRA_API_TOKEN(read-only Jira credentials). The owner adds these later. They are not created here.SLACK_BOT_TOKENmust already be present (used byrc-slack-notify.yml). The bot must be in the test channel and, before go-live, in the real release channels.TOKEN_EXCHANGE_URL(already used by otherget-tokencallers).RELEASE_SUMMARY_TEST_CHANNELbefore any non-dry-run test post. It must be a Slack#nameornamethat is notrelease-*, or a Slack ID. It must not be only whitespace or zero-width characters. Arelease-*name fails every run, including live.RELEASE_SUMMARY_BLOCKER_JQLandRELEASE_SUMMARY_REGRESSION_JQL. The owner must set both once version scoping is confirmed, or once github-tools#306 can substitutelabels = "regression-RC-{V}". Until both are set, a live non-dry-run with no test channel fails and does not post. MCRM-155's queries are blockerstype = Bug AND labels = "release-blocker" AND labels = "regression-RC-{V}" AND statusCategory != Doneand the same withoutrelease-blocker. This action cannot express the version label. Release Numbercf[14565]is only populated in the ASSETS pilot, and Found-incf[16946]is still marked open to confirm, so this caller does not invent those clauses.GA_MODE. Leave it unset or set it totestuntil a test-channel post looks right. Setliveonly after the two Jira variables are set.Open items
GA_MODE=live, moderelease-validation, dry-run false, and no test channel.RELEASE_SUMMARY_BLOCKER_JQLandRELEASE_SUMMARY_REGRESSION_JQLare set. Confirm the version scope (regression-RC-{V}versuscf[14565]/cf[16946]) before setting them.jiraProjecton topology.json is still the action's PROPOSED field. This caller leavestopology-jira-project-fieldat that default.release-notificationsand the Jira secrets are not created by this PR.refs/heads/main, so aworkflow_dispatchfrom this branch cannot mint tokens.GA_MODE=liveuntil a dry run and a test-channel post are confirmed.GA_MODEis case-sensitive. A test channel never requests a PR write.Changelog
CHANGELOG entry: null
Related issues
Jira: MCRM-155
Fixes:
Manual testing steps
End-to-end Slack and PR writes cannot succeed until the prerequisites above are in place and this file is on
main. Until then, do not setGA_MODE=live.release-notificationsexists,JIRA_EMAILandJIRA_API_TOKENare set on it, andSLACK_BOT_TOKENis the existing bot token. SetRELEASE_SUMMARY_TEST_CHANNELto a non-release#namethe bot is in. LeaveGA_MODEunset or set it totest. Leave the two Jira JQL variables unset.main, open Actions → Release Slack summaries → Run workflow.blocker-summary, leave dry-run checked, and leave test channel empty. Confirm the log showsdry-run=true,allow-pr-write=false, and that the job summary contains the preview message. Confirm nothing was posted to Slack and no release PR body changed.RELEASE_SUMMARY_TEST_CHANNELand the release PR body is unchanged.release-validationwith dry-run unchecked and test channel#release-extension-13-56-0. Confirm the job fails and nothing is posted.C0C71FCF0J3whileRELEASE_SUMMARY_TEST_CHANNELis a different#name. Confirm the job fails.GA_MODEtolive. Runrelease-validationwith dry-run unchecked and the test channel left empty. That is the only path that may update the release PR body.blocker-summarystill does not request a PR write. The weekday 10:16 and 10:21 UTC schedules use the real channels only when no test channel is set and both Jira variables are set. Before those variables are set, the same live schedule fails and does not post.Pre-merge author checklist
Pre-merge reviewer checklist