fix(ci): de-matrix CI steps smoke tests for correctness skipping #335
fix(ci): de-matrix CI steps smoke tests for correctness skipping #335Andrey Kolkov (androndo) wants to merge 1 commit into
Conversation
…exts The branch requires `smoke (manifest)` and `smoke (helm)` status checks — the per-leg names a `strategy.matrix` produces when it RUNS. But a matrix job skipped via job-level `if:` collapses to a single check named just `smoke`, so the two required contexts are never reported and sit forever in "Expected", blocking docs-only PRs (e.g. cozystack#331) despite everything else passing. Split the matrix into two plain jobs whose `name:` equals each required context exactly. A skipped plain job still reports its check under its own name (as `kamaji-datastore` already does in e2e.yml), so docs-only PRs now satisfy both gates while real release-machinery changes still run both smokes. Signed-off-by: Andrey Kolkov <androndo@gmail.com>
|
Note Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported. |
📝 WalkthroughWalkthroughThe ChangesSmoke workflow matrix → two named jobs
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/release-smoke.yml (1)
77-79: 💤 Low valueConsider pinning actions to commit hashes and disabling credential persistence.
Static analysis flagged these unpinned action references (
actions/checkout@v4,actions/setup-go@v5) and the defaultpersist-credentials: trueon checkout. While major version tags are a common project convention (matchingdorny/paths-filter@v3at line 36), pinning to commit hashes provides supply-chain hardening.Since this appears to be a project-wide pattern, addressing it can be deferred to a separate security hardening effort.
🔒 Example if you choose to harden this job
steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false - - uses: actions/setup-go@v5 + - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 with: go-version-file: go.mod cache: true🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/release-smoke.yml around lines 77 - 79, Pin the action references actions/checkout@v4 and actions/setup-go@v5 to specific commit hashes instead of major version tags to improve supply-chain security, and add persist-credentials: false to the checkout action to disable default credential persistence. Replace the major version tags (e.g., `@v4`, `@v5`) with their corresponding commit SHAs, and add the persist-credentials parameter to the checkout action configuration.Source: Linters/SAST tools
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In @.github/workflows/release-smoke.yml:
- Around line 77-79: Pin the action references actions/checkout@v4 and
actions/setup-go@v5 to specific commit hashes instead of major version tags to
improve supply-chain security, and add persist-credentials: false to the
checkout action to disable default credential persistence. Replace the major
version tags (e.g., `@v4`, `@v5`) with their corresponding commit SHAs, and add the
persist-credentials parameter to the checkout action configuration.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: e61c9b78-e511-48c7-997a-37b90311715b
📒 Files selected for processing (1)
.github/workflows/release-smoke.yml
Against troubles of merging docs-only PRs like #331
Summary by CodeRabbit
Release Notes