Skip to content

Fix secure image build to require single approval for all node types#8522

Merged
j1010001 merged 1 commit into
masterfrom
jan/fix-secure-build-workflow
Apr 7, 2026
Merged

Fix secure image build to require single approval for all node types#8522
j1010001 merged 1 commit into
masterfrom
jan/fix-secure-build-workflow

Conversation

@j1010001
Copy link
Copy Markdown
Member

@j1010001 j1010001 commented Apr 7, 2026

This workflow used to work in a way that presented approval for all private image builds (all node types). Now it only presents one image build approval and we must wait until the build is finished and only then we can approve another image, so this makes this very slow and painful, requiring multiple approvals for all node types.
Likely root-cause was: 32fae53#diff-28c4d7956687a734acfd9629ddffb1a980c1228b92364743dfc80e08db2fc398R127 - this PR reverts the introduction of max-parallel: 1 parameter for secure build.

When max-parallel: 1 is set on a matrix job that also has an environment: gate, GitHub Actions processes matrix instances sequentially — each instance arrives at the environment's required-reviewer gate in isolation, triggering a separate approval prompt. With 6 roles in the matrix, this produced 6 sequential approvals instead of one.

Removing max-parallel: 1 allows all matrix instances to start simultaneously. Since they all target the same secure builds environment, GitHub batches them into a single approval request.

Summary by CodeRabbit

  • Chores
    • Optimized CI/CD pipeline by enabling parallel execution of role builds, potentially reducing overall build times.

@j1010001 j1010001 requested a review from a team as a code owner April 7, 2026 21:31
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 7, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA b6a1128.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 7, 2026

📝 Walkthrough

Walkthrough

The pull request removes the strategy.max-parallel: 1 concurrency constraint from the secure-build job in the GitHub Actions workflow, allowing role-based builds to execute in parallel instead of sequentially under default GitHub Actions concurrency behavior.

Changes

Cohort / File(s) Summary
Workflow Configuration
.github/workflows/image_builds.yml
Removed strategy.max-parallel: 1 from the secure-build job, enabling parallel matrix execution across roles (access, collection, consensus, execution, observer, verification) instead of sequential processing.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 With one constraint removed so bold,
The parallel flows now can unfold!
Six roles together, no waiting in line,
Our builds now dance in perfect time! 🚀✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The PR title 'Fix secure image build to require single approval for all node types' accurately describes the main objective: removing max-parallel: 1 to restore single approval batching for concurrent matrix builds across all node types.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jan/fix-secure-build-workflow

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@j1010001 j1010001 requested review from Kay-Zee and manny-yes April 7, 2026 21:31
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@manny-yes manny-yes had a problem deploying to collection image promotion to public registry April 7, 2026 21:36 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to access image promotion to public registry April 7, 2026 21:36 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to observer image promotion to public registry April 7, 2026 21:36 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to access image promotion to partner registry April 7, 2026 21:36 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to execution image promotion to public registry April 7, 2026 21:36 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to consensus image promotion to public registry April 7, 2026 21:36 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to verification image promotion to public registry April 7, 2026 21:36 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to verification image promotion to public registry April 7, 2026 21:55 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to access image promotion to partner registry April 7, 2026 21:55 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to collection image promotion to public registry April 7, 2026 21:55 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to observer image promotion to public registry April 7, 2026 21:55 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to access image promotion to public registry April 7, 2026 21:55 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to execution image promotion to public registry April 7, 2026 21:55 — with GitHub Actions Failure
@manny-yes manny-yes had a problem deploying to consensus image promotion to public registry April 7, 2026 21:55 — with GitHub Actions Failure
@j1010001
Copy link
Copy Markdown
Member Author

j1010001 commented Apr 7, 2026

tested on this build: https://github.com/onflow/flow-go/actions/runs/24105973354, working as expected, one approval kicks off the build for all node types.

@j1010001 j1010001 requested a review from vishalchangrani April 7, 2026 22:06
@j1010001 j1010001 changed the title remove max-parallel param Fix secure image build to require single approval for all node types Apr 7, 2026
@j1010001 j1010001 added this pull request to the merge queue Apr 7, 2026
Merged via the queue into master with commit 7ce557d Apr 7, 2026
69 of 89 checks passed
@j1010001 j1010001 deleted the jan/fix-secure-build-workflow branch April 7, 2026 22:26
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.

5 participants