You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: disable rpm build-id links so orchestrator and orchestrator-cli can be co-installed - #138
orchestrator and orchestrator-cli ship the same binary (/usr/local/orchestrator/orchestrator and /usr/bin/orchestrator). rpmbuild adds a /usr/lib/.build-id/<xx>/<id> symlink for every packaged ELF file, so both RPMs own the same path and dnf refuses to install them together:
file /usr/lib/.build-id/7b/dca76d6660baa1b772e5cd86301226400bc45e conflicts between attempted installs of orchestrator-1:4.32.0-1.x86_64 and orchestrator-cli-1:4.32.0-1.x86_64
(reproduced with the published v4.32.0 x86_64 RPMs on amazonlinux:2023)
Fix
Pass --rpm-rpmbuild-define '_build_id_links none' to fpm for all three RPMs. We don't ship debuginfo packages, so build-id links aren't needed. deb packaging is unchanged.
Verification
Built with ./build.sh -a amd64 in an ubuntu:24.04 container set up the way release.yml sets up its runner (apt rpm, gem fpm, Go 1.25.7):
rpm -qpl: 0 .build-id entries in each of the three RPMs
amazonlinux:2023 and rockylinux:9: dnf install ./*.rpm installs all three, rpm -V is clean, both binaries report the version, and removing orchestrator-cli leaves the server binary in place
ubuntu:24.04: the three .deb packages still install together
Summary by CodeRabbit
Bug Fixes
Improved Linux RPM package generation for Orchestrator, Orchestrator CLI, and Orchestrator Client. Debian packages and tarballs are unchanged.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 9179bbaf-3336-4a71-b58f-e80075315a4b
Commits
Reviewing files that changed from the base of the PR and between 71e903e and ba88fae.
Files selected for processing: 1
build.sh
No actionable comments were generated in the recent review.
Walkthrough
The RPM build commands for orchestrator, orchestrator-cli, and orchestrator-client now disable build-ID links. The Debian package and tarball commands are unchanged.
Changes: RPM build-ID links
Layer / File(s)
Summary
Apply the build-ID-link option build.sh
The three RPM build commands pass the shared option that disables build-ID links. The Debian package commands remain unchanged.
RPM packages for orchestrator, orchestrator-cli and orchestrator-client no longer carry build-ID links, so they can be installed side by side. No actionable merge risk remains.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title names the main change: disabling rpm build-id links so the orchestrator RPMs can be co-installed. The raw summary confirms build.sh now passes _build_id_links none for the three Linux RPM bu…
Linked Issues check
Issue #136 requires that the orchestrator, orchestrator-cli, and orchestrator-client RPMs install side by side. The cause is that rpmbuild adds a /usr/lib/.build-id// symlink for each ELF file…
Out of Scope Changes check
The change in the whole-PR diff (merge base 1546138 to head 71e903e) is limited to build.sh, with about +10/-3 lines. All added lines are the rpm_build_opts array, a comment that cites #136, and the a…
Full details: Title check
Explanation
The title names the main change: disabling rpm build-id links so the orchestrator RPMs can be co-installed. The raw summary confirms build.sh now passes _build_id_links none for the three Linux RPM builds, and the objectives tie this to issue #136 about a /usr/lib/.build-id conflict. The title is specific and matches the changeset.
Full details: Linked Issues check
Explanation
Issue #136 requires that the orchestrator, orchestrator-cli, and orchestrator-client RPMs install side by side. The cause is that rpmbuild adds a /usr/lib/.build-id/<xx>/<id> symlink for each ELF file, and both the orchestrator and orchestrator-cli packages ship the identical binary. At head, build.sh defines rpm_build_opts=(--rpm-rpmbuild-define "_build_id_links none") and appends it to the three fpm -t rpm invocations (orchestrator, orchestrator-cli, orchestrator-client). This removes the build-id symlinks that cause the conflict. The deb invocations do not use the array and are unchanged. The install results in the PR description (rpm -qpl with zero .build-id entries, dnf install of all three RPMs on amazonlinux:2023 and rockylinux:9, rpm -V clean, ubuntu deb install) are author-reported. I did not rebuild the packages or run the install, so those results are not independently verified. The code change addresses the stated requirement.
Full details: Out of Scope Changes check
Explanation
The change in the whole-PR diff (merge base 1546138 to head 71e903e) is limited to build.sh, with about +10/-3 lines. All added lines are the rpm_build_opts array, a comment that cites #136, and the array expansion on the three RPM fpm commands. No other packaging, binary, or runtime code changed. The change connects directly to the #136 requirement and does not add unrelated behavior.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
A rabbit checks the RPM trail, No build-ID links now fill the mail. Three packages follow the new rule, Debian stays just as before. The rabbit hops along once more.
Recent review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 6d51ef6c-b11d-49e9-943d-c62c0d39067b
Commits
Reviewing files that changed from the base of the PR and between 1546138 and 71e903e.
Files selected for processing: 1
build.sh
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
…i can be co-installed
The same orchestrator binary is shipped in both the orchestrator and
orchestrator-cli RPMs. Modern rpmbuild generates /usr/lib/.build-id/<xx>/<id>
symlinks for every packaged ELF file, so both packages owned the same
build-id path and dnf refused to install them together:
file /usr/lib/.build-id/... conflicts between attempted installs of
orchestrator-1:4.32.0-1 and orchestrator-cli-1:4.32.0-1
We don't produce debuginfo packages, so pass
--rpm-rpmbuild-define '_build_id_links none' to fpm for all RPMs.
Fixes#136
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #136.
Problem
orchestratorandorchestrator-cliship the same binary (/usr/local/orchestrator/orchestratorand/usr/bin/orchestrator). rpmbuild adds a/usr/lib/.build-id/<xx>/<id>symlink for every packaged ELF file, so both RPMs own the same path and dnf refuses to install them together:(reproduced with the published v4.32.0 x86_64 RPMs on
amazonlinux:2023)Fix
Pass
--rpm-rpmbuild-define '_build_id_links none'to fpm for all three RPMs. We don't ship debuginfo packages, so build-id links aren't needed. deb packaging is unchanged.Verification
Built with
./build.sh -a amd64in anubuntu:24.04container set up the wayrelease.ymlsets up its runner (aptrpm, gemfpm, Go 1.25.7):rpm -qpl: 0.build-identries in each of the three RPMsamazonlinux:2023androckylinux:9:dnf install ./*.rpminstalls all three,rpm -Vis clean, both binaries report the version, and removingorchestrator-clileaves the server binary in placeubuntu:24.04: the three .deb packages still install togetherSummary by CodeRabbit