Skip to content

ci: let forks choose runners through repository variables - #26295

Merged
antobinary merged 2 commits into
bigbluebutton:v4.0.x-developfrom
prlanzarin:u40d/ci/runner-vars
Oct 29, 2026
Merged

antobinary merged 2 commits into
bigbluebutton:v4.0.x-developfrom
prlanzarin:u40d/ci/runner-vars

Conversation

@prlanzarin

@prlanzarin prlanzarin commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Every GitHub Actions job now reads its runner from a repository variable, and falls back to the label it uses today.

  • CI_HEAVY_RUNNER: jobs that build packages, pull the LibreOffice image or install BBB (build-package, bbb-libreoffice-image, unify-artifacts, the install-and-run-* jobs and the nightly tests job).
  • CI_LIGHT_RUNNER: every other job.

The two are independent, so a fork can move only the light jobs to a small runner.

In detail:

Closes Issue(s)

None.

Motivation

A fork that runs CI on its own runners has to edit every runs-on line, and each upstream change near those lines then conflicts with its edits. With the variables, a fork keeps the workflow files as they are.

How to test

  • Here, with no variables set: each job of this PR's runs requests the same label as before. gh api repos/bigbluebutton/bigbluebutton/actions/runs/<run id>/jobs --jq '.jobs[] | [.name, (.labels|join(","))] | @tsv' lists them.
  • In a fork: set CI_LIGHT_RUNNER or CI_HEAVY_RUNNER to a runner label under Settings › Secrets and variables › Actions › Variables. The matching jobs then request that label.

More

  • The first run after this merges misses the Playwright browser cache once per lockfile: actions/cache keys entries on the path as written.
  • New jobs should read vars.CI_HEAVY_RUNNER or vars.CI_LIGHT_RUNNER the same way.
  • The variables suit forks and larger GitHub-hosted runners.
  • Added/updated documentation

Changelog

Technical — CI jobs read their runner from the CI_HEAVY_RUNNER and CI_LIGHT_RUNNER repository variables, falling back to the current labels.
User-facing — None.

The install-bbb and prepare-artifacts actions use the workspace path
of a GitHub-hosted runner in a repository named bigbluebutton. With
any other path, install-bbb cannot copy the built packages and
prepare-artifacts cannot save the logs. The Playwright cache steps
name /home/runner, so the cache misses for any other user.

The actions now take the path from GITHUB_WORKSPACE. The cache steps
use ~/.cache/ms-playwright, which actions/cache expands to the home of
the user running the job.
Every job names a GitHub-hosted runner label. A fork that runs CI on
its own runners has to edit each runs-on line. Each upstream change
near those lines then conflicts with the fork's edits.

With variables, a fork routes its jobs without editing the workflows,
so its runs-on lines stay identical to upstream's.

Jobs that build packages, pull the LibreOffice image or install BBB
read the CI_HEAVY_RUNNER repository variable. The other jobs read
CI_LIGHT_RUNNER. The two are independent, so a fork can move only the
light jobs to a small runner. With a variable unset, its jobs keep
their previous label.
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8e4d6ff4-4b02-45e6-a6e6-18b7ad9c3e13
Commits

Reviewing files that changed from the base of the PR and between 8a8c03d and 60aff1f.

Files selected for processing: 16
  • .github/actions/install-bbb/action.yml
  • .github/actions/prepare-artifacts/action.yml
  • .github/workflows/automated-tests-publish-results.yml
  • .github/workflows/automated-tests.yml
  • .github/workflows/check-merge-conflict.yml
  • .github/workflows/cleanup-caches.yml
  • .github/workflows/deploy-docs.yml
  • .github/workflows/nightly-tests.yml
  • .github/workflows/playwright-reports-cleanup.yml
  • .github/workflows/plugin-sdk-version-check.yml
  • .github/workflows/publiccode-yml-validation.yml
  • .github/workflows/shellcheck.yml
  • .github/workflows/stale.yml
  • .github/workflows/ts-code-compilation.yml
  • .github/workflows/ts-code-validation.yml
  • .github/workflows/welcome.yml

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

CI workflows now select light or heavy runners from repository variables, with configured fallback runners retained when variables are unset. Artifact commands use $GITHUB_WORKSPACE, and Playwright cache paths use ~/.cache/ms-playwright/ instead of fixed runner paths.

Priority: Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Suggested reviewers: gustavotrott

Merge Risk: Minimal · up to 60aff

No actionable merge risk remains; the portability changes preserve existing behavior apart from the expected one-time cache miss.

Pre-merge checks: Passed 5
Check name Status Explanation
Description check Passed The description clearly explains the configurable CI runner variables, fallback behavior, workspace path changes, cache path changes, motivation, and testing approach. It is directly related to the ch…
Title check Passed The title clearly and concisely summarizes the main change: allowing forks to choose GitHub Actions runners through repository variables.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Description check

Explanation

The description clearly explains the configurable CI runner variables, fallback behavior, workspace path changes, cache path changes, motivation, and testing approach. It is directly related to the changeset.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (16 skipped: 16 unsupported.)

Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
🧪 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.

@prlanzarin
prlanzarin requested a review from antobinary October 28, 2026 21:29
@prlanzarin prlanzarin added this to the Release 4.0 milestone Oct 28, 2026
@github-actions

Copy link
Copy Markdown

🚨 Automated tests failed

@prlanzarin
prlanzarin marked this pull request as ready for review October 29, 2026 00:11

@antobinary antobinary left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antobinary
antobinary merged commit 5381985 into bigbluebutton:v4.0.x-develop Oct 29, 2026
59 of 61 checks passed
antobinary added a commit that referenced this pull request Oct 29, 2026
Documents the part of the 4.0.1 delta that landed on v4.0.x-develop
after the first sync (#26290) audited cd89568: cd89568..410727c,
the PRs that go to v4.0.x-release with #26309, plus #25775.

new-features.md
- Other notable changes: "Static CSS classes for custom styles" for the
  bbb-* classes from #26193.
- bbb-web properties changes / Added: tag the maxPresentationsPerRequest,
  insertDocument* and presentationConversion* entries from #25786 with
  "added in BBB 4.0.1", and link the insertDocument entry to its
  customize.md section.
- bbb-apps-akka settings changes: the same tag on the two #25786 entries.

development/api.md, "Updated in 4.0", each item "(added in 4.0.1)"
- create: the maxPresentationsPerRequest cap and documentsDropped
  (#25786), and the recordingmarks and meetingID parameters on the
  meetingEndedURL callback (#26243; 4.0.0 called the URL unchanged).
- insertDocument (new item): the same cap, the per-meeting rate limit
  (rateLimitExceeded), and the messageKey every FAILED response now
  carries (notFound, invalidFilename, presentationDisabled, noDocuments
  are new; the messages are unchanged).

administration/customize.md
- "Static CSS classes for client elements" after the custom-style
  section: the naming scheme, what the classes cover, an example, and
  public.app.customStyleUrl for loading a stylesheet for every user.

Not documented: the fixes (#26215; #26289, which brought its own docs;
#26278, since SVG was already refused on every upload path), the
dependency bumps (#26296 and the dependabot PRs) and the CI changes
(#26190, #26295, #26297, #26307, and #25775, which documents itself in
.github/ci-tested-plugins.md). settings.yml, ApiParams.java,
LockSettingsParams.java, create.tsx and join.tsx are unchanged in the
range, and resources.xml only gains entries, so there is no upgrade
warning to add.
antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Nov 3, 2026
60aff1f (bigbluebutton#26295), in 4.0.1, made every job read the CI_HEAVY_RUNNER
or CI_LIGHT_RUNNER repository variable, so a fork routes CI to its own
runners without editing the workflows. build-all-images.yml exists only
on this line and still named ubuntu-24.04 in every job.

The amd64 image builds are heavy jobs and read CI_HEAVY_RUNNER. The
arm64 builds keep ubuntu-24.04-arm: no variable names an arm runner,
and pull requests build amd64 only. Listing the bake targets and
joining the per-platform images are light jobs and read
CI_LIGHT_RUNNER; the join job never runs on a fork and reads the
variable only so that every runs-on line here follows the same rule.
With a variable unset, each job keeps its previous label.
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.

2 participants