Skip to content

test(api-conformance): Add a Conformance Suite for the HTTP API - #26257

Merged
antobinary merged 160 commits into
bigbluebutton:v4.0.x-developfrom
paultrudel:api-conformance
Nov 6, 2026
Merged

antobinary merged 160 commits into
bigbluebutton:v4.0.x-developfrom
paultrudel:api-conformance

Conversation

@paultrudel

@paultrudel paultrudel commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do?

Adds bigbluebutton-tests/api-conformance/, a black-box test suite for the public HTTP API (/bigbluebutton/api/*), and the CI jobs that run it. Nothing outside that directory and .github/workflows/ changes.

  • Cases are declarative YAML (runner/schema/case.schema.json), run by bbb-conform, a Go runner in runner/. A case is a series of steps:
    • HTTP calls, signed as an integration signs them or deliberately wrong (a wrong, missing, duplicated, wrong-length or other call's checksum; a re-encoded query string);
    • presence: a headless user who joins the meeting the way the HTML5 client does, over bbb-graphql-middleware's websocket. graphql runs queries and mutations as that user (presenter and role changes, guest approval, lock settings, breakout rooms, ...);
    • bus, redis and fs: what bbb-web and akka-apps did on the redis bus, in redis and in /var/bigbluebutton, read through bbb-conform tap, a small service that runs on the server;
    • sink: the callbacks bbb-web makes and the URLs it fetches, received by bbb-conform sink.
  • Answers are recorded, then reviewed. Most steps have no hand-written expectations. bbb-conform record runs each case twice against bbb-web and writes what it answered to golden/bbb-web/, normalized: IDs, timestamps and random values are masked, and masks.yaml adds rules. run --golden then compares every step with its recording. A value that differs between the two passes is reported as unstable instead of written. review shows a recording, or what changed since a commit, next to its case.
  • Each case has a class. contract is documented or relied-on behaviour. compat is a bbb-web quirk that integrations may depend on; its header names the doc it departs from. defect asserts the correct behaviour where bbb-web gets it wrong, and is listed in expectations/bbb-web.yaml. Behaviour nobody has decided on yet, such as a method UrlMappings doesn't map, is tagged triage and only recorded, so a change to it still shows up.
  • 753 cases (with their variants) in 259 files:
    • all calls: checksums for every signed call (the full matrix on getMeetings and getRecordings, accepted and rejected sets on the others), the HTTP methods each route accepts, the version endpoint, errors as JSON, CORS headers, and the calls removed by chore(bbb-web): remove the dead api/guestWait route #26117 and chore(bbb-web): remove the dead PresentationController.delegate action #26119;
    • create: its parameters (the boolean, enum, numeric and string matrices), validation, duplicate meeting IDs and voice bridges, metadata, breakout parent checks, disabled features, the welcome message, the response, and the expiry settings (duration, no one joined, last user left, no moderator), observed on the bus and through presence users;
    • join: validation, roles, every guest policy for each kind of user, maxParticipants, createTime, user IDs, userdata, the request metadata akka-apps receives, and the user's state once in the meeting;
    • getMeetingInfo, getMeetings, getSessions and isMeetingRunning: fields, attendees and counters, and validation;
    • end: the password and validation rules, what ending does to the meeting and its users, and the end callbacks (with or without recording marks, redirects, retries and timeouts);
    • getJoinUrl: the signed URL carries exactly the caller's own parameters and the userdata names it accepts, and join accepts it.
  • Tier 1, a stack to run against (env/): bbb-web, akka-apps, redis, Postgres, Hasura, bbb-graphql-middleware, bbb-graphql-actions, nginx, the tap and the sink in Docker Compose. They run from debs built out of this tree with each package's own build script, in the image CI builds packages in. The services share one network namespace, so they reach each other on 127.0.0.1 as on a single-server install. LibreOffice converts Office documents, and ClamAV is optional. Config profiles (env/bbb-web/profiles/) switch bbb-web settings for the cases that need them. There is no FreeSWITCH, LiveKit, shared notes or recording processing. env/tier1/check-copies.sh warns when a package file Tier 1 mirrors by hand has changed.
  • CI:
    • api-conformance in automated-tests.yml: brings up Tier 1 from the debs that workflow's build-package jobs made, so it builds nothing itself, then runs every case except slow against the recordings with --fail-on-skip. A light job first checks the changed paths: the suite, or anything Tier 1 is built from or mirrors (bbb-web, bbb-common-web, bbb-common-message, akka-apps, the GraphQL side, bigbluebutton-config, the build scripts and package templates it uses). Otherwise the job is skipped. The counts go in an annotation and the gap matrix in the job summary. The reports, plus the services' logs on failure, are uploaded as api-conformance-bbb-web.
    • api-conformance-slow in nightly-tests.yml: the 14 slow cases (callback retries, expiry timing), about 20 minutes, from the packages of the newest Automated tests build of v4.0.x-develop.
    • api-conformance-runner.yml: gofmt, go vet (Linux, macOS and Windows) and go test -race for the runner, on PRs that touch the suite. Its tests run against in-process fakes of bbb-web, redis and the GraphQL side, and also load the suite's own cases and recordings.
  • Comparing implementations. diff runs the cases on two targets and lists every difference in the normalized answers, including the ones no case checks for: missing elements, tag case, order, status, Content-Type. When both targets have a tap, it also compares what akka-apps made of each create. gap turns run reports into a pass/fail matrix per endpoint and target. targets/bbb-api.yaml and expectations/bbb-api.yaml are ready for bbb-api, which isn't on this branch.

Closes Issue(s)

None.

Motivation

bbb-web's API has few automated tests. The Spock specs in bigbluebutton-web/src/test cover getJoinUrl and checksum validation, and ApiControllerSpec is @Ignored. Much of what integrations rely on (error formats, element order, status codes, what a parameter or method does) is written down nowhere but the code.

bbb-api, the Go replacement on develop, has to reproduce that behaviour. This suite pins down what bbb-web answers today, so that:

  1. a bbb-web change that alters an answer fails its PR's check, and the PR shows the new answer by re-recording the affected cases;
  2. the same cases run against bbb-api, and diff and gap show what it still does differently;
  3. two bbb-web releases can be compared: diff of, say, a 3.0 and a 4.0 server lists what an integration would see change.

How to test

Needs Linux on amd64, Docker with Compose 2.24 or later, and Go 1.26 (runner/go.mod).

The runner's own tests, with no server:

cd bigbluebutton-tests/api-conformance/runner
BBB_CONFORM_SUITE=1 go test -race ./...
go run ./cmd/bbb-conform validate --cases ../cases --golden ../golden/bbb-web

The suite against Tier 1, as CI runs it:

cd bigbluebutton-tests/api-conformance
make -C env debs                 # about 20 minutes the first time
make -C env up                   # about a minute
eval "$(make -s -C env env)"
cd runner
go run ./cmd/bbb-conform run --target ../targets/bbb-web.yaml --cases ../cases \
    --golden ../golden/bbb-web --expect ../expectations/bbb-web.yaml \
    --exclude-tags slow --fail-on-skip
make -C ../env down

--tags slow instead of --exclude-tags slow runs the nightly cases. Against another server, set BBB_URL (e.g. https://bbb.example.com/bigbluebutton/) and BBB_SECRET. The side-effect cases also need BBB_TAP_URL, the callback cases BBB_SINK_URL, and the cases that switch bbb-web's config BBB_EXEC; without them, those cases are skipped. The README covers all three.

To see the check catch a changed answer, edit a file in golden/bbb-web/ and run again: that case fails.

Results at 9a358e0 (2026-11-05):

  • The PR's api-conformance job: 739 cases, 738 passed and 1 expected failure (the defect case), in under 9 minutes including bringing up Tier 1.
  • The 14 slow cases: 14/14 on Tier 1 at 847527c (2026-11-04). None of them has changed since.
  • Each batch of cases was checked by mutation as it was added: with a wrong salt its signed cases fail, and a flipped role, guest outcome or count fails the case that checks it.

More

  • Size. 1,316 new files and two changed workflows, about 55k lines, none of it product code. The runner is 16k lines of Go, with 8.4k of tests and 8.2k of test data. The 753 recordings are 11k lines, and the 259 case files 7.7k. A reading order: the README, a few cases next to their recordings, env/, the workflows, then runner/.

  • For contributors, once merged: a PR that changes what bbb-web answers fails api-conformance until it re-records the cases it changes (bbb-conform record, then review the diff). The README's "Recording what a server answers" section explains how. The nightly job first runs once this is merged, since schedules run on the default branch.

  • Ready for review. The rest of the API comes as follow-up PRs on top of this one.

  • Not in this PR:

    • cases for the recording calls (other than their checksums and methods), presentations and uploads, document conversion, sendChatMessage, the other session-token APIs (stuns, signOut, learningDashboard) and the rest of getJoinUrl, and the nginx auth hooks;
    • env steps and response schemas: the runner skips them until they're implemented;
    • a bbb-api job, since bbb-api isn't on v4.0.x-develop;
    • a measure of how much of bbb-web the suite reaches.
  • Added/updated documentation

Start of a black-box conformance suite for the BBB HTTP API, so bbb-web
and bbb-api can be checked against the same cases.

This first part defines the YAML case format as a JSON Schema
(runner/schema/case.schema.json) and adds `bbb-conform validate`. It
checks cases against the schema and against what a schema can't
express: templates and variable references, capture expressions,
XPath, JSONPath and regex syntax, fixture files, known tags and
capabilities, and unique case IDs. Variants and YAML anchors are
expanded when a file loads, and every problem is reported with its
file and line.

The shapes of the step types that come later (presence, graphql, bus,
fs, redis, sink, env) are defined now, so cases can be written against
the whole format. The README documents it, and runner/testdata/cases
holds a worked example of each feature.
Second part of the runner core: bbb-conform now runs cases against a
target and reports PASS, FAIL, ERROR or SKIP per case, on the console
and as JUnit XML and JSON.

- The signer hashes callName + query + salt over the exact string
  sent and places the checksum first, in the middle or last. It covers
  every sign mode (valid, uppercase, bad, duplicate, none) and is
  checked against bbb-web's and bbb-api's test vectors, recomputed with
  coreutils.
- Requests keep params in order, encode like Java's URLEncoder, and
  can carry XML, form, JSON, raw or multipart bodies, chunked if asked.
  The client speaks HTTP/1.1, doesn't follow redirects and keeps a
  cookie jar per named client.
- Responses are checked with XPath 1.0, RFC 9535 JSONPath, header,
  redirect and top-level response checks. `eventually` polls until a
  condition holds, and captures feed later steps. Teardown always runs.
- The salt and secret target vars are redacted from everything written.
- Step types that aren't implemented yet, route steps and response
  schemas make a case SKIP before anything runs.

Self-tests run the CLI over TLS against an in-process fake bbb-web and
compare the reports with reviewed golden files. testdata/smoke passes
against a live bbb-web 4.0.0-rc.2.
- Commit internal/target. The repository's **/target/* rule ignored it,
  so the runner didn't build from a clean checkout. The suite's
  .gitignore now re-includes it.
- Redact secrets in every encoded form they reach a report in: query,
  path, JSON and XML. Use [salt]/[secret:name] labels, which need no
  escaping, so the final pass over serialized reports can't break XML.
- eventually: cap each attempt's timeout at the time left before
  `within`. If the last attempt can't connect, report the last real
  answer as a FAIL instead of an ERROR. Reject `every` under 10ms and a
  `within` of 0.
- Encode params, form fields and urlencode() exactly like Java's
  URLEncoder: keep *, escape ~.
- Expand templates in header and redirect-query matcher keys.
- Clip long values at a character boundary.
- run uses the fixtures directory that validation resolved.
Lets the suite run against more than one implementation and report
what differs.

- Target routes and profiles.
  - `route` steps now run: a target maps route names to paths, filling
    {placeholders} from pathParams, and can send a route to another
    base for the nginx-internal hooks that cases call on bbb-web
    directly. A route the target can't reach makes the case SKIP as
    not-routed.
  - A case's `profile` selects one of the target's config profiles.
    Profiled cases run last, one group at a time, after the profile's
    command, but only if a case in the group will actually run. The
    `default` command restores the target afterwards, even after an
    interrupt.
  - targets/bbb-web.yaml (its routes taken from UrlMappings.groovy and
    bbb-web.nginx) and targets/bbb-api.yaml.
- Expected failures. `run --expect FILE`:
  - a listed case that fails is XFAIL;
  - a passing case listed by its own ID is XPASS, which fails the run
    so the stale entry gets removed;
  - variants listed by their base ID count as a group, XPASS only once
    every variant passes;
  - a passing case covered only by a glob (a missing endpoint) stays
    PASS.
  expectations/bbb-api.yaml seeds the bbb-api gap backlog.
- A response normalizer, which record mode will reuse. It turns a
  response into ordered path/value lines. It masks values that change
  per run (times, Java dates, sha1(meetingID)-time IDs, w_ user IDs,
  generated passwords and voice bridges, tokens and checksums,
  including inside URLs and cookies), substitutes ${uid}, ${baseUrl}
  and ${apiPrefix}, drops other cases' getMeetings entries, and sorts
  lists whose order isn't defined. masks.yaml can add rules.
- `bbb-conform diff`:
  - compares two targets response by response, with ContinueOnFail so
    every step gets an answer and captures still feed later steps;
  - each side gets its own ${uid}s, and getMeetings cases run alone,
    last;
  - teardown and golden: off steps aren't compared.
- `bbb-conform gap`: a Markdown and a self-contained HTML grid of cases
  against targets, built from the run reports.
- fakebbb.NewAPI: a fake with bbb-api's response format (202,
  application/xml, returnCode and moderatorPw in create, a
  case-sensitive checksum comparison, five calls), to test all of this
  while the port can't run on 4.0.

Tests:
- fake bbb-web against fake bbb-api shows the format differences;
- fake bbb-web against a fake with other clocks and tokens shows none,
  and does show them once the createTime mask is disabled.

Live, bbb40 against itself shows no differences on testdata/smoke and
testdata/cases.
…alike

With no checksum, bbb-web answers "You must provide the checksum" or
"Checksums do not match" at random, because two checks put different
messages under the same error key. diff caught this live, as a
difference between two runs on the same server. masks.yaml now treats
the two messages as one.
…lden

Record mode will collect, store and check the same normalized step
output that diff compares, so the collector, step keys and the line
diff move to a package of their own. diff reads a case's steps through
Collector.Steps. No change in behaviour.
…eps default to off

The collector skipped golden: off steps before noting what they sent,
so a later step echoing such a value read <random> or <sha1(?)>, and
whether it did depended on the earlier step's setting. Every observed
step now counts as sent; only off steps' responses are left out.

Steps with ignoreResult default to golden: off, since their answers may
vary by design. The default resolver is exported as steps.GoldenMode
for record mode.
…tings

bbb-web adds an empty <meetings/>, messageKey noMeetings and its message
only when the whole server has no meetings. Scoping drops other cases'
meetings, so whether a case's normalized getMeetings answer had those
lines depended on what else was running: a recording of it couldn't be
stable.

A list whose children were all dropped now reads like an empty one, and
a new drop rule removes lines by path and, optionally, value. The
built-in drop rules remove getMeetings' noMeetings messageKey and
message; cases check those with expect, which sees the raw response.
run will compare each step with its recording before expect, and refuse
cases whose recording is missing or stale before they send anything.

- Observe now returns check results and an error. Its results count as
  the step's first checks, also when an eventually runs out of time; an
  error makes the step ERROR. diff's collector returns none.
- Before sees each case that will run before it sends anything; an
  error makes the case ERROR.
- Collector.Add returns a step's lines, for record mode and run.
A recording holds one case's normalized step output, one file per case
ID at <dir>/<endpoint>/<id>.txt, in plain text so a pull request shows
each changed field as a one-line diff:

  case create.x.y
  target bbb-web

  == step 1: call create
  status 200
  ...

- A case's sections follow from the case alone: every step that takes
  golden and isn't off, labelled with what it does and marked when it
  is document. A recording whose sections differ is stale.
- Build makes a recording from collected steps and fails if a section's
  step wasn't reached.
- Leaks spots the salt's placeholder or a redaction label, so such a
  recording is never written.
- Files are written atomically, and not at all when unchanged.
record runs the cases against a target and writes each case's
normalized answers to golden/<target>/<endpoint>/<case ID>.txt, for
review before they become the expected results.

- Every case runs --passes times (default 2) in one go, each copy with
  its own ${uid}, so profiles switch once. A case whose answers or
  outcome differ between passes is UNSTABLE and isn't written, with the
  lines that differ, so a mask can be added.
- A case that skips, errors, doesn't reach a step (INCOMPLETE) or whose
  answer holds a secret (SECRET) isn't written either.
- Hand-written checks don't stop a case. When one fails the recording is
  still written and the failure shown: expected in a defect case, to be
  resolved otherwise. A defect case that passes is flagged.
- Unchanged files aren't touched, recordings of cases that no longer
  exist are listed, and an output path with a directory named target
  (ignored by the repository's .gitignore) gets a warning.

diff and record share how they load masks and run cases, getMeetings
cases last; the collector redacts its lines. Self-tests record
testdata/cases and testdata/smoke against the fake, and cover each
outcome with a scripted server.
run --golden DIR compares each compare step's normalized answer with
the reviewed recording, before the step's expect, normalizing with the
same masks as record (--masks, or masks.yaml next to the cases).

- Each line that differs fails the step as its own check, a removed and
  an added line about the same field paired up, e.g.
  recording /response/returncode: expected "SUCCESS", got "FAILED".
  At most 20 per step are listed.
- A case with something to compare and no recording, or a stale one, is
  an ERROR before it sends anything, so expected-failure lists can't
  hide it. document steps aren't compared.
- Recordings of cases that no longer exist give a warning.

Tests record testdata/cases and testdata/smoke and run them against a
fake with other clocks and tokens, and against fake bbb-api, whose
differences from the recordings become the expected failures.
review shows recordings beside the cases they record (ID, title, class,
file and the case itself), so each answer can be checked against what
the case is about before it is committed.

- --since REV shows only the recordings added, changed or removed since
  that git revision, changed ones diffed section by section. The old
  versions come from git show and git ls-tree, since fresh recordings
  are untracked and git diff wouldn't see them.
- Without --since, cases that should have a recording and don't are
  listed as missing, and recordings without a case as orphaned.
- --html also writes one self-contained page; html/template escapes
  the recorded answers.
A case whose step failed before a later one was reached was reported
INCOMPLETE and also "expect failed ... Recorded anyway", though nothing
was written. INCOMPLETE now names the failure that stopped the case, and
only written recordings carry the expect note. Seen live on bbb40.
- The built-in noMeetings drop rules were anchored to XML paths, so a
  JSON answer kept them. They now match both, like the scope rule.
- record and diff no longer run getMeetings cases alone after the
  others. Normalization already keeps only a case's own meetings, and
  run doesn't isolate them, so recording and checking now run cases the
  same way. Live on bbb40 at --parallel 8, recordings without the split
  are identical to those with it.
- An UNSTABLE case also points at isolation: copies of a case may run at
  the same time, so a case other cases disturb needs the serial tag.
- run --golden no longer keeps every normalized answer for the whole
  run, nor normalizes document steps it never compares.
- diff and record line up two collections of steps with one helper,
  golden.Pairs. The unused Step.Golden field is gone.
- run --masks without --golden is a usage error instead of being
  ignored; review reports an unexpected argument as such.
- review reads each case file once, not once per variant; record warns
  about a directory named target once.
The presence driver dials the GraphQL websocket itself, so it needs the
target's TLS settings outside an http.Transport, and the JSESSIONID that
a user's join left in that user's cookie jar.
presence and graphql steps now decode into types that keep their
matchers and line numbers, ready for the runner, which still skips them.

- presence: action is join, leave, disconnect or reconnect. A join takes
  exactly one of joinUrl, args (join params, signed like a call step's)
  and sessionToken (the session a call step with client: <as> began).
  expect has jsonpath only.
- graphql: query must hold one named operation, since its name is sent
  with it, and not a Patched_ one. Values go in variables, not in the
  query. A mutation must have the one shape bbb-graphql-middleware can
  route: mutation Name($a: T!) { action(arg: $a) }, every argument a
  variable that variables gives. It is sent rewritten in a canonical
  form, so the middleware's regular expressions always read it the same.
- graphql gains timeout and eventually (queries only, every at least
  300ms: the middleware delays more than 200 queries a minute), and
  expect.errors, matched against each error message.
- A graphql or non-join presence step must name a user an earlier step
  joined.
internal/presence speaks to bbb-graphql-middleware the way the HTML5
client does, over golang.org/x/net/websocket (already in the module
graph, now a direct dependency):

- Dial sends the join's cookies, the target's base URL as Origin and the
  graphql-transport-ws subprotocol, then connection_init with its
  headers, and waits for connection_ack. The middleware's id -1 error
  frame becomes a *Rejected with its messageId.
- Do runs a query or mutation, or takes a subscription's first answer;
  when its context ends the server is told to stop the operation.
  Subscribe streams every frame of a subscription to a callback.
- Frames are compact JSON without HTML escaping, so a mutation's frame
  holds "query":"mutation, which is how the middleware routes it.
- One reader goroutine answers pings and hands frames to operations by
  id, dropping answers nobody waits for; another pings every 20s, since
  the middleware drops a connection that is silent for a minute. Close
  ends every waiter and waits for both.
The fake gains a stand-in for bbb-graphql-middleware, Hasura and the
GraphQL actions, enough to test the presence driver without a server:

- The handshake checks the subprotocol, Origin, the join's JSESSIONID
  and the connection_init headers, and rejects with the middleware's
  id -1 frame (check_authorization_error, meeting_not_found,
  too_many_connections, param_missing).
- Before a user joins, only the middleware's allowlisted queries are
  answered; others are held and answered after the join. Mutations go
  to the actions, which have no allowlist.
- user_current as a query or a subscription that pushes changes; user,
  which fails once right after a join, as it does until the session
  variables are refreshed; userJoinMeeting, userLeaveMeeting,
  userSetPresenter, userSetRole and guestUsersSubmitApprovalStatus.
- join answers like bbb-web: redirect=false gives user_id, auth_token,
  guestStatus and url; a guest of an ASK_MODERATOR meeting waits;
  JSESSIONID covers / as on a real server (two goldens change).
- isMeetingRunning is true only while a user is in and connected (ended
  meetings keep their end polls). The eventually-timeout example now
  waits for a run that never starts.
A presence.User is one headless user, joined the way the HTML5 client
joins:

- Attach dials for the session a join began and follows the user's
  user_current row through userCurrentSubscription, one of the few
  operations the middleware answers before a join. It retries a
  user_not_found or meeting_not_found while akka-apps catches up, and
  explains a check_authorization_error.
- Join sends userJoinMeeting with the auth token user_current gave, and
  waits for joined. A guest who must wait is left waiting; a later Join
  that asks to wait for approval joins once the guest is allowed. A
  denied guest, a join error, an eject or a logout fail it.
- Once joined, Join waits until the in-meeting user view answers, since
  akka-apps refreshes the session's role after the join.
- Query runs an operation as the user, refusing a query the middleware
  would silently drop before the join. Leave logs out; Disconnect drops
  the connection; Reconnect opens a new one for the same client and
  joins again if the user was dropped meanwhile.
- Snapshot is the user's state as a document: user_current without the
  presenter, locks or auth token, which a join leaves to chance or keeps
  secret, plus the session token.

Checked live on bbb40: two users joined in about 300ms, isMeetingRunning
said running, getMeetingInfo counted them, a presenter change showed up
in the new presenter's user_current, and a leave logged the user out.
The runner now runs the two step types it used to skip.

- presence join signs the step's args like a call step's join, or opens
  its joinUrl, in the cookie jar of the client named by as, or takes the
  session a call step with that client began. It then connects the user
  and joins them. A second join on a waiting guest waits for approval.
  leave, disconnect and reconnect act on the joined user. The step's
  document is the user's state; a failed join stops the case, even in
  diff and record mode.
- graphql runs the step's operation as the user, with its variables'
  templates expanded. Its document is GraphQL's data and errors; when no
  result comes, because the server closed the connection or never
  answered, the document holds that as an error. Errors fail the step
  unless expect.errors is given, which is matched against each message.
  eventually polls a query until its until holds.
- Both report their document and check it with jsonpath and captures,
  after the Observe hook; graphql reports its request as GRAPHQL.
- Users' connections close when the case ends, whatever happened.
- Targets gain graphqlUrl, by default the base URL's host at /graphql.
  The collector accepts steps that send no HTTP request.
What a presence or graphql step returns is a JSON document, not an HTTP
response, so it is recorded as the document's lines alone, normalized
like a JSON body (normalize.Document). The HTTP path is unchanged.

- Built-in masks for GraphQL's names of values that change from run to
  run: userId and extId as user IDs, meetingId and parentMeetingId as
  internal IDs, registeredOn and registeredAt as times. The time mask
  also takes ISO-8601 timestamps.
- Recording sections name what the step does: "presence join as ann",
  "graphql query Me as ann".
Two worked examples in testdata/cases, which the self-tests run, record
and diff against the fake:

- join.presence.two-users: a moderator and a viewer join, the meeting
  runs, the moderator makes the viewer presenter, the viewer sees it
  (eventually) along with the avatar the join set, and logs out.
- join.presence.guest-approved: a guest of an ASK_MODERATOR meeting
  waits, a moderator approves them, and a second join on the guest
  continues the first.

A second join on a user who joined already takes no join source: it
continues that join. The CLI tests' fake targets declare presence; the
fake keeps joined set after a logout, as bbb-web does.
A deferred assignment set a step's duration on its local copy after the
result had been returned, so every step reported 0ms. Seen in a live
run's JSON report.
- README: the two step types run now. A Users section covers joining
  (args, joinUrl or a call step's session), guests, leave, disconnect
  and reconnect, what a join returns, the graphql rules (one named
  operation, values in variables, the mutation shape the middleware can
  route, no queries before a join, errors, eventually), and the
  signatures of the actions later cases need. Targets gain graphqlUrl;
  the new masks and section names are listed.
- targets/bbb-web.yaml and bbb-api.yaml declare presence.
- The guest example declares the approval list with the action's own
  type.
- An answer the server sent just before closing the connection is the
  operation's result, not the close's error; likewise a wait for the
  user checks the last state the connection delivered before failing.
- When the server stops following the user (user_current ends), waits
  fail at once with why, instead of at the timeout.
- Leave reports userLeaveMeeting's errors, and accepts the server
  closing the connection of a user who left.
- A join on a user whose connection was dropped says to reconnect first,
  instead of passing on stale state.
- The readiness probe waits 300ms between tries, under the middleware's
  200 queries a minute.
- A graphql step's eventually caps each attempt at the time left, as a
  call step's does, and a broken check stays an ERROR when it runs out.

Tests cover the closed-connection answer, the lost subscription, leave
errors and a join without a connection. Checked live on bbb40 again.
bus, fs and redis steps now decode into types that keep their matchers
and line numbers, ready for the runner, which still skips them.

- bus: name, channel, meetingId, within. A bus step needs a meetingId
  unless its case is tagged serial, since other cases' messages would
  match too, and it must be an internal meeting ID, not ${uid}.
- fs: a path relative to the data directory, which may be a glob and
  may not leave it. redis: a key. within is optional for both.
- expect: absent (nothing matches in the whole window), exists, count
  (bus, new in the schema), contents, hash, members (the exact set) and
  ttl. A step asks one question: absent doesn't go with count, exists or
  a capture, and exists: false doesn't go with filters.
The tap reads the server's redis with internal/resp, a small RESP2
client that adds no module: commands go out as arrays of bulk strings,
replies are read by type, bulk strings by their length (payloads hold
CRLF), with null bulk strings and arrays, and error replies as *Error
without losing the connection. Subscribe waits until redis confirms
every channel, and Receive returns messages and pongs. ParseURL reads
redis://[user:password@]host[:port][/db]; Dial logs in and selects.

internal/fakeredis is an in-memory redis for the tests, with its own
command parser: the read commands, AUTH, SUBSCRIBE and PING, Go methods
to set keys and publish, Kill to drop every connection, and the list of
commands it received.
The tap, which runs next to the server, starts with what it keeps:

- A log of what it saw, bus messages and file events alike, numbered by
  one sequence, so a case can scope its checks to "since my mark"
  without comparing clocks between hosts. It is capped by size and age;
  a reader that asks for entries already dropped is told so. Entries
  never change, so readers don't hold the lock while filtering, and
  Wait wakes on the next append.
- The meeting IDs a message is about. Where a message keeps its ID
  depends on the message: the header for most, only the body for system
  messages (props.meetingProp.intId for MeetingCreatedEvtMsg, meetingId
  for MeetingEndedEvtMsg, recordId for the recording messages); a
  breakout room's creation is about both the parent and the room.
- A file watcher using inotify through the standard library, recursive,
  which adds new directories and reports the files already in them. It
  sees a recording marker that record-and-playback deletes the moment
  it appears. Off Linux it is a stub, and the tap only sees files that
  exist when asked.
bbb-conform tap runs next to a BigBlueButton server and serves what the
runner can't see from outside, over HTTP:

- /mark: where a case starts looking, a sequence number and the tap's
  instance. It answers 503 until every channel is subscribed. /info
  says what the tap follows and whether redis is reachable.
- /bus: the messages after a mark, by name, meeting ID and channel,
  waiting up to 30s for a first match. It follows the four channels
  akka-apps and bbb-web use unless told otherwise, reconnects with
  backoff, PINGs a quiet subscription, and reports a gap where it may
  have missed messages.
- /redis: a key's type, TTL and value, for keys matching an allowlist
  (meeting:*, recording:*, captions:* by default), on a second
  connection that only sends read commands.
- /fs: the files matching a glob under the data directory, read through
  an os.Root so nothing outside it can be reached, and the files that
  appeared since the mark, which the watcher saw even if they're gone.

It is unauthenticated and listens on 127.0.0.1 unless told otherwise:
for test servers only. tap.Client is the runner's side of it.
- Only a join akka-apps refuses with a join error code counts as an
  expected refusal: a denied guest or an ejected user still fails the
  step, even one that checks $.joinErrorCode is absent.
- A user whose refusal was expected is dropped: a later step as them
  errors at once, and a later join starts afresh, instead of acting for
  a user who never joined.
- The check names $.joinErrorCode in bracket form too.
- fakebbb lets a bot in at maxParticipants, as akka-apps does.
- The README says which refusals a step can expect.
- Counts use the {count: N} matcher, as the other cases do.
- The logout URL mask only matches a whole path segment or query value.
@imdt-claudiop

Copy link
Copy Markdown
Contributor

Follow-up review (adversarial round, five parallel reviewers over runner code, cases/recordings, Tier 1 fidelity, CI, and security) plus a full test-battery rerun at head a6940fd0ad1258c66e70d9f34ce306daaa82b0ac - the PR moved six commits past ce3c81387b during this round, so everything below covers the final head. Summary: every check passes, but none of the three decisions from my previous comment has been addressed, and the new commits add more undocumented behaviour pinned as contract, plus a whole tier of tests (slow) that no CI job runs. Still holding the merge.

I re-ran the full test battery on the new head and everything passes, but I'd still hold the merge. None of the three decisions from the previous round has been addressed: the files involved are unchanged since 19af7e6. The new commits also add more undocumented behaviour pinned as contract, and new tests that no CI job ever runs.

(b) Head reviewed: a6940fd0ad1258c66e70d9f34ce306daaa82b0ac. The PR moved past ce3c81387b during this round (six more commits, all inside the suite), so the battery and the final review cover a6940fd0ad. The PR is still a draft. Since 19af7e6 it adds a "sink" (a small server that receives bbb-web's callbacks and serves test files), end-callback cases, meeting-expiry cases, no-moderator and usersTimeout cases, and maxParticipants cases. It also merged v4.0.x-develop into the branch. The two workflow files did not change.

(a) Findings

Five reviewers each took one area: runner code, cases and recordings, Tier 1 fidelity, CI, and security. I re-checked the key line numbers myself.

The three decisions from last round

Decision Status
bbb-web quirks pinned as contract/compat instead of defect/triage Not addressed, and worse. masks.yaml, expectations/bbb-web.yaml (expected: []) and all the cited cases are unchanged. Still 0 defect cases out of 709, and the new cases add more (NEW-2 below).
Authentication on the tap Not addressed. runner/internal/tap/server.go is unchanged, and the new sink copies the same pattern (NEW-5).
CI cost and trigger paths (reuse the existing deb builds, drop build/** and .gitlab-ci.yml) Not addressed. Both workflow files are unchanged. A deb-cache hit keeps the job near 8 minutes, but the suite step itself roughly doubled (about 2 min → about 4.5 min).

Major

NEW

  1. The 13 slow cases never run in any CI job, but their recordings are committed. .github/workflows/api-conformance.yml:117 passes --exclude-tags full-stack,slow, and the "nightly job" mentioned in the README doesn't exist. These cases cover callback retry and back-off, the 10 s callback timeout, expiry by duration, and last-user-left / no-moderator timing. A bbb-web change that breaks any of them would merge green. I ran them by hand and all 13 pass today.
  2. More undocumented timing behaviour pinned as contract:
    • cases/create/expiry/last-user-left-delay.yaml:10: the delay counts from akka-apps removing the user (10-20 s after the leave). The docs (create.tsx:430) say "after last user left". Making bbb-web follow the docs would fail this case.
    • cases/create/expiry/no-moderator.yaml:12 and no-moderator-delay.yaml:11: the same mismatch.
    • cases/join/max-participants/left-user.yaml:12: a user who left keeps their maxParticipants seat for 60-75 s. The docs say "users allowed to join … at the same time".
    • The callback internals (exactly five attempts at 30 s, 1, 2 and 5 min, a 10 s timeout, redirects not followed) are contract in cases/end/callbacks/retry-schedule.yaml:8, timeout.yaml:10, redirect.yaml:7 and the 500 variant of retry.yaml. api.md:577-627 documents none of it. The 404 and 302 variants are compat, with no reason given for the difference.
  3. Callback retry timing is never actually checked. The step results don't include when each request arrived (runner/internal/steps/side.go:281-305), so retry*.yaml only counts requests. If bbb-web retried five times back to back with no delay, the cases would still pass. The ci cases also check "called once" only over a 1-2 s window, so a spurious retry at +30 s can't be seen.
  4. Skipped cases still never fail a run, and this now hides more. This was a minor finding last round and is now major; report.go:136 (OK()) ignores skips. Against the real server without a sink configured, 9 cases were skipped and the run exited 0. That includes create.expiry.not-joined-zero/negative, whose main check is about expiry, not callbacks: the case is skipped only because it also uses the sink URL. In CI, if the sink variables ever went missing, every callback case would turn into a skip and the job would stay green. Today's CI run had 0 skipped, so the risk is latent.
  5. The new sink has no authentication and can be pushed into multi-GB memory use. GET /fixtures/generated/x.pdf?_size=67108864 builds the whole 64 MB file in memory on every request (runner/internal/sink/generate.go:11-27). There is no write timeout or concurrency cap (cmd/bbb-conform/sink.go:100). A reviewer measured it: 12 slow-reading clients took it from 15 MB to 3.79 GB. It also has no Host-header check, so a hostile web page in a developer's browser could read callback payloads through DNS rebinding. It is published only on 127.0.0.1 in Tier 1. This is a test-harness issue, not a BBB vulnerability.

Carried over

  • env/images/bbb-web/start:23 still adds -Dspring.main.allow-circular-references=true, which the packaged service doesn't use.
  • 251 of the create cases still have no hand-written expect. The welcome-message sanitizer cases (cases/create/welcome/html.yaml:37-38) still rely on the recording alone.
  • The tap still has no authentication (runner/internal/tap/server.go:210-248).
  • Production setup is still copied by hand into Tier 1 and will drift (env/images/Dockerfile:40-59, env/images/postgres/10-bbb-graphql.sh, env/nginx/bigbluebutton.conf).

Minor

NEW

  • cases/create/expiry/not-joined.yaml:15-16: meetingExpireIfNoUserJoinedInMinutes of 0 or a negative value ends the meeting about 5 s after create. This is pinned as compat in CI, though it looks like a missing validation (a defect).
  • cases/end/callbacks/http.yaml, refused variant: it checks that no http callback arrived, but proves nothing on a server that can't reach the sink at all. Only the disruptive allowed variant shows the path works.
  • The sink logs a request before deciding its answer, and sink steps can't see what bbb-web received. A case can pass while bbb-web actually got a 404.
  • The sink opens a named pipe (FIFO) before checking the file type, so the request hangs (internal/sink/server.go:285-294). This is the same flaw as the tap's (internal/tap/server.go:538-544), which is still unfixed.
  • cases/join/max-participants/left-user.yaml:47-51 has only about 5 s of margin, so it may flake on a slow machine.
  • Sink steps can't check the request body, and the path is compared already decoded (runner/internal/spec/decode.go:563-589).
  • validate accepts within: 0s and sink keys that no URL in the case uses, so such a step can never fail.
  • A recording left behind by a deleted or renamed case is only a warning (runner/cmd/bbb-conform/main.go:305,311).
  • The --id filter exits 0 when it matches nothing, so a typo'd filter is green (I hit this myself).
  • Office conversion in Tier 1 uses its own convert.sh instead of bbb-libreoffice/assets/convert-local.sh, and that path isn't in the trigger filter.
  • The PR description is still out of date. It says 185 cases in 78 files, and that the sink isn't done yet; the branch has 709 cases in 224 files and the sink is used by 17 cases.

Carried over

  • diff still reports "identical" when one side passed and the other failed (runner/internal/diff/diff.go:100-113).
  • The time mask still turns 0 into <time>.
  • The runner still doesn't build on Windows (runner/internal/steps/exec.go:405-406), though the README says it runs anywhere.
  • gopkg.in/yaml.v3 is still the archived module.
  • No restart: policy in env/compose.yaml; the new sink service has none either.
  • Profile switches still restart only bbb-web (env/tier1/profile.sh:88).
  • The reset target still releases the profile lock too early (env/Makefile:45-47).
  • The runner workflow still has no timeout-minutes or concurrency.
  • getMeetings/list/empty.yaml and getSessions/list/empty.yaml still need a server nobody else is using.
  • The removed /api/enter and /api/feedback calls still have no case.

Partly fixed: headless-user steps are now used (presence in 16 cases, graphql in 2, sink in 17); fs and redis are still used by none. The sink rejects --max-mb 0 and --max-age 0; the tap still accepts them.

Withdrawn: my earlier note that getSessions/list/after-end.yaml needs serial was wrong. The case filters by its own meetingID.

(c) Test battery at a6940fd0ad

Suite Result Time
Runner formatting and vet (gofmt, go vet on Linux and darwin) clean <10s
Runner self-tests (BBB_CONFORM_SUITE=1 go test -race -count=1 ./...) 214 top-level tests (292 including subtests) pass, 0 fail. One test skipped locally (no pdfinfo); it passes when run in a container that has it 107s
Case and recording validation (bbb-conform validate) 709 cases in 224 files, all recordings current <5s
Build the debs (make -C env debs) ok 20.5m on the PR's base; 15m on the merge
Tier 1, the CI command, 3 runs 696/696, 696/696, 696/696, 0 skipped (709 minus the 13 slow) about 268s each
Tier 1, the 13 slow cases (never run by CI) 13/13 pass 18m36s
Can it fail? (hand-edited one sink recording, then reverted) that case fails, rc=1 <1s
Tier 1, PR merged onto the current v4.0.x-develop tip 63b4de099e 696/696; the merge is clean 271s
Real BBB 4.0 built from source at the PR head, tap on the server, no sink, disruptive and slow excluded 653 pass, 0 fail, 9 skipped, rc=0. The skips are the sink cases, and they show the "skips don't fail" problem 53s
Upstream CI on ce3c81387b (checked with gh) "bbb-web on Tier 1" passed, 687/687, deb cache hit, 7m49s; runner self-tests and automated-tests passed -

I couldn't run the end-callback cases against the real server, because that needs the sink reachable from it with a trusted certificate (the README's Tier 2 setup). They do run on Tier 1. The disruptive cases also weren't run against the real server: switching profiles restarts the packaged bbb-web, which the dev-mode server doesn't use. They pass on Tier 1. I didn't check upstream CI on a6940fd0ad itself.

(d) Verdict

Not ready to merge. Every check passes, the suite works, and it can fail when it should. But none of the three decisions from last round has been made. The new commits pin more undocumented behaviour as contract and add a whole tier of tests (slow) that no CI job runs. Before merging I would want:

  • the questionable quirks moved to defect or triage;
  • token authentication on the tap and the sink;
  • either a scheduled job for the slow cases, or those recordings left out until one exists;
  • skips counted as failures in CI.

gopkg.in/yaml.v3 is archived; go.yaml.in/yaml/v3 is its maintained
continuation, under the YAML organization, with the same API.
- run --fail-on-skip fails a run in which any case was skipped, for CI,
  where every case selected should run.
- run, record and diff refuse filters that select no case (exit 2), so a
  misspelt --id or tag no longer makes an empty run that passes.
- diff reports a case that passes on one side and fails on the other as
  differing, even when the normalized answers match.
- validate refuses an absent step without a within longer than 0, sink
  steps included, and an absent (or count 0) sink step on a key no URL in
  the case sends requests to: neither could fail.
Killing a profile command's process group is Unix-only, so it moves to a
file of its own; elsewhere cancelling kills the process. The runner job
vets the Windows build.
- The tap and the sink take a bearer token from BBB_TAP_TOKEN and
  BBB_SINK_TOKEN, and won't listen on an address other hosts reach
  without one. The tap needs it on every endpoint but /info, the sink on
  /_received; recording and fixtures stay open, since the server under
  test sends no token. The runner sends the tokens from the same
  variables and redacts them. Tier 1 makes both once.
- The sink's /_received answers only requests addressed to an IP
  address, localhost or a --hosts name, as the tap does.
- Generated fixtures are computed as they are sent instead of built in
  memory.
- The sink and the tap open regular files only.
- The sink records why it couldn't answer a request as its URL asked (an
  unknown modifier, a missing fixture), and a sink step that sees such a
  request ERRORs instead of passing on a request the server got an error
  for.
- The sink records the path as sent, and sink steps can filter on the
  body.
- The tap refuses a --max-mb or --max-age that isn't positive.
- bbb-web starts without -Dspring.main.allow-circular-references, as
  bbb-web.service has since a6c8e4d.
- env/tier1/check-copies.sh warns about the package files Tier 1 mirrors
  by hand (units, install scripts, Depends, akka-apps' preinst, the
  LibreOffice converter) that changed since it last followed them, from
  the hashes in copies.sha256.
- Services restart when they exit, as the packages' units restart
  theirs.
- A profile switch restarts akka-apps too when it changes
  clientSettingsOverrideStrictValidation, which akka-apps reads; make
  reset holds the switcher's lock throughout; up and reset give up after
  15 minutes instead of waiting forever on a service that never gets
  healthy.
- The extensionless scripts are executable, so the repository's
  ShellCheck job finds them; convert.sh quotes its temporary directory.
A case is compat when bbb-web following the docs to the letter would
fail it; each one now names the doc it goes beyond: the
meetingExpireWhenLastUserLeftInMinutes delay counting from akka-apps'
removal, a user who left keeping a maxParticipants seat, voiceBridge
values that aren't 5 digits, create's key for a missing meetingID,
ASK_MODERATOR and ALWAYS_DENY applying to viewers who aren't guests, and
ALWAYS_ACCEPT_AUTH, which no doc lists. They are still compared. The
left-user case also checks the seat is still held 50 seconds after the
removal rather than 55, for more margin.
…tizer

- The retry, retry-schedule and timeout cases bound each attempt in time
  with count windows, 10 seconds either side of when it is due, so
  attempts sent back to back, or late, fail; before, only the number of
  attempts was checked. On Tier 1 they came 30, 90, 210 and 510 seconds
  after the first, and 40 after a timed-out one.
- api.md documents the end callback, not its retries, timeout or
  redirects, so those cases are compat, every retry variant alike.
- Each welcome-message variant states what must be left of the message,
  and the bus step checks it, so a sanitizer change can't pass on a
  re-recording alone.
- getMeetings.checksum.missing-message, a defect case: a call without a
  checksum should always say it is missing, where bbb-web says that or
  "Checksums do not match" at random. Sixteen requests must all be right;
  expectations/bbb-web.yaml lists it, so it XFAILs on bbb-web.
- The removed enter and feedback calls answer 404, as guestWait does.
- The expiry cases no longer need the sink: the end callback a meeting
  that ends by itself sends is a case of its own,
  end.callbacks.expired.
- end.callbacks.http sends an https meetingEndedURL too, which must
  arrive, so the http one not arriving means something on a server that
  can't reach the sink.
- The README says case files are YAML 1.2, where golden: off is a
  string.
- The Tier 1 job moves into automated-tests.yml: it needs build-package
  and starts the stack from the debs that job made, instead of building
  them again (about 17 minutes on a cache miss, which most runs were).
  A light job checks the changed paths first, so a change that touches
  nothing the suite tests doesn't start it. build/** becomes the build
  scripts and package templates the five debs use. It runs with
  --fail-on-skip, and annotates the run with check-copies.sh's warnings.
- The slow cases, which no job ran, run every night: an
  api-conformance-slow job in nightly-tests.yml, from the packages of
  the build that workflow tests.
- api-conformance.yml goes. The runner job gets a timeout and a
  concurrency group.
- The Tier 1 jobs take the five debs from all-bbb-artifacts:
  unify-artifacts deletes the per-package artifacts once it has gathered
  them, so the nightly job could never find them and the per-PR job
  raced the deletion. The per-PR job now waits for unify-artifacts.
- The sink's /_received answers to the names its certificate covers too:
  without BBB_SINK_READ_URL the runner reads the sink by the server's
  name for it, which the Host check had started refusing.
- A profile switch that fails before akka-apps has restarted leaves a
  marker, so the next switch restarts it even though the file no longer
  changes; profile.sh waits up to 20 minutes for the lock, longer than a
  reset can hold it, and reads bbb-web's container once it has the lock.
- The tokens' env_file is optional, so compose commands work before the
  first render (Compose 2.24 or later).
- diff redacts the tokens too: both register secrets through
  steps.AddSecrets.
- The tap and the sink share their Host and bearer-token checks
  (internal/guard).
- Generated fixtures are copied in runs, not computed byte by byte:
  about 1 ms for 64 MiB instead of 110 to 190.
New case end.lifecycle.users: after end, a user who had joined reads in
their own state that they are logged out and out of the meeting, which
ended from the API, and akka-apps tells every client to disconnect.
api.md says end kicks all participants out; nothing checked it.

join.role.rejected's header now names the doc it goes beyond, as the
other compat cases do: join.tsx says a failed join redirects.
@paultrudel
paultrudel marked this pull request as ready for review November 5, 2026 17:16
@paultrudel

Copy link
Copy Markdown
Collaborator Author

Thanks for both rounds. I checked every point against the code, the docs and Tier 1. Most were right and are fixed in the commits listed at the end. Where I disagree, I say why.

The three decisions

1. bbb-web quirks pinned as expected answers. The README defines contract as documented or relied-on behaviour and compat as a bbb-web quirk that is still compared. Your examples were right that several cases called undocumented behaviour contract. I relabelled by one rule: a case becomes compat when bbb-web following the docs literally would fail it. Each relabelled case now names the doc it departs from. They are:

  • the callback retry, timeout, schedule and redirect cases (api.md documents none of it), with all retry variants now compat for the same reason;
  • last-user-left-delay (it counts from akka-apps' removal, while create.tsx says "after last user left");
  • both maxParticipants left-user cases (a user who left keeps a seat);
  • the 7-digit voiceBridge (create.tsx asks for 5 digits);
  • create's missing meetingID (validationError, where isMeetingRunning says missingParamMeetingID);
  • the ASK_MODERATOR and ALWAYS_DENY variants that hold or refuse non-guests (create.tsx says the policy applies to guest=true; bbb-web has done otherwise on purpose since 8538520);
  • both ALWAYS_ACCEPT_AUTH files (not among the documented policies).

no-moderator and no-moderator-delay stay contract. Their windows pass when bbb-web does what create.tsx says: the delay counts from the leave, as no-moderator-delay shows.

They stay compared rather than triage. The suite exists to pin what bbb-web does for the bbb-api port, so a PR that changes one of these answers should show up and re-record. Moving them to triage would hide such a change from both bbb-web and bbb-api.

The random missing-checksum message is a real defect, so it is now a defect case: getMeetings.checksum.missing-message. It sends 16 requests that must all say "You must provide the checksum", and it is listed in expectations/bbb-web.yaml. On Tier 1 it XFAILs; bbb-web gets all 16 right about once in 65,000 runs. No upstream issue has been filed yet.

not-joined with 0 or a negative value stays compat. create.tsx gives 0 the same meaning for meetingExpireWhenLastUserLeftInMinutes ("ends the meeting as soon as"), so it isn't clearly a missing validation. join.role.rejected was already compat; its header now names the doc too (join.tsx says a failed join redirects to errorRedirectUrl or the logout URL).

2. Tokens on the tap and the sink.

  • Both take a bearer token from BBB_TAP_TOKEN and BBB_SINK_TOKEN, and refuse to listen on an address other hosts reach without one.
  • The tap needs the token on every endpoint but /info. The sink needs it on /_received; recording and fixtures stay open, since bbb-web sends no token.
  • The runner sends the tokens from the same variables and redacts them. Tier 1 makes both once.
  • /_received now has the tap's Host check (IP addresses, localhost, the names its certificate covers, --hosts), which closes the DNS-rebinding route.
  • Generated fixtures are computed as they're sent: no more 64 MB buffers per request. With 12 clients reading 64 MB PDFs at 32 KB/s, the Tier 1 sink stayed at 11 MB. The buffers were the harm, so I didn't add a write timeout or a connection cap.
  • Both servers open regular files only, so named pipes no longer hang them.

3. CI cost. The Tier 1 job moved into automated-tests.yml.

  • It runs after unify-artifacts and takes the five debs from all-bbb-artifacts, so it no longer builds its own: about 17 minutes saved on every cold run, which was most runs.
  • A light job decides from the changed paths whether the heavy one runs at all.
  • build/** became the build scripts and package templates the five debs use.
  • .gitlab-ci.yml stays: build-debs.sh and build-package both take the build image from it.

Narrowing paths barely changes the trigger rate. Over the last 186 merged v4.0 PRs it ran for 65 (35%, not 41%), and 63 with build/** narrowed. The saving comes from not rebuilding.

Other points

  • slow never runs: the slow cases now run every night, as an api-conformance-slow job in nightly-tests.yml. It starts Tier 1 from the packages of the build the nightly tests (find-build), at that build's commit. Schedules run on the default branch, so it first runs once this is merged. The "nightly job" comment that pointed nowhere is gone.
  • Retry timing unchecked: retry, retry-schedule and timeout now bound each attempt in time with count windows, ±10 s around when it is due. Attempts sent back to back, or late, fail. Verified on Tier 1.
  • Skips never fail: there is a new run --fail-on-skip, which CI uses. The expiry check in not-joined no longer needs the sink; the callback on expiry is its own case, end.callbacks.expired.
  • Welcome sanitizer relies on the recording: each variant now states exactly what must be left of the message, and the bus step checks it. Most other create cases still lean on their recordings, which is the record-mode design. Hand-written checks go where a re-record could hide a safety regression.
  • allow-circular-references: removed. It was drift: upstream dropped it from bbb-web.service in a6c8e4d. That commit also shows Grails 8 defaults the property to true, so the failure scenario doesn't arise in practice.
  • Hand-copied packaging: env/tier1/check-copies.sh hashes the sources Tier 1 mirrors (units, install scripts, Depends, akka-apps' preinst, convert-local.sh). CI annotates any that changed since Tier 1 last followed them. bbb-install's nginx site isn't in the repo, so the README says nothing checks it.
  • restart:: every long-running service now has restart: unless-stopped.
  • Profile switches: a switch also restarts akka-apps when it changes clientSettingsOverrideStrictValidation, the one bbb-web setting akka-apps reads. make reset holds the switcher's lock throughout.
  • diff identical on PASS/FAIL: now reported as differing, with a note.
  • Windows: the process-group code is Unix-only now, and the runner job vets GOOS=windows. The README's "anywhere" meant any host; it now says so.
  • gopkg.in/yaml.v3: replaced by go.yaml.in/yaml/v3.
  • Sink logs before answering: the sink records why it couldn't answer (unknown modifier, missing fixture), and a step that sees such a request ERRORs.
  • Sink step body and decoded path: steps can filter on body, and the path is recorded as sent.
  • within: 0s and unused keys: validate refuses an absent step without a within above 0. It also refuses an absent or count-0 sink step on a key no URL in the case uses.
  • --id matching nothing: run, record and diff now exit 2.
  • Removed enter and feedback: both have cases now, answering 404.
  • end removing users: new case end.lifecycle.users. After end, a user who had joined reads in their own state that they're logged out and out of the meeting, which ended from the API. akka-apps then tells every client to disconnect. running, attendee counts and hasUserJoined are covered by the getMeetingInfo/users and getMeetings/users cases.
  • http.yaml refused proves nothing: the case now sends an https meetingEndedURL as a control, which must arrive.
  • left-user margin: now 10 s.
  • The tap's --max-mb 0: refused.
  • Runner workflow: has timeout-minutes and concurrency now.
  • SC2046: fixed. The extensionless scripts are executable now, so the repo's ShellCheck job picks them up. All env scripts are clean at warning level.
  • golden: off and YAML 1.1: the README now says case files are YAML 1.2, as the runner and the schema read them.
  • PR description: rewritten, now that the PR is out of draft.

Not changed

  • Orphaned recordings: run --golden warns, but validate --golden fails on them. The runner job runs that through suite_test.go, so CI already catches a renamed or deleted case.
  • The time mask hides 0: this is deliberate. startTime reads 0 or a time right after create, which broke self-diffs when unmasked. getMeetingInfo.fields.defaults asserts endTime is 0 with an expect, as the mask's comment says to.
  • getMeetings/getSessions list/empty: they're serial, wait up to 10 s for other meetings to go, and say they need an otherwise idle server. Since teardowns re-send end until notFound, leftovers haven't appeared (0 in our runs).
  • fs and redis steps unused: cases for them come with the recording and fs tickets. presence, graphql and sink are in use now.
  • ci callback cases with short windows: a late spurious retry is covered in the slow tier (timeout-under waits 50 s), which now runs.

Verified

  • Runner: BBB_CONFORM_SUITE=1 go test -race ./... passes. go vet passes for Linux, macOS and Windows. ShellCheck is clean at warning level, and actionlint finds nothing in the new jobs.
  • On Tier 1, rebuilt from this branch at 2000964: CI-style run 737 cases, 736 passed and 1 XFAIL, 0 skipped. end.lifecycle.users passed 17 runs out of 17 on its own, and fails when one of its expected values is changed.
  • end.lifecycle.users then failed once in this PR's CI, at 2000964. akka-apps logs the users out and marks the meeting ended in two separate writes, and the case read the state between them. 525b28b makes it wait for both. It has passed 60 runs out of 60 on Tier 1 since, four at a time.
  • On Tier 1: the slow tier, 14/14. The sink logged retries 30, 90, 210 and 510 s after the first, and 40 s after a timeout.
  • PR CI on 9a358e0, the current head: the api-conformance job passed, 739 cases, 738 passed and 1 XFAIL, 0 skipped, in 9 minutes. The runner job, Windows vet included, and the other 30 checks passed. Two were skipped. "Merge conflict check" was cancelled before it started, because it shares a concurrency group with another workflow; it isn't a conflict, since GitHub reports the PR as mergeable.

Commits:

  • bc9f3b7 build(api-conformance): move the runner to go.yaml.in/yaml/v3
  • d8e3629 fix(api-conformance): runner checks that can't pass by default
  • b80d015 build(api-conformance): build the runner on Windows too
  • a0414d6 fix(api-conformance): tokens for the tap and the sink, and sink fixes
  • cd7eec6 fix(api-conformance): Tier 1 closer to a packaged server
  • d85a006 test(api-conformance): mark behaviour the docs don't promise as compat
  • d7360a1 test(api-conformance): pin callback retry timing and the welcome sanitizer
  • 5f60029 test(api-conformance): cases the review found missing
  • a11d54a ci(api-conformance): reuse build-package's debs; slow cases nightly
  • 847527c fix(api-conformance): fix issues found reviewing the review fixes
  • 2000964 test(api-conformance): end removes the users in the meeting
  • 525b28b fix(api-conformance): wait until end has marked the meeting ended

Since then, and not from the review:

  • 9a358e0 test(api-conformance): getJoinUrl signs exactly the session's parameters

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

✅ Automated tests have passed!

@antobinary

Copy link
Copy Markdown
Member

@imdt-claudiop please review again.

@imdt-claudiop

Copy link
Copy Markdown
Contributor

Third round: I verified the fix commits against every finding from my previous comments (five reviewers, one per area, key points re-checked by me) and re-ran the whole battery on 127dc33f3145933a80d9a47a1f1be0ce8420b771, including the first real-server run with both tokens, callbacks and the slow tier. Short version: ready to merge, in my view. Details below.

I checked the author's fixes against the code and re-ran everything on the new head, and I think the PR is now ready to merge. All three merge-blocking decisions from the earlier rounds are addressed, and nothing blocker- or major-level is left. What remains is minor and only affects the test harness, not BigBlueButton itself.

(b) Head reviewed: 127dc33f3145933a80d9a47a1f1be0ce8420b771 (out of draft). It merges cleanly onto the current v4.0.x-develop tip b0ef76e51a.

(a) Did the author fix what we raised?

I didn't take the reply at its word: five reviewers each checked one area, and I re-checked the key lines myself.

The three merge-blocking decisions

Decision Status Evidence
bbb-web quirks pinned as the expected answer Fixed, with a few leftovers All the cases the author listed are now compat, and each names the doc it departs from. The random missing-checksum message is now a defect case (getMeetings.checksum.missing-message), listed in expectations/bbb-web.yaml. Its 16 requests are genuinely independent: Hibernate Validator's set order changes per request, so it is not fixed per JVM. That puts an unexpected pass, which fails CI, at roughly 1 in 25,000 to 1 in 184,000 runs; acceptable. A few contract cases still break the author's own rule (new finding 1). Keeping no-moderator/no-moderator-delay as contract is sound against the akka code.
Authentication on the tap and the sink Fixed (verified live) Both refuse to listen on a reachable address without a token: 0.0.0.0, [::] and the host's own name are refused, loopback is allowed. The tap answers 401 without the token on every endpoint except /info, including path tricks and wrong auth schemes. The check is constant-time (runner/internal/guard/guard.go:35-41). /_received gained the Host check. On the real server: 401 without the token, 200 with it.
CI cost and trigger paths Fixed The Tier 1 job now lives in .github/workflows/automated-tests.yml:231-315 and reuses the five debs from the existing build. A light gate (:189-224, plain git diff, runs the job when in doubt) decides whether it runs. build/** is narrowed, and keeping .gitlab-ci.yml is justified: the build image is read from it. Upstream on this head the job took 8m54s, with 738 passed plus 1 expected failure, 0 skipped.

Round-2 findings

Finding Status Evidence / judgement
slow cases never run anywhere Fixed Nightly api-conformance-slow job (nightly-tests.yml:256-331). It checks out the same commit as the packages, and the default branch is v4.0.x-develop, so it will actually run on this line once merged.
Callback retry timing not checked Fixed Count windows of ±10 s around each attempt. Attempts sent back to back or late fail the next window. All 14 slow cases pass on Tier 1 and on the real server.
Skipped cases never fail a run Fixed --fail-on-skip (cmd/bbb-conform/main.go:229,334-337) is passed in both CI and the nightly. The expiry case no longer depends on the sink.
Sink memory blow-up Fixed Generated files are streamed: 12 slow readers on 64 MB files kept the sink at 19 MB, against 3.79 GB before.
Sink FIFO hang / tap FIFO hang Fixed Only regular files are opened. A small stat-then-open race remains (nit).
Undocumented timing pinned as contract Fixed Relabelled to compat; see decision 1 and new finding 1.
Welcome-message sanitizer checked only by its recording Fixed All 17 variants have an explicit expected output plus a bus check (cases/create/welcome/html.yaml:16-47).
Other create cases with no hand-written expect Not fixed, but reasonable That is the record-mode design, and the safety-relevant cases now have expects.
allow-circular-references flag on Tier 1 only Fixed Removed. Commit a6c8e4d1b2 exists on the base and dropped it from the packaged service too.
Production setup copied by hand Partially fixed env/tier1/check-copies.sh hashes the mirrored files, but it only warns (new finding 2).
restart: policy missing Fixed env/compose.yaml:24, applied to every long-running service.
Profile switch didn't restart akka-apps Partially fixed Tier 1 now restarts akka-apps (env/tier1/profile.sh:85-127). The key detection is a strict grep, and the full-install switcher still restarts only bbb-web. No profile sets the key today.
make reset lock race Fixed env/Makefile:45-49 holds the lock throughout.
diff "identical" on PASS vs FAIL Fixed internal/diff/diff.go:112-117.
Windows build Fixed Build and vet pass on linux, darwin and windows.
Archived gopkg.in/yaml.v3 Fixed Replaced. All 357 YAML files in the suite parse identically with the old and new library.
Sink records a request it couldn't answer, step can't tell Fixed Such requests are recorded with the error, and a step watching them ERRORs.
Sink steps can't check the body; path decoded Fixed Body filter added; path recorded as sent.
validate accepts within: 0s and unused sink keys Fixed Both refused now. 1ms or count: {regex: '^0$'} still get through (nit).
--id matching nothing exits 0 Fixed Exits 2. A typo inside a comma list is still dropped silently (nit).
http.yaml refused variant proves nothing alone Fixed An https control must arrive before the http count is checked.
left-user margin Fixed 10 s at the lower bound; only about 5 s of slack at the upper.
Removed /api/enter and /api/feedback untested Fixed Both now have 404 cases.
Runner workflow timeout and concurrency Fixed api-conformance-runner.yml:10-20.
PR description stale Fixed 753 cases in 259 files and 14 slow, matching the tree.
Orphaned recordings only warn Not fixed, but reasonable I created an orphan and also deleted a case in a scratch copy: validate --golden exits 1 both times, and the runner job runs it.
not-joined with 0 or a negative value as compat Not fixed, but reasonable compat is defensible. The argument borrows another parameter's 0, and api.md:169 says "non-negative integer", so defect would fit −5 better.
list/empty cases need an idle server Not fixed, but reasonable Now serial with a 10 s wait.
Time mask hides 0 Not fixed, but reasonable (partly) The reason covers startTime only. Masking 0 for endTime too still hides changes everywhere except one case. Minor.
members ignores list order and truncation Not fixed, not answered runner/internal/steps/side.go:590-606. No case uses it yet. Minor.
Floating image tags Not fixed, not answered Reasonable for a test stack.
end.lifecycle.users two-write race (525b28b134) Fixed akka-apps does two ordered, separate writes on end: users logged out, then the meeting marked ended (db/UserDAO.scala:170-177, db/MeetingDAO.scala:210-229). There is no third racing write before the disconnect 2.5 s later. Waiting for both is sound, and it passed 60/60 here, four at a time.

NEW findings (all minor or nit)

Minor

  1. The relabel rule is applied unevenly.
    • cases/create/validation/name-length-bounds.yaml:6,10 is contract and accepts a 256-character name, but api.md:93 says 2 to 64. I checked this one myself.
    • The guest-moderator variants are still contract and expect ALLOW for a guest=true user: cases/join/guest/ask-moderator.yaml:17, always-deny.yaml:15.
    • cases/create/expiry/no-moderator-kept.yaml "never-joined" relies on a rule the docs don't state.
    • cases/join/response/error-target.yaml:9-26 disagrees with join.tsx:87.
  2. check-copies.sh is a reminder, not a check.
    • It always exits 0, only annotates, and hashes whole files (env/tier1/check-copies.sh:20-31).
    • Running --update silences it without anyone checking the copy.
    • The list misses some mirrored sources: bigbluebutton-web/run-in-systemd.sh, the LibreOffice and graphql-server opts-noble.sh, bbb-graphql-server/bbb-pg.conf, and the record-core and learning-dashboard after-install scripts.
  3. The sink's Host check ignores wildcard certificate names (runner/internal/guard/guard.go:25-29, names from cmd/bbb-conform/sink.go:171). Reproduced on the real server: with a *.bbb.imdt.dev certificate, /_received answered 421 to the sink's own hostname until I passed --hosts. The README says the certificate's names are accepted.
  4. No read or idle timeouts (cmd/bbb-conform/sink.go:113, tap.go:85). 3,000 connections dripping a body were all still held after 15 s. A body-read timeout plus an idle timeout wouldn't affect the long-polls.
  5. Anyone who can reach the sink can flood it until the real records are evicted, which turns the run into ERRORs (internal/sink/log.go:49). This only matters when the sink is exposed beyond loopback, which Tier 1 isn't.
  6. The recordings-endpoint checksum -rejected cases check only messageKey, and the global mask merges the two messages, so the wrong message would pass. Affected: cases/common/checksum/getRecordings-rejected.yaml and the deleteRecordings, publishRecordings, updateRecordings and getRecordingTextTracks equivalents.
  7. The nightly slow job isn't wired into the nightly report (nightly-tests.yml:333-336). Its failure is only a red job, on a nightly that is already red most nights. The first nightly after merge may also fail once, if the newest packages predate the merge.
  8. restart: unless-stopped side effects: after a Docker daemon restart, the services come back without net (which stays restart: "no") and loop failing until someone runs make up. A crashing service may also make up --wait sit out its full 900 s instead of failing fast (unverified).

Nits

  • --max-mb still overflows for huge values (cmd/bbb-conform/tap.go:79, sink.go:91).
  • The open /_info shows the absolute fixtures path.
  • The README says case files are "YAML 1.2", but the parser still reads 017 as octal and yes as true. The behaviour is unchanged, so this is just wording.
  • The tokens are also copied into conform.env without the restrictive umask.
  • The welcome regex doesn't check anything after a newline.
  • The CI path filter misses a few packaging templates (libreoffice-docker, record-core, learning-dashboard).

(c) Test battery on 127dc33f

Suite Result Time
Formatting, and go vet / go build on linux, darwin and windows clean, all pass <10s
Runner self-tests (go test -race -count=1) 231 top-level tests (315 including subtests) pass. One skipped locally (needs pdfinfo); it passes in a container that has it 113s
Case and recording validation 753 cases in 259 files, all recordings current <5s
check-copies.sh no warnings <1s
Build the debs ok 9.6m (head), 8.3m (merge)
Tier 1, the exact CI command (--fail-on-skip), 3 runs 738 passed + 1 expected failure / 739, 0 skipped, each time 278s each
end.lifecycle.users stress test, 4 at a time 60/60 56s
Tier 1 slow tier (the nightly's command) 14/14 17m45s
Can it fail? (hand-edited a recording, reverted) that case fails, rc=1; an --id matching nothing exits 2 <1s
Tier 1, PR merged onto the v4.0.x-develop tip 738 + 1 expected failure / 739, 0 skipped 294s
Real BBB 4.0 server built from source at the PR head, tap and sink both behind tokens 703 passed + 1 expected failure / 704, 0 skipped; all 8 callback cases came through the sink 79s
Same real server, slow tier 14/14 17m46s
Upstream CI on this head (checked with gh) conformance job passed (738 + 1 expected failure / 739, 8m54s); runner tests, the 8 Playwright shards and the plugin tests all passed -

Not run against the real server: the 35 disruptive cases. They switch bbb-web's config by restarting the packaged service, which the dev-mode server doesn't use. They pass on Tier 1.

(d) Verdict

Ready to merge, in my view. Every merge-blocking decision is addressed, every Major from round 2 is fixed, and the whole battery passes on Tier 1, on the merge with the current tip, and on a real 4.0 server. The real-server run is the first with callbacks, both tokens and the slow tier. The new findings are minor and can reasonably be follow-ups: the relabel leftovers, check-copies being advisory only, the sink's Host check and wildcard certificates, and the missing timeouts.

@antobinary
antobinary merged commit 28d54de into bigbluebutton:v4.0.x-develop Nov 6, 2026
35 checks passed
antobinary added a commit that referenced this pull request Nov 6, 2026
Brings v4.0.x-release at f31e684, the 4.0.2 release candidate
(bigbluebutton-release 4.0.2, no tag yet), into v4.1.x-develop at
3e18924. The merge base is tag v4.0.1 (6e66d4f), merged into 4.1
by #26346. 356 commits (288 non-merge) from 60 pull requests and 1522
files come in; 1315 of those files are the new API conformance suite
(bigbluebutton-tests/api-conformance, #26257). 51 files changed on
both lines; 22 of them conflicted (21 content, 1 delete/modify).

Version and build markers keep the 4.1 values: .gitlab-ci.yml keeps
the 4.1 bbb-build image and bigbluebutton-release stays
4.1.0-alpha.1.

Translated locales stay as on 4.1: eu.json and it_IT.json, the two
that 4.0.2's Transifex sync (#26402) changed. en.json merged normally:
4.0.2 replaces originalAudioDesc with originalAudioSummary and
originalAudioIdealFor (nothing reads the old key any more) and keeps
the 4.1 audio section strings.

docs/docs/new-features.md stays as on 4.1.

Client:
- client/main.html: the six stylesheet links take 4.0.2's ?v=VERSION;
  the 4.1-only theme-dark.css link after them is unchanged here.
- Types and initial values of meetingClientSettings: the 4.1 stats
  thresholds (objects), without public.stats.help, which 4.0.2 removed
  (4eaee6b) together with its last reader.
- bn-shared-notes/component.tsx: 4.0.2's equation and diagram blocks
  and floating-UI portal element (#26221), with the 4.1 theme prop
  (dark when the native dark theme is on).
- layout/observer.tsx: the 4.1 getInitialFontSize(), which already
  prefers the saved font size; that is the fix 4.0.2 made inline
  (#26399).
- generic-content/manager.tsx: the 4.1 effect that unregisters removed
  sidekick apps (b15701d). 4.0.2 also clears their badge and menu
  name there (#25998); that moves into the 4.1 effect in a follow-up
  commit.
- Settings > Audio: the 4.1 section and device-test messages next to
  4.0.2's voice isolation messages (#26095); styles import both
  defaultBorder and colorStandout.
- Navigation sidebar badges: 4.0.2 moves the badge rules into
  common/notification-badge (#25998), so the sidebar button and
  sidebar styles take its fragments and keep the 4.1 dark-theme
  tokens elsewhere. The apps gallery badge styles file, deleted by
  4.0.2 and only recoloured by 4.1, stays deleted.

Lockfile: bigbluebutton-html5/package-lock.json was regenerated, not
merged. The merged package.json equals 4.0.2's without darkreader, so
the lock starts from 4.0.2's (npm drops darkreader and its rollup
binaries), then npm update brings the six packages 4.1 had at a newer
version up to it. No package is behind either parent, except the
nested copy of @floating-ui/core and dom 1.8.0 that 4.1 carried under
@floating-ui/react-dom; the merged lock uses one 1.7.6 copy, as 4.0.2
does. The other lockfiles merged cleanly and equal 4.0.2's.

Docs:
- configuration-files.md and release-testing.md are still CRLF on 4.0
  and LF on 4.1. Merged with line endings normalised, they have no
  conflict.
- customize.md: the 4.1 source link with 4.0.2's #get-post-create
  anchor.

Playwright: core/elements.ts keeps both sides' audio selectors.
antobinary added a commit that referenced this pull request Nov 6, 2026
4.0.2 brings the API conformance suite (#26257). Its per-PR job brings
up the Tier 1 stack from the packages the build made and runs the
suite against it. On the merged tree the stack did not come up: the
nginx container stayed unhealthy with

  host not found in upstream "bbb-graphql-middleware"
  in /usr/share/bigbluebutton/nginx/graphql.nginx:8

On 4.1 the packages' nginx locations proxy to named upstreams
(e376575). bbb-config installs them as
/etc/nginx/conf.d/bbb-upstreams.conf. Tier 1 does not install
bbb-config, and on 4.0 the locations named addresses directly, so its
nginx image had no such file.

- compose.yaml, images/Dockerfile: the nginx image copies
  bbb-upstreams.conf from build/packages-template/bbb-config, as a
  build context like bigbluebutton-config already is, so it is the
  package's own file rather than a hand copy.
- akka-apps/bbb-apps-akka.conf.in mirrors the operator config file
  the akka-apps preinst writes. On 4.1 the preinst also lets
  BBB_WEB_API and SHARED_SECRET override the two values (0413ab4),
  and check-copies.sh warned that the preinst had changed. The mirror
  now writes the same lines. Tier 1 sets neither variable, so its
  values are unchanged. copies.sha256 records the 4.1 preinst
  (check-copies.sh --update).

With the debs built from this branch the stack comes up healthy, and
the suite's CI selection runs every case: 739 cases, 700 passing
against the 4.0 recordings. The 38 that differ are recorded in the
next commit.
antobinary pushed a commit that referenced this pull request Nov 21, 2026
Forward-merge of v4.0.x-develop at 112214e into v4.1.x-develop at
1635133. Merge base 28d54de (#26257, merged in #26442).

Resolutions:
- profile-settings/component.tsx: combined. 4.1's PreviewStatus replaced
  the inline containerStyle, so it stays out; 4.0's isCamLocked return and
  "Enable webcam" placeholder (#26213) go before 4.1's CameraPreview.
- profile-settings/styles.ts: 4.1's palette imports plus colorOffWhite,
  which 4.0's placeholder uses.
- recording/styles.js: 4.1's colorTextEmphasis with 4.0's
  confirmationButtonFloor (#26314).
- request-unmute-modal/styles.js: stays deleted, as on 4.1. 4.1's shared
  media-consent-modal (f75c010) replaced the RequestModalContent row
  that 4.0's min-width and narrow-phone change (#26314) styles.
- settings/container.jsx: combined. 4.0's pagination source and
  useIsPaginationToggleAllowed (#26468) in 4.1's useSettingsProps, and
  paginationToggleLocked in its returned props, so the pre-flight
  settings modal gets it too.
- settings/submenus/application/styles.js: 4.0's. The language selector
  is now a BBBSelect (#26389), so the native select rule 4.1 recoloured
  has no target.
- video-preview/hooks/types.ts, useVideoPreview.ts: combined. Both sides'
  options (skipPreview, deferInitialization; waitForCameraPermission). 4.0
  moved the mount-time camera opening from the cameraDisabled effect into
  startPreview, called on mount, and the effect now reopens only a
  started preview. 4.1's deferInitialization check moves with it, from the
  effect into startPreview, so pre-flight still opens no camera until the
  user enables it.
- palette.js: combined. 4.0's colorWarning #FFC845 and btnWarningColor
  #393C48 (#26312) and its new status tokens; 4.1's notice, scrim and
  *ColorSurface tokens.
- locales de, eu, it_IT: 4.1's, as in #26011, #26198, #26346 and #26442.
  en.json: both sides' strings; a key-level three-way check matches.
- playwright core/helpers.ts: 4.0's override-aware create defaults
  (#26359) with 4.1's encoded name and meetingID.
- bigbluebutton.properties, docs/data/create.tsx: both disabledFeatures
  entries, layoutView (4.1) and lockSettings (4.0).
- docs configuration-files.md, release-testing.md: still CRLF on 4.0 and
  LF on 4.1; merged with line endings normalised. 4.1's
  bbb-export-annotations override row stays (4.1 ships the override);
  4.0's other override rows and nginx text, with the 4.1 source link; the
  new unmute case with its spec link on v4.1.x-develop.
- docs customize.md: 4.0's locale override steps, downloading from
  v4.1.x-release.
- docs new-features.md: 4.1's file, unchanged.
- bbb-shared-notes-server/run-in-systemd.sh: kept, as on 4.1. 4.0 deleted
  it (#26464), but 4.1's image (bbb-shared-notes-server/Dockerfile)
  still copies it. The follow-up "build(docker): stop copying the removed
  run-in-systemd.sh into the shared-notes image" removes both.

This merge does not pass the Playwright type check alone:
bigbluebutton-tests/playwright/core/elements.ts merged without a conflict
but declares layoutContainer twice, since both lines added it (4.1 in
c5c2c71, 4.0 in ad12223). The next commit, "test(playwright):
declare the layoutContainer selector once", drops 4.1's copy. The packages
build, and Playwright's own transpiler runs the suite as is.

# Conflicts:
#	bigbluebutton-html5/imports/ui/components/profile-settings/component.tsx
#	bigbluebutton-html5/imports/ui/components/profile-settings/styles.ts
#	bigbluebutton-html5/imports/ui/components/recording/styles.js
#	bigbluebutton-html5/imports/ui/components/request-unmute-modal/styles.js
#	bigbluebutton-html5/imports/ui/components/settings/container.jsx
#	bigbluebutton-html5/imports/ui/components/settings/submenus/application/styles.js
#	bigbluebutton-html5/imports/ui/components/video-preview/hooks/types.ts
#	bigbluebutton-html5/imports/ui/components/video-preview/hooks/useVideoPreview.ts
#	bigbluebutton-html5/imports/ui/stylesheets/styled-components/palette.js
#	bigbluebutton-html5/public/locales/de.json
#	bigbluebutton-html5/public/locales/en.json
#	bigbluebutton-html5/public/locales/eu.json
#	bigbluebutton-html5/public/locales/it_IT.json
#	bigbluebutton-tests/playwright/core/helpers.ts
#	bigbluebutton-web/grails-app/conf/bigbluebutton.properties
#	docs/docs/administration/configuration-files.md
#	docs/docs/administration/customize.md
#	docs/docs/data/create.tsx
#	docs/docs/new-features.md
#	docs/docs/testing/release-testing.md
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.

4 participants