Skip to content

ci/docs: Four small follow-ups to the CodeRabbit review of #26309 - #26313

Merged
antobinary merged 4 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:ci-400-nightly-guards-and-cap-docs
Nov 4, 2026
Merged

antobinary merged 4 commits into
bigbluebutton:v4.0.x-developfrom
antobinary:ci-400-nightly-guards-and-cap-docs

Conversation

@antobinary

Copy link
Copy Markdown
Member

What does this PR do?

Four small follow-ups to the CodeRabbit review of #26309 (BigBlueButton 4.0.1, part 2), one commit each. Three touch the nightly test workflow and its health-check script. One corrects the docs of the per-request presentation cap. Nothing here changes what the packages ship.

1. ci: keep the nightly summary when no job produced a report (.github/workflows/nightly-tests.yml)

If every test job stops before Playwright writes its blob report (for example, all of them fail at install), nightly-merge/ is never created. The merge loop then runs once on the literal nightly-merge/*, merge-reports fails, and the step stops under bash -e before the "Server health checks that failed" block. That block is the only useful output such a run has. The loop now skips anything that is not a directory, as the loop over the downloaded jobs above it already does.

shopt -s nullglob would also fix the loop, but when no job reached the health check it would leave the grep over nightly-jobs/*/nightly-output/health.txt at the end of the step with no file operand, reading stdin.

2. ci: fail the OOM check when KERNEL_LOG cannot be read (bigbluebutton-tests/server-health-check.sh)

With KERNEL_LOG naming a missing or unreadable file, the OOM check reported PASS, searching the empty output of a failed cat. It now reports FAIL, as the bbb-web.log check already does. The nightly does not set KERNEL_LOG, so this only changes runs by hand.

3. ci: look for the nightly packages in the last 100 push runs (.github/workflows/nightly-tests.yml)

The build lookup read one page of 30 push runs of Automated tests. That covers about two days on v4.0.x-develop, where the next push cancels most push runs before their build finishes. It now reads 100, the maximum page size of the API.

4. docs: say which presentations the per-request cap keeps (docs/docs/administration/customize.md, docs/docs/development/api.md)

The docs said that the first maxPresentationsPerRequest documents, in request order, are processed. In fact prepareDocuments moves the current document to the front before it applies the cap, so that document is always kept and the others fill the remaining slots in request order. Also, all document URLs are validated before the cap, so a malformed URL fails the call with invalidPresentationUrl even when its document would have been dropped. Both points are now in customize.md and in the create and insertDocument sections of api.md.

Closes Issue(s)

None. Follow-up to the review of #26309.

Motivation

The review of #26309 raised 23 points. These four are the ones that needed a change. The others need no code change.

How to test

The merge step and the OOM check were run outside CI on v4.0.x-develop (e5e694d) and on this branch. The merge step's run: script was extracted from the workflow and run under bash -eo pipefail, with npx stubbed out. check_oom_kills was run on its own with KERNEL_LOG set.

Case v4.0.x-develop This branch
Merge step, no job reports downloaded exit 1, no health-check block exit 0, block says none
Merge step, one job with only health.txt (a FAIL line) exit 1, the FAIL line is lost exit 0, the FAIL line is listed
OOM check, KERNEL_LOG unreadable PASS (cat error on stderr) FAIL: cannot read
OOM check, KERNEL_LOG missing PASS (cat error on stderr) FAIL: cannot read
OOM check, KERNEL_LOG with an OOM line FAIL, line listed FAIL, line listed
OOM check, KERNEL_LOG clean PASS PASS

nightly-tests.yml still parses (yaml.safe_load). The per_page change takes effect on the next nightly run. The docs change is prose only and adds no links.

If every test job stops before Playwright writes its blob report, for
example on an install or npm ci failure, nightly-merge is never created
and the loop over nightly-merge/* runs once on the literal pattern.
merge-reports fails on it, the step stops under bash -e, and the summary
loses the list of failed server health checks, the only thing such a
run has to show.

Skip anything that is not a directory, as the loop over the downloaded
jobs above it already does. shopt -s nullglob would fix this loop too,
but it would leave the grep over nightly-jobs/*/nightly-output/health.txt
at the end of the step with no file operand, reading stdin, whenever no
job got as far as the health check.

Raised in the review of bigbluebutton#26309.
With KERNEL_LOG naming a missing or unreadable file, cat printed its
error, the search ran on an empty string and the check reported PASS.
Report FAIL instead, as check_conversion_runtime already does for
BBB_WEB_LOG.

The nightly workflow does not set KERNEL_LOG, so this only changes runs
by hand.

Raised in the review of bigbluebutton#26309.
The build lookup took a page of 30 push runs of Automated tests. That is
about two days on v4.0.x-develop, where most push runs are cancelled by
the next push before their build finishes. Ask for 100, the most the API
returns in one page, so the nightly gives up only after about a week in
which no build finished.

Raised in the review of bigbluebutton#26309.
The 4.0.1 docs said the first maxPresentationsPerRequest presentations
in request order are processed. prepareDocuments moves the current
presentation to the front before it applies the cap, so that one is
always kept and the others fill the remaining slots in request order.

The URLs of all documents are also validated before the cap, so a
malformed URL fails the call with invalidPresentationUrl even when its
document would have been dropped. Say both in customize.md and in the
create and insertDocument sections of api.md.

Raised in the review of bigbluebutton#26309.
@antobinary antobinary added this to the Release 4.0 milestone Oct 29, 2026
@coderabbitai

coderabbitai Bot commented Oct 29, 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: f87c1925-9a01-4fd6-925e-7765df041659
Commits

Reviewing files that changed from the base of the PR and between e5e694d and ad88971.

Files selected for processing: 4
  • .github/workflows/nightly-tests.yml
  • bigbluebutton-tests/server-health-check.sh
  • docs/docs/administration/customize.md
  • docs/docs/development/api.md

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

Walkthrough

The nightly workflow searches up to 100 recent Automated tests runs and skips report targets that are not directories. The server health check reports a failure when the configured KERNEL_LOG file is unreadable. The documentation clarifies presentation selection order, request limits, dropped-document responses, and URL validation.

Priority: Low

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

Change: Bug fix

Suggested reviewers: prlanzarin, germanocaumo, ramonlsouza

Merge Risk: Minimal · up to ad889

The changes improve nightly report handling and kernel-log failure reporting while clarifying presentation behavior. No actionable merge-blocking issue remains.

Pre-merge checks: Passed 3 · Failed 1 · Inconclusive 1

Failed Failed checks: 1 warning · 1 inconclusive

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check Inconclusive The title "ci/docs: Four small follow-ups to the CodeRabbit review of #26309" is partially related. It refers to real changes, but it is generic. It names no specific change, such as the nightly merge… Replace the title with a specific summary of the main change. For example: "ci: skip non-directory entries in nightly report merge" or "ci: fail OOM check when KERNEL_LOG is unreadable". Alternatively, name the combined scope, such as "ci/d…
Passed Passed checks: 3 passed
Check name Status Explanation
Description check Passed The description is clearly related to the changeset. It lists the four commits: the nightly merge-loop skip for non-directory entries, the OOM check failing on unreadable KERNEL_LOG, the increase from…
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 is clearly related to the changeset. It lists the four commits: the nightly merge-loop skip for non-directory entries, the OOM check failing on unreadable KERNEL_LOG, the increase from 30 to 100 push runs, and the docs for the per-request presentation cap. It also gives the test method and results.

Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. 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 1 functions across 1 files. (3 skipped: 3 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Full details: Title check

Explanation

The title "ci/docs: Four small follow-ups to the CodeRabbit review of #26309" is partially related. It refers to real changes, but it is generic. It names no specific change, such as the nightly merge-loop fix, the OOM check, or the per-request presentation cap docs. A teammate scanning history cannot tell the main change from it.

Resolution

Replace the title with a specific summary of the main change. For example: "ci: skip non-directory entries in nightly report merge" or "ci: fail OOM check when KERNEL_LOG is unreadable". Alternatively, name the combined scope, such as "ci/docs: harden nightly summary and clarify per-request presentation cap".

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 changed the title Ci 400 nightly guards and cap docs ci/docs: Four small follow-ups to the CodeRabbit review of #26309 Oct 29, 2026
@antobinary
antobinary merged commit 6086a9b into bigbluebutton:v4.0.x-develop Nov 4, 2026
33 of 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