Repository navigation
ci/docs: Four small follow-ups to the CodeRabbit review of #26309 - #26313
antobinary merged 4 commits into
Conversation
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.
|
No actionable comments were generated in the recent review.
|
⏳ Automated tests are running... |
6086a9b
into
bigbluebutton:v4.0.x-develop
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 literalnightly-merge/*,merge-reportsfails, and the step stops underbash -ebefore 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 nullglobwould also fix the loop, but when no job reached the health check it would leave thegrepovernightly-jobs/*/nightly-output/health.txtat 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_LOGnaming a missing or unreadable file, the OOM check reported PASS, searching the empty output of a failedcat. It now reports FAIL, as the bbb-web.log check already does. The nightly does not setKERNEL_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
maxPresentationsPerRequestdocuments, in request order, are processed. In factprepareDocumentsmoves 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 withinvalidPresentationUrleven when its document would have been dropped. Both points are now in customize.md and in thecreateandinsertDocumentsections 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'srun:script was extracted from the workflow and run underbash -eo pipefail, withnpxstubbed out.check_oom_killswas run on its own withKERNEL_LOGset.nonehealth.txt(a FAIL line)KERNEL_LOGunreadableKERNEL_LOGmissingKERNEL_LOGwith an OOM lineKERNEL_LOGcleannightly-tests.ymlstill parses (yaml.safe_load). Theper_pagechange takes effect on the next nightly run. The docs change is prose only and adds no links.