Repository navigation
test: black-box regression suite for presentation conversion (phase 1 of #26139) - #26148
Conversation
…resentation conversion bbb-web turns uploaded files into slides with pdftocairo, pdftoppm, LibreOffice and ImageMagick, steered by about forty bigbluebutton.properties settings. Most regressions in that pipeline were found by users: blank or rotated slides, lost soft masks, errors nobody is told about. Nothing exercised the pipeline on its own; the Playwright suite uploads a handful of files through the client. The suite in bigbluebutton-tests/presentation-conversion uploads fixture files through create and insertDocument, as base64 and as URL documents, waits until each one is converted, rejected or dropped, and checks what the server produced: the outcome and error key, the page count, whether each slide SVG is vector, raster or blank, its aspect ratio, EXIF orientation of JPEGs embedded in it (bigbluebutton#26001), the extracted text, the marker orientation, and a resvg render and the thumbnail against committed goldens. It runs on the BBB host because it reads /var/bigbluebutton and the pres_* tables. It drives no browser and relies on no bbb-web internals, so a replacement converter can be checked against the same fixtures and goldens (targets/). Presentations that the defaults get wrong keep their correct expectation and are listed in known-failures.yaml: a run reports them as known, and flags them once they pass. Profiles rewrite bbb-web.properties and restart bbb-web to exercise the conversion settings away from their defaults. This commit adds the harness, 47 fixtures that reuse files already in the repository or are generated at run time (padded and 31 MB PDFs, a page over maxBigPdfPageSize, a 4000x3000 PNG, file name, URL and extension variants), and their goldens, blessed on a 4.0.0-rc.5 server and reproduced by a second run. The first known failure: FILE_TOO_LARGE for an insertDocument URL upload is sent but never stored, because PresPresentationDAO.updateErrors only updates an existing row.
…nversion defects Most past conversion bugs need a specific kind of file to show up: a Type 3 font, a page just over a tag threshold, a JPEG that keeps its EXIF orientation, a CropBox, a broken trailer. Real-world files that trigger them are rarely shareable, so these fixtures are synthetic and small: 42 files, 1.1 MB. fixtures/generators/ writes them with a raw PDF writer plus python-pptx, python-docx, openpyxl and odfpy, inside a digest-pinned python:3.12-slim image with exact package pins and no network. Output is byte-for-byte reproducible; `run.sh --check` regenerates into a temporary directory and compares. Expectations that were first only measured on a 4.0.0-rc.5 server are frozen in observed.py. Coverage: the image, path and use tag thresholds just below and above their limits, Type 3 pages, soft masks, blend modes, optional content and form widgets, /Rotate, CropBox and a MediaBox with an origin, page sizes from 50x50 pt to A0, EXIF orientations 1 to 8 (bigbluebutton#26001), CMYK and inverted-Decode JPEGs, 201 pages, empty, truncated and encrypted PDFs, and images and Office formats through ImageMagick and LibreOffice. New known failures found while writing them: - thumbnails ignore the CropBox: ThumbnailCreatorImp runs pdftoppm without -cropbox, so a cropped page's thumbnail shows the whole MediaBox while the slide is cropped; - the thumbnail of a directly uploaded portrait phone photo is sideways (bigbluebutton#13351), because only the slide goes through convert -auto-orient; - LibreOffice draws pictures in a PowerPoint deck without their EXIF orientation.
…anges and weekly The suite needs a freshly built server and about an hour, so it does not run on every pull request. A new job in "Automated tests" installs the packages the workflow already builds and runs bigbluebutton-tests/presentation-conversion with its defaults and every profile. A gate job decides whether it runs: - a pull request carries the label "trigger for presentation conversion test" (read from the event that started the run: add the label, then push or close and reopen); - a pull request or a push to a develop branch changes the conversion area (the path list lives in .github/scripts/presentation-conversion-gate.sh); - a push lands on a release branch; - the workflow is started by hand with jobs=presentation-conversion. The last case is how the weekly run works: scheduled workflows only fire from the default branch, so a dispatcher there starts this workflow on each active line with that input. A dispatched run builds and installs as usual but skips the Playwright shards, plugin and legacy media jobs; the concurrency group gets a suffix so a dispatched run and a push to the same branch do not cancel each other. The bless input writes goldens from the run and uploads them as an artifact for review. The job adds fetchUrlAllowedLocalHosts=bbb-ci.test, since bbb-ci.test resolves to the runner's private address and the suite serves its URL documents from the server itself. It fails only on regressions; known failures and fixed known failures are reported in the job summary. The private fixture tier is fetched with the PRESENTATION_FIXTURES_DEPLOY_KEY secret and skipped with a notice when that secret is absent, as on pull requests from forks. Its results are never copied into the evidence artifact.
… known failures The first runs of rasterize-all, low-thresholds, tight-limits and office-precheck against a 4.0.0-rc.5 server showed how each profile changes the output, and five more defects. Expected changes, now recorded: - low-thresholds rasterizes pages whose small images the vector slide draws smoothed while the pdftoppm raster keeps them crisp, so those pages get their own goldens; - tight-limits turns over-size SVGs into the blank slide, silently drops the 3.2 MB URL upload that exceeds its maxFileSizeUpload, and resizes images to 640x480: own goldens and expectations; - a kind given per profile no longer hides the rasterize-all default. Known failures added: - office-precheck: every office file is rejected before LibreOffice runs (bigbluebutton#25432). The condition lost its negation in 4f453c4 (2020), so the files the pre-check finds valid are the ones rejected; the message says OFFICE_DOC_CONVERSION_FAILED because OfficeToPdfConversionSuccessFilter.sendOfficeToPdfConversionFailed hardcodes that key; - rasterize-all: a rasterized cropped page shows the whole MediaBox, since SvgImageCreatorImp.createRasterizationProcess runs pdftoppm without -cropbox; - tight-limits: the blank substitute slide is always A4 (blank-svg.svg), so a 16:9 page changes shape when its SVG exceeds maxBigSvgSize; - tight-limits: FILE_TOO_LARGE for a base64 insertDocument upload is lost like the URL case. With these, the defaults and all four profiles pass on that server: 89 fixtures, 2303 checks, no regressions, 30 known failures, and bbb-web.properties restored byte for byte afterwards.
URL documents are served from /var/www/bigbluebutton-default/assets/pcf/<run>/<profile>/. The run removed the profile directory but left the empty <run> directory, and pcf/ itself, in the web root; remove both when they are empty.
… bigbluebutton-web The gate script named a handful of files and packages inside bbb-common-web and bigbluebutton-web. Conversion behaviour depends on more of those two modules than the list covered: the URL validators under api/service, the properties and nginx snippets, the Grails services and controllers around upload and serving. Rather than keep chasing the list, any change under bbb-common-web/ or bigbluebutton-web/ now starts the suite. bbb-api/ is dropped from the list: the directory does not exist on this branch yet. It can return when the Go API lands.
266c0a1 to
1548fb8
Compare
The gate decided "paths" by piping `git diff --name-only` into a function that returns as soon as one file matches a prefix. With `set -o pipefail` that early return becomes a failure: git is still writing the rest of the list, gets SIGPIPE, the pipeline's status is 141, so `&& decide true paths` never runs and the gate answers "none". It only shows with a large change set, which is why the local checks with a handful of files passed while PR bigbluebutton#26148 (about 800 files) skipped the suite. Feed the function through process substitution instead, so the reader's early return cannot fail the command that produces the list. Also start the suite when a file under bigbluebutton-tests/playwright/core/media/ changes: the repo tier uploads fixtures from there, so a changed fixture must re-run the checks. bigbluebutton-web/test/resources/, the other source of repo fixtures, is already covered by the bigbluebutton-web/ prefix.
…he CI runner The goldens were blessed on a development server. On the GitHub runner the Japanese deck repo-bbb-pptx wraps its lines differently: bbb-soffice mounts the host's font directories, and the runner's fallback font for Japanese has other advance widths than the server's. The text is the same character for character, only the line breaks move, and with them the rendered pixels (6 to 12 percent of a page). Replace the eight goldens that failed in run 39627556608 of PR bigbluebutton#26148 with the runner's actual output, taken from the report artifact of that run: the text of pages 1 to 5, the renders of pages 1 and 2, and the thumbnail of page 1. Every other check of that run passed in all five profiles, so the remaining goldens stay as they are. CI is the reference for goldens from here on; a development server may show this drift in reverse.
… bbb-web.properties apply-profile.sh copied bbb-web.properties to work/bbb-web.properties.orig the first time it ran and built every later version of the file from that copy, not from the file on the server. Only restore-profile.sh deleted the copy, and neither run-pass.sh nor bless.sh calls it, so a single `bin/run-pass.sh defaults` on a shared server left a copy behind that went stale. An edit an administrator made to the live file after that was overwritten by the next profile switch, and restore-profile.sh then wrote the old copy back and reported success. `bin/run-pass.sh tight-limits` also left the server on that profile silently. apply-profile.sh now reads the live file on every call, cuts out the previous profile block and appends the new one, so everything outside the block stays as it is. Restoring means taking the block out again: restore-profile.sh applies the empty defaults profile when the live file holds a block, and apply-profile.sh deletes the file instead of leaving it empty when the suite created it. The copy in work/ is still taken on the first apply, for recovery by hand, but nothing writes it back any more. restore-profile.sh compares it with the live file, both without the block, says so when the file was changed outside the suite in the meantime (those changes are kept) and then deletes it. run-pass.sh now warns on stderr when it leaves a profile other than defaults active; run-all.sh still restores the file at the end. The block was also appended directly after the last byte of the file. When the file did not end in a newline, `# pc-profile-begin` was glued onto the last property, and since `#` starts a comment in a Java properties file only at the beginning of a line, it became part of that property's value. A missing final newline is now added before the block, so such a file ends in a newline after a restore.
The presentation conversion job checked out bigbluebutton/presentation-conversion-fixtures-private into fixtures/private/repo/ whenever the PRESENTATION_FIXTURES_DEPLOY_KEY secret was set. Neither that repository nor its deploy key exists yet, and the tier is not ready to run in CI: the HTML and JSON reports attach the rendered slides of every fixture, and a bless run uploads the goldens it writes, so private slides would end up in artifacts that anyone who can see the run can download. The key was also put into the job-level environment, where every step of the job could read it, third-party actions included. The job no longer carries the key in its environment, and the checkout step and the step that announced the tier as skipped are gone; nothing else in the job changes. The private tier README and the tier table now say that the tier is not wired in phase 1, that a local run includes it only when PC_TIERS names private, and that private goldens, redacted failure messages and a separate report are phase 2 work tracked in bigbluebutton#26139. collect-evidence.sh decided whether a fixture was private by globbing for its manifest one and two directories deep, so a manifest deeper inside a clone of the private repository was not recognised and the fixture's server output was copied into the evidence artifact. It now looks for the manifest anywhere under fixtures/private.
…k file changed, keep server-side files remote.sh skipped `npm ci` on the server only when package-lock.json was byte-identical to node_modules/.package-lock.json. That never happens: npm's hidden lockfile has no entry for the root package and lists only what was installed, so every remote call reinstalled node_modules. A sha256 stamp of package-lock.json is now written into node_modules after a successful `npm ci` and checked before the next one. A changed lock file or a missing stamp leads to a fresh install, and because `npm ci` empties node_modules first, a failed install leaves no stamp behind either. The `rsync --delete` of the suite directory also deleted whatever the server had and the workstation did not, such as private fixtures kept under fixtures/private/ on the server and the evidence/ directory that collect-evidence.sh writes there. Both are now excluded from the sync, so they stay on the server; the workstation's own fixtures/private/ content is no longer copied to the server either.
loadDotEnv matched the value with a greedy `(.*)\s*$`, so when `npx playwright test` was run directly, an inline ` # comment` and the spaces before it became part of the value, and so did trailing whitespace; a quoted value followed by a comment also kept its quotes. The bin/ scripts source .env with bash, which drops all of that, so the same .env gave the harness and the scripts different settings. Uncommenting the PC_FIXTURES line of .env.template, for example, ran only the first of its two fixtures under Playwright alone, and PC_RUN_ID named a work directory with the comment in it. The value is now matched non-greedily, one pair of matching quotes is removed (a comment after the closing quote is allowed), and an unquoted value ends where whitespace followed by `#` begins, which also leaves `KEY= # comment` empty, as in bash. The lenient forms the reader already accepted, such as spaces around `=` and CRLF line ends, still work. The two inline comments in .env.template moved onto their own lines above the settings they describe.
…oldens/ bin/collect-evidence.sh writes evidence/ into the suite directory, and nothing kept git from listing it as untracked. proposed-goldens/ was ignored instead, but nothing creates that directory: a bless run in CI uploads goldens/ itself as the proposed goldens artifact.
…n empty server bin/apply-profile.sh restarts bbb-web only when src/cli/meetings.ts prints no meeting that the suite did not create. BbbApi.meetingIds() collected the <meetingID> tags of the getMeetings body without looking at the returncode, so a wrong secret (FAILED, checksumError) or a 502 page from nginx gave an empty list, and the profile switch restarted bbb-web on a server whose meetings it could not see. parseMeetings() now throws unless getMeetings answered SUCCESS, with the HTTP status and the messageKey in the message. meetings.ts already turns an exception into exit 2, which apply-profile.sh reports as "cannot list meetings" before refusing the restart. A server without meetings answers SUCCESS with messageKey noMeetings and no <meeting> element, so it still yields an empty list. The suite also recognised its own meetings by the "pc-" prefix of the meeting ID alone, which any other meeting may carry. Every meeting the suite creates now carries meta_pcsuite=1, which getMeetings returns as <pcsuite>1</pcsuite> in the meeting's <metadata> (bbb-web lower-cases meta names). meetings.ts reads the response per <meeting> element and treats a meeting as the suite's own when it has that tag or, for meetings left over from runs before the tag existed, when its ID has the full pc-<run>-<profile>-<n> shape. The parser is a pure exported function, so it can be checked without a server.
…tory copyTree() copies a presentation directory out of /var/bigbluebutton with `cp -a src dest` and retries with sudo when that fails. A copy that fails half-way, for example on EACCES in one subdirectory, has already created dest, and `cp -a src dest` into an existing directory copies into dest/<basename of src>. The retry therefore put the complete presentation one level too deep, under dest/server/, and the checks read the incomplete first copy. The retry now removes dest first, copies, hands the tree to the current user and adds u+rwX recursively. cp -a keeps the source modes, so a directory that was unreadable in the source (the reason the first copy failed) would otherwise stay unreadable for its new owner. Every step's exit status is checked; a failed chown used to go unnoticed.
…tead of aborting the profile runMeeting() had no error handling. Any exception in it rejected Promise.all(workers) in run(), so unstage() never ran, collected.json was not written, the meeting stayed open and no fixture of the profile was reported. servedCheck() was one way in: ready() accepts a fixture 30 s after the database reports completion even when slide1.svg is missing, collect() then lists page 1 with svg undefined, and reading r.pages[0].svg! threw; a join or fetch that timed out or was reset threw as well. servedCheck() now reports a missing slide 1 SVG, and any join or fetch error, as a failed served check. Other exceptions become the new outcome 'error', a failure of the harness rather than of the server: the fixture gets the note "harness error: <message>" (with the cause that fetch hides behind "fetch failed") and no pages, and the other fixtures of the meeting still report. That covers create throwing (every fixture of the meeting), insertDocument throwing (that document), the wait loop throwing (the fixtures not decided yet) and collect() or result() throwing (that fixture). The meeting is ended in a finally block, and also after a create that threw, because the server may have created it anyway. run() unstages the URL documents in a finally block. The outcome test never accepts 'error' and describes it with its notes, so the regression message says what went wrong. describeOutcome() and matchesExpectation() move to src/collected.ts so they can be tested without Playwright.
…that asks for it runMeeting() ran servedCheck() once per meeting, on the first converted fixture, whatever its manifest said. Eight variant manifests list `served` explicitly (the file-name variants, where the served URL is the point), and ALL_CHECKS enables it for every manifest without a `checks` list, yet most of those fixtures never got the check. The outcome test only looked at a served result when the convert step had stored one, so the missing check passed silently. The convert step now runs the check for every converted fixture with at least one page whose enabled checks include `served`. It joins the meeting once, on the first check that needs it, and the later checks of that meeting reuse the session cookie and token; a meeting without such a fixture, or a target that does not serve slides, does not join at all. enabledChecks() moves from the spec to src/manifest.ts so that both sides apply the same rule. When `served` is enabled and the fixture converted with pages, the outcome test now fails with "served check was not performed by the convert step" if the result is missing. The unused `served` field of the Manifest interface is removed; `served` stays in ALL_CHECKS.
… its whole meeting The fixtures of a create meeting all start their clock when create returns, and timeoutMs() is a budget for one document (120 s plus 20 s per page, 120 s more for Office files, at most 900 s). bbb-web converts the documents of a meeting through a limited thread pool, and two meetings run in parallel, so a small document queued behind the others could be reported as timeout while it was only waiting its turn. Every document now gets the budget of its whole meeting: its upload time plus the sum of timeoutMs() over all fixtures of the meeting, capped at 30 minutes. The 90 s "never appeared" rule still counts from the upload. When the status query failed, waitFor() pushed the error into the warnings on every 2 s poll and went on deciding outcomes from an empty row list, so a fixture whose row the database could not show became "dropped". A failed query now warns once per meeting and its poll decides nothing from the rows. The one decision such a poll still makes is the timeout of a document past its budget, with a note that the query was failing, so a database that stays down cannot keep the convert step polling until Playwright's 90 minute limit kills it. The collected timings gain queuedSeconds, the time from the upload until the presentation first appeared (directory or row); seconds still runs until the outcome was decided. Nothing reads queuedSeconds yet.
… runs generateRuntimeFixture() cached by file existence inside work/<run>/runtime, so every run with a new run ID wrote the runtime tier again (two 31 MB PDFs, a 3 MB one and three smaller files) and the copies of earlier runs piled up in work/. The generators are seeded and deterministic, so the files now go to work/runtime/, shared by all runs, named <id>-<first 12 hex digits of sha256(id + the generate spec)>.<ext>: a changed spec gets a new file rather than a stale one. A file now outlives the run that wrote it, so it is written under a temporary name and renamed, and a run killed half-way cannot leave a truncated fixture for the next one. The upload name stays <id>.<ext>. unstage() now also removes work/<run>/staging, the local copies of the URL documents installed into the web root, which were never deleted. When PC_RUN_ID is not set, summarize.ts takes the last directory in work/ as the run, and work/runtime/ sorts after every run ID; it is skipped.
…a bless run A bless run (bin/bless.sh: PC_BLESS=1 with --update-snapshots=changed) hands the server's output to toMatchSnapshot in the text, pixels and thumb checks, so every golden that differs is rewritten with it unless --from-reference is given. Two known failures say the opposite: for img-jpg-exif6-camera and for page 3 of pdf-rotate-cropbox-3p the thumbnail golden is the correct thumbnail, not the server's. A plain bless replaced both with the buggy output, and the next run reported them as "fixed". In a bless run the three snapshot checks now look in known-failures.yaml first. For a listed failure the pixels and thumb checks bless from the poppler render of the uploaded PDF when there is one (page.ref, page.refThumb); otherwise they leave the golden alone, as the text check always does. Either way the test gets a "bless" annotation that names the known failure, so the report of a bless run shows what was not taken from the server. --from-reference works as before where a reference exists; where none exists, a known failure now keeps its golden instead of falling back to the server's output.
Phase 1 does not wire up the private tier, but CI checks the private repository out into fixtures/private/repo/ whenever the deploy key is available, and selectedManifests() then uploaded every private fixture in every run: an empty PC_TIERS selected all tiers, and the only condition on a private fixture was that its file exists. Without PC_TIERS the private tier is now left out. It runs only when PC_TIERS names it, and then still only for the fixtures whose file is present. The page test attached every page's resvg render and poppler render to the Playwright report, which becomes a CI artifact. Those two attachments are now left out for a private fixture; the mean difference to the poppler render is still recorded, as a number. A failing snapshot check still makes Playwright attach its own expected, actual and diff images.
…eck runner into an error summarize.ts built the verdict from checks.jsonl alone. A test that throws outside CheckRun (decodePng on a truncated PNG, a failed attach, the five minute test timeout) writes no record there, so Playwright exited 1 while the summary said PASS. The summary now also reads results/<profile>/report.json, Playwright's JSON report: every test whose last result neither passed nor was skipped, and for which checks.jsonl holds no regression of that profile, fixture and page (0 for the outcome test, N for "page N"), adds the error "<profile>: <fixture> <test> failed outside the check runner: <first line of its error>". An error that Playwright reports outside any test, such as a killed worker, is an error as well, and so is a profile whose Playwright run exited non-zero without recording a regression and without writing the report (a killed process writes none). Errors make the verdict ERROR and the exit code 2, as for a profile that could not run. Two ways of summarising the wrong run are closed too. Converter.run() deletes work/<run>/<profile>/collected.json before it starts, so a reused PC_RUN_ID whose convert step then fails cannot be summarised with the previous run's data. Without PC_RUN_ID, summarize.ts took the last directory in work/ by name, which is not the newest one for every naming scheme (manual-1 sorts after any later timestamped run); it now takes the most recently modified one.
… review The review follow-ups changed what a run does in ways the README did not describe: the error outcome and the ERROR verdict, the shared time budget of a meeting, the meta_pcsuite tag, the runtime fixture cache, the private tier switch, how a bless run treats known failures, and the served check, which the checks table never listed.
|
This pull request has conflicts ☹ |
…uite Resolves the conflicts in .github/workflows/automated-tests.yml. In the three test jobs this branch adds an if: that skips them on a presentation-conversion dispatch, and v4.0.x-develop replaced their runs-on: ubuntu-24.04 with the CI_HEAVY_RUNNER variable (60aff1f). The resolution keeps both. The rest of the file merged cleanly. Compared with v4.0.x-develop's file, the merged one differs only by this branch's additions, and actionlint reports the same 23 shellcheck notes for both.
v4.0.x-develop moved every job of automated-tests.yml onto the CI_HEAVY_RUNNER and CI_LIGHT_RUNNER repository variables (60aff1f), so a fork can route its jobs without editing the workflow. The two jobs this branch adds still named ubuntu-24.04. The suite job installs BBB and pulls the LibreOffice image, so it reads CI_HEAVY_RUNNER. The gate job only diffs the checkout, so it reads CI_LIGHT_RUNNER. With the variables unset both keep ubuntu-24.04.
|
This pull request has conflicts ☹ |
Resolves the conflict in .github/workflows/automated-tests.yml: this branch added its two jobs right after install-and-run-legacy-media-tests, which v4.0.x-develop removed in ffc6183 (the nightly covers bbb-webrtc-sfu now). The merge drops the legacy job, as develop did, and keeps detect-presentation-conversion-changes and install-and-run-presentation-conversion-tests in its place; develop's publish-report, which no longer waits for the legacy job, merged cleanly, as did the api-conformance jobs. actionlint reports the same findings for the merged file as for develop's.
… too The workflow_dispatch input jobs=presentation-conversion (the weekly run of the suite, and a manual bless) is meant to build the packages and run the presentation conversion suite only, so this branch gave the Playwright and plugin test jobs an if: that skips them on such a run. v4.0.x-develop added api-conformance-changes and api-conformance since (a11d54a); the change detection runs on every event and, on a dispatch, compares the last commit alone, so a dispatch of a branch whose last commit touches bbb-web or this workflow would have run the API conformance suite as well. The same if: on api-conformance-changes skips it on a presentation-conversion dispatch, and api-conformance, which runs only when that job answered run=true, is skipped with it. jobs=all and the push and pull_request events are not affected.
|
Merged current One follow-up from re-reviewing against develop (1ebfc2c): develop's new Retest on a 4.0 dev container: |
…issues The six known-failure entries that carried a "not filed yet" description now point at the issues filed on 2026-11-10: bigbluebutton#26506 (thumbnails ignore the PDF CropBox), bigbluebutton#26507 (rasterized slides ignore the PDF CropBox), bigbluebutton#26508 (FILE_TOO_LARGE from insertDocument is never stored), bigbluebutton#26509 (the blank substitute slide is always A4) and bigbluebutton#26510 (an EXIF-rotated photo inside a pptx is drawn sideways). The note on the pptx entry no longer asks for the PowerPoint comparison before filing; the issue records that it is unverified. The run summary's Known failures table now links to them. lint:manifests and typecheck unchanged: 89 manifests, 0 problems.
⏳ Automated tests are running... |
What
Phase 1 of #26139: a black-box regression suite for presentation conversion under
bigbluebutton-tests/presentation-conversion/, with a CI job that runs it on demand, on changes to the conversion code, and on release pushes. The issue holds the design, the catalog of historical defects the fixtures were chosen from, the settings coverage and the later phases.The suite uploads fixture files through the API (
createandinsertDocument, as base64 and as URL documents), waits for the server to convert them, and checks what it produced: slide SVGs (vector, raster or blank), aspect ratio, EXIF orientation of embedded JPEGs, extracted text, thumbnails, and the result of rejected or dropped uploads. Slides are rasterized with resvg and compared with committed goldens. It drives no browser and reads nothing from bbb-web internals: conversion status comes frompres_presentation, output from/var/bigbluebutton, so the same fixtures and goldens can later check a replacement converter.Commits
The first five commits are the suite as designed in the issue; everything after them was added while the pull request was open, one commit per change (see "Since opening").
known-failures.yamlhandling; thebin/scripts; the repo, variant and runtime fixture tiers (47 manifests); README./Rotateand CropBox, page sizes from 50x50 pt to A0, EXIF orientations 1 to 8, CMYK and inverted JPEGs, 201 pages, empty, truncated and encrypted PDFs, image formats, Office formats..github/scripts/presentation-conversion-gate.shand the jobsdetect-presentation-conversion-changesandinstall-and-run-presentation-conversion-testsinautomated-tests.yml, plusworkflow_dispatchinputsjobsandbless.bbb-web.propertiesoverlays (rasterize-all,low-thresholds,tight-limits,office-precheck), their goldens, and the day-oneknown-failures.yaml.Since opening
bbb-common-web/andbigbluebutton-web/, plusbigbluebutton-tests/playwright/core/media/(1548fb8, 589dd3d). The first version returned on the first matching path underpipefail,git diffgot SIGPIPE and the gate answeredrun=falseon any large diff, which is why the first run of this pull request skipped the suite.repo-bbb-pptx(the Japanese deck) are taken from the runner's own output in run 39627556608; every other golden blessed on the development server passed on the runner unchanged. Nothing is left to bless before merging.bbb-web.propertiesinstead of restoring a backup over it; a failedgetMeetingsstopsapply-profile.shinstead of counting as "no meetings", and the suite recognises its own meetings bymeta_pcsuite=1; a harness error marks its fixtureerrorinstead of aborting the profile, meetings are ended infinally, and anerrornever matches an expectation;summarize.tsreads the Playwright JSON report, so a test that crashed outside the check runner gives verdict ERROR and exit code 2 instead of PASS; theservedcheck runs on every fixture that asks for it; every document gets the time budget of its whole meeting, because bbb-web queues the documents of one meeting; a bless run keeps the goldens thatknown-failures.yamlrelies on;.envvalues are read the way bash reads them;remote.shreinstalls only when the lock file changed and no longer deletes server-side files; runtime fixtures are generated once intowork/runtime/;evidence/is ignored instead ofproposed-goldens/; and the private fixture tier is out of phase 1 (see CI below).CI_LIGHT_RUNNERandCI_HEAVY_RUNNERlike the rest of the workflow since ci: let forks choose runners through repository variables #26295.v4.0.x-develop(2b63fcf, fa6ba04). Both conflicted only inautomated-tests.yml; the second drops the legacy media job as develop did in ffc6183 and keeps the two suite jobs in its place.jobs: presentation-conversiondispatch skips the API conformance jobs too; before, a dispatch of a branch whose last commit touched bbb-web or the workflow ran them as well.jobs: all, pushes and pull requests are unchanged.Outcomes
known-failures.yamlwith an issueRunning it
On a BBB server, as a user with passwordless sudo (needed to switch profiles, stage URL documents and read Postgres):
From a workstation,
bin/remote.sh user@host <command>syncs the suite to the server, runs the command there and pulls back the results and report.On any server other than the CI runner, expect the text and pixel checks of
repo-bbb-pptxto fail: its goldens come from the runner's CJK fonts and that deck renders slightly differently everywhere else. Everything else matches across the servers it has run on.CI
The job runs when a pull request carries the label
trigger for presentation conversion test(read from the event that started the run: add the label, then push or close and reopen), when a pull request or a push to a*-developbranch touches the conversion paths listed in the gate script, on pushes to*-releasebranches, and on a manual run withjobs: presentation-conversion. The job summary carriesresults/summary.md; the artifactpresentation-conversion-reportholds the HTML reports and JSON results. The job runs in parallel with the existing shards; in the latest run on this branch it took 17 minutes.Goldens are re-blessed from the runner, not from a server: dispatch the workflow on a branch of this repository with
jobs: presentation-conversionandbless: true, then commit thepresentation-conversion-proposed-goldensartifact.The label
trigger for presentation conversion testexists in the repository since 2026-11-10, so all four triggers are live.The private fixture tier is not wired in phase 1: its repository, deploy key and privacy design (own goldens directory, redacted messages, a separate report) are phase 2 in #26139, and
PC_TIERS=privateopts in locally. The weekly schedule needs a small dispatcher workflow ondevelop, which comes as a separate pull request.Results
CI run 42738872397 on this head (a 4.0.2 build of 2026-11-10 with poppler 24.02.0, ImageMagick 6.9.12-98 and Ghostscript 10.02.1): 89 fixtures, 2319 checks, 0 regressions, 0 fixed, 30 known.
The 30 known failures are the same set as in the first run on a 4.0.0-rc.5 development server: #26001 (EXIF orientation of JPEGs inside PDFs, 9 checks), #25432 (the inverted office pre-check rejects every Office file under
office-precheck, 10), #13351 (sideways thumbnail of a directly uploaded portrait photo, 2), and five defects filed from this work: #26506 (thumbnails ignore the CropBox, 2), #26507 (rasterized slides ignore the CropBox, 2), #26508 (FILE_TOO_LARGEfrominsertDocumentis never stored, 2), #26509 (the blank substitute slide is always A4, 2) and #26510 (LibreOffice draws an EXIF-rotated photo inside a deck sideways, 1).Not in this pull request
develop, the public and private fixture tiers, and the S3 conversion cache profile (phases 2 and 3 in the issue).Testing
bin/run-pass.sh defaultson a 4.0.2 development container: 564 tests, 559 passed, 5 failed, all five the text and pixel goldens ofrepo-bbb-pptxpages 1 to 5 (the runner-font goldens, see Running it); no harness error./etc/bigbluebutton/bbb-web.propertiesrestored byte for byte after every profile session.npm run lint:manifests: 89 manifests, 0 problems.npm run typecheck: clean. actionlint on the mergedautomated-tests.ymlreports the same pre-existing shellcheck notes as develop's file and nothing new.pull_requestandpushcases.