Repository navigation
[Port to v4.0.x-develop] fix(build): version final-release debs above their release candidates #26049 - #26066
Conversation
With BIGBLUEBUTTON_RELEASE=4.0.0 (no "-" suffix), `cut -d "-" -f2` prints the whole line, so VERSION_ADDON became "4.0.0" and the devel build version became 2:4.0.0~4.0.0+<date>-git.<rev>. dpkg compares the part after "~" with digits sorting before letters, so that version is lower than every 2:4.0.0~rc.N build. apt keeps rc.5 servers on rc.5 and reports nothing to upgrade: bbb-install.sh -v noble-40-prerelease on an rc.5 server stayed on rc.5 after the 9dfa6c0 build was published. Use `cut -s` so a release string without "-" yields an empty addon, and emit "~<addon>" only when there is one. A final release now builds as 2:4.0.0+<date>-git.<rev>, which sorts above the rc builds and above the 2:4.0.0~4.0.0 builds already published. Pre-release strings such as 4.0.0-rc.5 and 4.1.0-alpha.2 produce the same versions as before. (cherry picked from commit 71d4b47)
The build-package cache key hashes each package's own sources, its build/packages-template dir, .gitlab-ci.yml and build/deb-helper.sh, but not the scripts every package build runs through. A change to build/setup-inside-docker.sh, which composes the deb version, therefore hit the cache for every package: after 71d4b47 was merged as f8c47a1, all 13 matrix entries had the same key as at 9dfa6c0, restored the debs built there, and noble-40-prerelease received the same 2:4.0.0~4.0.0+20261014T141241 versions again. The bigbluebutton meta-package takes its version from the first .deb, so it kept that version too. Add build/setup.sh, build/setup-inside-docker.sh, build/package-names.inc.sh, build/opts-global.sh and build/get_external_dependencies.sh to the hashed list. Changing the list changes every key, so the push that merges this rebuilds all packages with the corrected version string. (cherry picked from commit a9be828)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe package cache digest now includes five additional build and dependency-management scripts. Version parsing now returns an empty addon when the release string has no addon. Development package versions include the separator and addon only when the addon is present; the commit date and Git revision suffix remain unchanged. Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
⏳ Automated tests are running... |
Forward-port of #26049 to
v4.0.x-develop, plus the CI cache fix it needs.BIGBLUEBUTTON_RELEASE=4.0.1, this branch currently builds2:4.0.1~4.0.1+<date>-git.<rev>; with the fix it builds2:4.0.1+<date>-git.<rev>.automated-tests.ymldoes not coverbuild/setup-inside-docker.shand the other shared build scripts. Without this commit, CI would keep republishing the cached debs with the old version strings. It changes all 13 cache keys, so the first build after merging rebuilds every package.Tested:
dpkg --compare-versionsputs the new 4.0.1 build above the current~4.0.1builds, above 4.0.0 and above 4.0.0-rc.5.