Skip to content

[Port to v4.0.x-develop] fix(build): version final-release debs above their release candidates #26049 - #26066

Merged
antobinary merged 2 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:port-26049-ga-deb-version-40-develop
Oct 15, 2026
Merged

antobinary merged 2 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:port-26049-ga-deb-version-40-develop

Conversation

@antobinary

Copy link
Copy Markdown
Member

Forward-port of #26049 to v4.0.x-develop, plus the CI cache fix it needs.

  • fix(build): version final-release debs above their release candidates. Cherry-pick of 71d4b47 from fix(build): version final-release debs above their release candidates #26049. With BIGBLUEBUTTON_RELEASE=4.0.1, this branch currently builds 2:4.0.1~4.0.1+<date>-git.<rev>; with the fix it builds 2:4.0.1+<date>-git.<rev>.
  • ci: rebuild packages when the shared build scripts change. The package cache key in automated-tests.yml does not cover build/setup-inside-docker.sh and 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:

  • Pre-release strings (4.0.0-rc.5, 4.1.0-alpha.2) still produce the same versions.
  • dpkg --compare-versions puts the new 4.0.1 build above the current ~4.0.1 builds, above 4.0.0 and above 4.0.0-rc.5.
  • A full CI package build was not run.

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)
@antobinary antobinary added this to the Release 4.0 milestone Oct 15, 2026
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b72f5137-6a1a-4a7c-a12e-fc2969df79c5
📥 Commits

Reviewing files that changed from the base of the PR and between 0c69881 and b30a26b.

📒 Files selected for processing: 2
  • .github/workflows/automated-tests.yml
  • build/setup-inside-docker.sh

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

Walkthrough

The 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: guileme

Merge Risk: ⚪ Minimal · up to b30a2

The version change preserves prerelease handling and fixes final-release ordering; all package caches will invalidate when the shared scripts change. No merge-blocking issue was identified.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main build fix: final-release Debian packages must sort above release candidates. It also identifies the forward-port target and related issue.
Description check Passed The description directly explains both changes: the Debian version fix and the CI package-cache key update. It also documents testing and the unrun full CI package build.
Docstring Coverage Passed 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 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

⏳ Automated tests are running...

@antobinary
antobinary merged commit 2532b99 into bigbluebutton:v4.0.x-develop Oct 15, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant