ACM-34234: build(cli): rename hcp archives to include OS and arch in filename#8649
ACM-34234: build(cli): rename hcp archives to include OS and arch in filename#8649yiraeChristineKim wants to merge 1 commit into
Conversation
Each platform archive was previously named hcp.tar.gz, causing filename collisions when Konflux derives the archive name from the component and archive name rather than the filename field. Rename archives to hcp-<os>-<arch>.tar.gz and write them flat into ./bin/ to avoid collisions. Signed-off-by: yiraeChristineKim <yikim@redhat.com> Commit-Message-Assisted-by: Claude (via Claude Code) Co-authored-by: Cursor <cursoragent@cursor.com>
|
@yiraeChristineKim: This pull request references ACM-34234 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change refactors the builder stage in Containerfile.cli to restructure how release binaries are packaged into tarballs. The Linux packaging loop now outputs tarballs directly to ./bin/ instead of creating nested directory structures. The Darwin and Windows packaging loop is similarly adjusted to tar from a flat directory structure and output directly to ./bin/ with naming pattern hcp-${OS}-${ARCH}.tar.gz. The cleanup step is updated to remove intermediate OS/arch subdirectories using find with depth constraints, instead of deleting files by pattern, ensuring only the final .tar.gz artifacts remain. 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8649 +/- ##
=======================================
Coverage 40.68% 40.68%
=======================================
Files 755 755
Lines 93368 93368
=======================================
Hits 37985 37985
Misses 52649 52649
Partials 2734 2734
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
/ok-to-test |
|
@yiraeChristineKim: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
I now have all the evidence needed. Here is the analysis: Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryThe Konflux pipeline failed at the Root CauseThe root cause is an active GitHub infrastructure incident that began on 2026-06-01 at 15:17 UTC, titled "Delays with Code Scanning and Billing." By 15:43 UTC — one minute before the clone task started — GitHub confirmed they were "investigating delays in our job processing architecture," with the scope expanding to include code scanning, billing updates, email notifications, and mobile push notifications. The This is an infrastructure failure, not a code defect. The PR only modifies Corroborating evidence:
Recommendations
Evidence
|
|
/area ci-tooling |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox, yiraeChristineKim The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest-required |
What this PR does / why we need it
Each platform archive was previously named
hcp.tar.gzregardless of OS/arch, causing filename collisions when Konflux derives the release artifact name from the component and archive name (thefilenamefield is no longer used).Archives are now named
hcp-<os>-<arch>.tar.gzand written flat into./bin/, producing:hcp-linux-amd64.tar.gzhcp-linux-arm64.tar.gzhcp-linux-ppc64le.tar.gzhcp-linux-s390x.tar.gzhcp-darwin-amd64.tar.gzhcp-darwin-arm64.tar.gzhcp-windows-amd64.tar.gzhcp-windows-arm64.tar.gzReferences:
Which issue(s) this PR fixes
Fixes ACM-34234
Special notes for your reviewer
N/A
Checklist
How to test
Build the
Containerfile.cliimage and verify the resulting/opt/app-root/src/directory contains flathcp-<os>-<arch>.tar.gzfiles with no OS/arch subdirectories.Made with Cursor
Summary by CodeRabbit