Skip to content

ci: raise the Run tests step timeout from 25 to 40 minutes - #26297

Merged
antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
antobinary:ci-400-run-tests-timeout-40
Oct 28, 2026
Merged

antobinary merged 1 commit into
bigbluebutton:v4.0.x-developfrom
antobinary:ci-400-run-tests-timeout-40

Conversation

@antobinary

@antobinary antobinary commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

What

Raises the timeout-minutes of the Playwright "Run tests" step in install-and-run-bbb-tests from 25 to 40.

Why

The 25 dates from November 2023 (724e356), when it was the timeout of a retry wrapper around a much smaller suite; #22024 removed the wrapper and kept the number.

Since then the @ci suite grew from 71 tagged tests on 2026-10-07 to 125 on 2026-10-28. Playwright shards by file in contiguous slices, so the heavy files land on shards 2, 7 and 8. "Run tests" durations on green pushes to v4.0.x-develop, in minutes:

date 1 2 3 4 5 6 7 8
2026-09-25 17 16 14 8 15 12 17 21
2026-10-20 13 18 19 10 12 18 21 22
2026-10-28 14 25 22 12 17 20 23 22

With a 3-minute test timeout and one retry in CI, a single retried flaky test pushes shard 2, 7 or 8 past 25 minutes. That is what the recent The action 'Run tests' has timed out after 25 minutes. failures are: shard 2 on the 4.0.1 push (run 40730587461), shards 2 and 8 on #26278 (run 40733823863). The step is killed mid-run, so there is no report and no failing test to look at.

image

Scope

  • Only the main shards' "Run tests" step changes. "Install BBB" keeps 60; "Install test dependencies" and the plugin and legacy-media test steps keep 25, since they finish in about a minute.
  • No job-level timeout-minutes is set, so GitHub's default 6-hour job cap is the only other limit; 40 is well inside it.
  • The lasting fix is trimming the @ci suite by moving tests to @nightly now that ci: add a nightly workflow for the tests the per-PR gate leaves out #26190 is in; this buys headroom until then. The cost is that a genuinely hung shard now fails after 40 minutes instead of 25.

How to test

CI on this PR: the heavy shards finish green without the timeout, and the step budget shows in each shard's step list.

The 25-minute budget on the Playwright "Run tests" step dates from
November 2023, when it was the timeout of a retry wrapper around a much
smaller suite (724e356); the wrapper went away in bigbluebutton#22024 and the
number stayed.

The suite tagged @ci has grown from 71 to 125 tests between 2026-10-07
and 2026-10-28, and Playwright shards by file in contiguous slices, so
shards 2, 7 and 8 now take 22 to 25 minutes on a green run (shard 2 hit
24.9 minutes on a passing run today). One retried flaky test, at a
3-minute test timeout and one retry in CI, is enough to push those
shards past 25 minutes, which is what the recent

    Error: The action 'Run tests' has timed out after 25 minutes.

failures on v4.0.x-develop are.

40 minutes gives the heavy shards headroom while the @ci suite is
trimmed by moving tests to @nightly; it stays well inside GitHub's
6-hour job cap. The Install BBB step keeps its 60 minutes, and the
plugin and legacy-media jobs keep 25 since their test steps finish in
about a minute.
@antobinary antobinary added this to the Release 4.0 milestone Oct 28, 2026
@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: cf44dcdb-d4b6-48e8-8995-72233bccfaf3
Commits

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

Files selected for processing: 1
  • .github/workflows/automated-tests.yml

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

Walkthrough

The Run tests step in install-and-run-bbb-tests now has a 40-minute timeout instead of 25 minutes. The command and environment are unchanged.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Possibly related issues

  • Issue 26167: The timeout increase aligns with allowing longer test runs during flaky test retries.

Suggested reviewers: guileme

Merge Risk: Minimal · up to e073a

The change provides additional headroom for the growing test suite without altering commands or unrelated step timeouts.

Pre-merge checks: Passed 4
Check name Status Explanation
Title check Passed The title clearly identifies the CI test step and the timeout increase from 25 to 40 minutes.
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.
Description check Passed The pull request description directly explains the timeout increase for the Playwright "Run tests" step, including its motivation, scope, and validation.
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

Copy link
Copy Markdown
Member Author

Note: We/I do intend on moving a bunch of the new tests to @nightly rather than @ci but I don't see a real downside to bumping from 25 to 40 [and not needing the head space].

@antobinary
antobinary merged commit 898ca6f into bigbluebutton:v4.0.x-develop Oct 28, 2026
22 checks passed
@antobinary
antobinary deleted the ci-400-run-tests-timeout-40 branch October 28, 2026 22:48
antobinary added a commit that referenced this pull request Oct 29, 2026
The install-and-run-legacy-media-tests job (2d213ed) runs every test
tagged both @ci and @media in one unsharded job, with the 25-minute
step timeout copied from the main shards. The media suite has grown
with the suite as a whole, and the "Run legacy (bbb-webrtc-sfu) media
tests" step now takes 20 to 22 minutes on a green run (2026-10-28) and
was killed at 25.2 minutes on ten of the eleven runs between 2026-10-28
15:19 and 2026-10-29 11:09 UTC, on pushes to v4.0.x-develop and on PRs
alike. Each kill leaves no report and no failing test to look at.

Same change as #26297 made for the main shards: 40 minutes gives the
step headroom while the @ci suite is trimmed toward @nightly, and
stays well inside GitHub's 6-hour job cap. The job's Install BBB step
keeps 60 and Install test dependencies keeps 25.
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 Oct 29, 2026
The per-pull-request gate runs 681 tests in 8 shards. Its slowest shards
take 22-26 minutes, one of them past the old 25-minute step limit that
bigbluebutton#26297 raised to 40. These 88 leave it for the nightly: about 36 of the
gate's 161 minutes of test time, measured test by test on a 4.0 server,
which takes the shards from 14/20/23/11/18/19/24/26 minutes on the last
green push to about 12/16/17/10/13/13/18/20, and the legacy media job
from 146 tests to 135.

They are the tests whose time goes to waiting (timers, reaction expiry,
connection timeouts, heavy uploads and conversions, recording
processing) and the variants of a check that a test staying in @ci
already makes; one or two of each family stay in the gate, as in
initialSelectedTool.spec.ts. Quarantined tests and the only test of a
feature stay where they are.

The tests stay where they are and take @nightly themselves. Playwright
tags only add up, so most of them keep the @ci of their describe; the
gate scripts now leave out @nightly the way they leave out the
quarantine tags, which the nightly workflow already did, and the README
says so. Five describes whose tests all move, and the reconnection test
that is tagged on its own, change @ci to @nightly instead. Where a
test's first line no longer fits, prettier puts the title, the tag and
the function on lines of their own, as for the suite's other tagged
tests; nothing else is reformatted.

The nightly runs them on both media bridges in its @nightly jobs, which
grow from about 10 to about 45 of their 150 minutes. It tests
v4.0.x-develop only, so pull requests to a release branch no longer run
these 88 unless the nightly is started there by hand.
antobinary added a commit to antobinary/bigbluebutton that referenced this pull request Oct 29, 2026
The per-pull-request gate runs 681 tests in 8 shards. Its slowest shards
take 22-26 minutes, one of them past the old 25-minute step limit that
bigbluebutton#26297 raised to 40. These 88 leave it for the nightly: about 36 of the
gate's 161 minutes of test time, measured test by test on a 4.0 server,
which takes the shards from 14/20/23/11/18/19/24/26 minutes on the last
green push to about 12/16/17/10/13/13/18/20, and the legacy media job
from 146 tests to 135.

They are the tests whose time goes to waiting (timers, reaction expiry,
connection timeouts, heavy uploads and conversions, recording
processing) and the variants of a check that a test staying in @ci
already makes; one or two of each family stay in the gate, as in
initialSelectedTool.spec.ts. Quarantined tests and the only test of a
feature stay where they are.

The tests stay where they are and take @nightly themselves. Playwright
tags only add up, so most of them keep the @ci of their describe; the
gate scripts now leave out @nightly the way they leave out the
quarantine tags, which the nightly workflow already did, and the README
says so. Five describes whose tests all move, and the reconnection test
that is tagged on its own, change @ci to @nightly instead. Where a
test's first line no longer fits, prettier puts the title, the tag and
the function on lines of their own, as for the suite's other tagged
tests; nothing else is reformatted.

The nightly runs them on both media bridges in its @nightly jobs, which
grow from about 10 to about 45 of their 150 minutes. It tests
v4.0.x-develop only, so pull requests to a release branch no longer run
these 88 unless the nightly is started there by hand.
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