Skip to content

ci: avoid duplicate checkouts in build jobs - #5501

Merged
SoloJacobs merged 1 commit into
prometheus:mainfrom
siavashs:fix/ci-double-checkout
Aug 31, 2026
Merged

SoloJacobs merged 1 commit into
prometheus:mainfrom
siavashs:fix/ci-double-checkout

Conversation

@siavashs

Copy link
Copy Markdown
Contributor

The promci build action checks out the repository by default, but the CI and release build jobs already perform a checkout before downloading the UI artifact.

Disable the action's internal checkout to avoid redundant work and prevent the downloaded UI distribution from being removed by checkout cleanup. Also correct the stale actions/checkout version annotation.

The promci build action checks out the repository by default, but the CI and
release build jobs already perform a checkout before downloading the UI
artifact.

Disable the action's internal checkout to avoid redundant work and prevent the
downloaded UI distribution from being removed by checkout cleanup.
Also correct the stale actions/checkout version annotation.

Signed-off-by: Siavash Safi <[email protected]>
@siavashs
siavashs requested a review from SoloJacobs August 31, 2026 11:22
@siavashs
siavashs requested a review from a team as a code owner August 31, 2026 11:22
@siavashs siavashs added the github_actions Pull requests that update GitHub Actions code label Aug 31, 2026
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: cd122d1c-ee0b-4d68-a241-3b7b0a98ed40

📥 Commits

Reviewing files that changed from the base of the PR and between a721547 and dbe428f.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • .github/workflows/release.yml

Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The CI workflow pins actions/checkout to v7.0.1. The CI and release workflows set checkout: "false" for prometheus/promci/build.

Changes

Workflow checkout control

Layer / File(s) Summary
Build checkout updates
.github/workflows/ci.yml, .github/workflows/release.yml
The CI workflow updates actions/checkout to v7.0.1. Both workflows disable repository checkout in prometheus/promci/build.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to dbe42

The build and release jobs now avoid redundant repository checkouts while correcting the checkout version annotation; no actionable merge-blocking risk remains after normal checks and review.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description accurately explains the workflow changes and their purpose, but it does not include the required Pull Request Checklist or the release-notes block from the repository template. Add the required checklist sections, mark all applicable items, state whether there are user-facing changes, and populate the release-notes block with NONE or an appropriate entry.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: disabling duplicate checkouts in CI build jobs. It uses the required concise area-and-description format.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@SoloJacobs
SoloJacobs merged commit 6bbe142 into prometheus:main Aug 31, 2026
7 checks passed
@siavashs
siavashs deleted the fix/ci-double-checkout branch August 31, 2026 11:48
ultrotter pushed a commit to ultrotter/alertmanager that referenced this pull request Oct 29, 2026
The build jobs in publish.yml and build-release-branch.yml ran the promci
build action on a fresh checkout, without the `ui-dist` artifact that
ci.yml produces and that `ui/web.go` embeds. Since the prebuilt UI left
the tree (prometheus#5113), only ci.yml and release.yml were given the artifact
download (prometheus#5191) and the matching `checkout: "false"` (prometheus#5501), so the
main and release-branch builds were no longer the same build as a tag
build.

Move the build job into a reusable workflow and call it from all four
workflows, so the steps cannot drift apart again. The ci.yml caller keeps
its reduced platform list and three threads.

Signed-off-by: Guido Trotter <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants