The docs suite of run 36745666606 ends on
Timed out waiting 3540s for the test suite to run
6 did not run
and says nothing about what it waited for. `test-languages.js:15` sets
`test.setTimeout(resolveTimeout(5_400_000))` and `_shared.js:40` capped the poll
with the same `resolveTimeout`, so both land on `budget - SUITE_RESERVE_MS` and
expire together. Playwright's test timeout wins the race, and the poll's own
message, "Expected the German site of the deployed working tree to be built",
is never printed.
`pollStatus` now keeps 60 s of its budget back, with a 30 s floor so a small
budget cannot go negative. The reserve sits in the helper rather than at its
three call sites, the same shape `SUITE_RESERVE_MS` uses in
`test-e2e-playwright/files/timeouts.js` to stop one test from consuming the
whole suite.
This does not make the cluster pass. The `deployed` build takes longer than the
suite budget allows, so the job stays red; it stops being red for an unstated
reason. Curing it means building that version before the suite runs or making
the build fit, which is role surgery and not this change.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
48b119a381 refused an env value defaulted to "" only where it fed `endsWith`,
`startsWith` or `includes`. That is the loudest shape, not the only one:
`const baseUrl = normalizeBaseUrl(process.env.XMPP_BASE_URL || "")` followed by
a navigation to `${baseUrl}/` sends the spec to `/` when the deploy never wrote
the key, and nothing fails.
The rule is now general: an env binding defaulted to "" MUST have its emptiness
handled. Four forms count, and the lint decides all four itself so a suppression
stays rare:
* bound through `requireDotenvValue`, which throws while the module loads;
* a second fallback in the expression, `JSON.parse(... || "") || "{}"`;
* the expression compares itself, `(... || "").toLowerCase() === "true"`,
where empty simply is not equal;
* the name's emptiness is tested in the file, through `expect(name, ...)`,
`if (!name)`, `!name` or `name ? ... : ...`.
The third form earned its place immediately: without it a boolean coercion would
have needed a nocheck, and writing the rule turned that false positive into a
pass.
Of 304 empty-defaulted bindings, 241 already handle the case and 63 did not. 56
are now required. The remaining 7 keep `|| ""` behind a stated exception, and
finding them is the part worth recording: checking all 107 required keys against
the `{% if %}` nesting of their role's env template showed that
`web-app-openbao` emits LAM_BASE_URL and the four LDAP keys, and
`web-app-fediwall` its two source URLs, only inside a conditional. The binding
runs at module load, long before `test.skip`, so requiring them would have
broken openbao variants 1 and 2, which deploy no LAM. Reverting them re-created
a `decodeDotenvQuotedValue` use whose import the conversion had already dropped;
`node --check` does not catch that, a used-versus-imported sweep does.
Two further checks close the method's own gap: no `playwright.env.j2` contains
an `{% include %}`, and `02_run_one.yml:162` renders the file from exactly one
template per role, so the textual scan saw everything. Against the real rendered
env kept from a deploy of `web-app-openbao variant=0`, all 7 keys its specs
require are present.
Verified by running it: node --check on every rewritten file, eslint 0 errors
(the 187 warnings predate this), `make lint-playwright` parses 89 specs, the
four playwright lints pass. The playwright run carries the weight, because 99
bindings now throw at module load if their key is missing.
The predecessor also had a latent defect this replaces: its `Violation` was a
frozen dataclass without `order=True`, so the `sorted()` in its failure path
would have raised `TypeError`. It never ran, because the rule never found
anything to sort.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
/deployed/compose.html answers 302 to /deployed/ while the version is
still building, and request.get follows redirects by default. The
readiness poll therefore read the overview page's 200, declared the page
built, and the test navigated to a page carrying no compose.yml heading.
The failure it produced, "element(s) not found" against getByRole, reads
like a selector problem and is not one: maxRedirects 0 makes the 302
count as not-ready, which is what test-languages.js has always done.
The spec also asserted /latest/, the released tag built from the git
mirror, where no working-tree change can appear. It now asserts
/deployed/, the tree the run actually deployed, and waits the budget that
build needs rather than the five minutes the version-state poll used.
pollStatus moves to _shared.js. Two specs wait for a page to come up, and
the second copy was written by hand, missing both maxRedirects and the
transport-error enrichment 69a86b0f17 added to the first.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The Sphinx configuration, extensions and generators lived in the separate
infinito-sphinx repository, whose image baked a snapshot of core at build time
from a base image name core no longer publishes. Only core consumed it, and its
generators read core's role layout, so the two repositories drifted without any
CI covering the pair.
The tooling now ships in roles/web-app-docs/files/, and web-app-sphinx is
renamed to web-app-docs. The container is a small service instead of a static
image:
- it keeps a git mirror of the repository in the docs_sites volume;
- /latest/ is the last commit of the default branch, rebuilt whenever a fetch
finds a new one while the previous build stays online;
- every release tag is selectable in the sidebar switcher and on /versions/,
and is built the first time someone opens it, behind a progress bar;
- replicas share the volume: the one holding builder.lock fetches and builds,
the queue and the build states are files beside the sites, so another
replica resumes the queue when the builder dies.
The theme rewrites every page serially after the build, which took about 75
minutes for the 4544 pages; that pass now runs on the -j workers with the
theme's own function. sphinx-apidoc skips tests/, because
tests/utils/bare_bootstrap_probe.py installs an import blocker when autodoc
imports it and killed the Sphinx workers. The roles overview is generated by a
separate process, so autodoc resolves utils from the version being built, not
from main. The role pages now show galaxy_info.description instead of the
top-level key that never existed.
The Sphinx packages join the dev extra, because the mirrored unit tests of the
tooling import them. min_storage now budgets the built image, the latest site
and a running build's scratch instead of the old image's size. The Playwright
suite is split into front page, versions and on-demand build files; the last
one selects an unbuilt tag in the overview and asserts the build gets queued.
Operators must rename the web-app-sphinx inventory group to web-app-docs.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>