ACM-34234: build(cli): rename hcp archives to include OS and arch in filename#8649
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 <[email protected]> Commit-Message-Assisted-by: Claude (via Claude Code) Co-authored-by: Cursor <[email protected]>
|
@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 |
|
/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 |
|
@bryan-cox Could you rerun the konflux? I cannot rerun this |
|
/retest |
|
/lgtm |
|
@csrwng: This PR has been marked to be verified later by 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. |
|
Scheduling tests matching the |
|
/test |
|
/test all |
|
@yiraeChristineKim tests won't pass atm. There is a CI infra issue - https://redhat-internal.slack.com/archives/CBN38N3MW/p1781197595898369?thread_ts=1781107246.787989&cid=CBN38N3MW |
|
@bryan-cox This is not urgent PR so let me wait tmr Thanks! |
|
/retest |
@yiraeChristineKim they said its fixed now 🤞🏻 |
|
/hold Revision 54af174 was retested 3 times: holding |
|
/retest |
AI Test Failure AnalysisJob: Generated by hypershift-analyze-e2e-failure post-step using Claude claude-opus-4-6 |
|
/test e2e-aws |
|
@bryan-cox Can we override this? |
Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryThe Root CausePrimary failure: Transient DaemonSet rollout delay (flaky test) The
The pull secret update triggers the The subsequent sub-test Cascading failure: kubelet-config-verifier AlreadyExists The Relationship to PR #8649: None PR #8649 ( Recommendations
Evidence
|
|
/test e2e-aws |
|
/hold cancel |
392fd5a
into
openshift:main
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