Repository navigation
ci: avoid duplicate checkouts in build jobs - #5501
Conversation
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]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 8 included reviews per hour; 5 remain after this review. 📝 WalkthroughWalkthroughThe CI workflow pins ChangesWorkflow checkout control
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to 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)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation 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.)
✨ 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 |
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]>
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.