Repository navigation
ci: let forks choose runners through repository variables - #26295
Conversation
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.
|
No actionable comments were generated in the recent review.
|
🚨 Automated tests failed |
5381985
into
bigbluebutton:v4.0.x-develop
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.
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.
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, theinstall-and-run-*jobs and the nightlytestsjob).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:
install-bbbandprepare-artifactstake the workspace fromGITHUB_WORKSPACE, and the Playwright cache steps use the job user's home. The install jobs then work on any runner and in a fork with another repository name.runs-onreads one of the two variables, with the current label as its fallback.Closes Issue(s)
None.
Motivation
A fork that runs CI on its own runners has to edit every
runs-online, 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
gh api repos/bigbluebutton/bigbluebutton/actions/runs/<run id>/jobs --jq '.jobs[] | [.name, (.labels|join(","))] | @tsv'lists them.CI_LIGHT_RUNNERorCI_HEAVY_RUNNERto a runner label under Settings › Secrets and variables › Actions › Variables. The matching jobs then request that label.More
actions/cachekeys entries on the path as written.vars.CI_HEAVY_RUNNERorvars.CI_LIGHT_RUNNERthe same way.Changelog
Technical — CI jobs read their runner from the
CI_HEAVY_RUNNERandCI_LIGHT_RUNNERrepository variables, falling back to the current labels.User-facing — None.