Repository navigation
CI failure reports show each failed test; docs take the outlined-toggle brand (ADR-0877, ADR-0878) #613
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
CI failure reports show each failed test; docs take the outlined-toggle brand (ADR-0877, ADR-0878) #613
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
36ba15f
Show every failed test's Catch2 output in CI failure reports (ADR-0877)
James-Chapman ddd47fa
Hold the failure report to its total cap and document what the caps omit
James-Chapman 1ca0bae
Refuse report caps the failure report cannot keep
James-Chapman 287a232
Dress the documentation in the outlined-toggle brand (ADR-0878)
James-Chapman 3a2f18d
Keep the brand mark off the README, which is packaged on its own
James-Chapman 184276d
Correct two brand notes: where the README links the site, and line en…
James-Chapman dc054b7
Drop the failure report from the job that runs no meson test
James-Chapman cfc947e
Test that every job with a failure report runs meson test
James-Chapman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...documentation-site-wears-the-omg-software-theme-dark-first-with-system-fonts.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
docs/adr/0877-ci-failure-reports-print-each-failed-test-not-a-tail-of-the-log.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| # CI failure reports print each failed test's section of the Meson log, not a tail of the whole log | ||
|
|
||
| * Status: accepted | ||
| * Date: 2026-11-24 | ||
|
|
||
| Technical Story: an `asan-ubsan` run on the presence-flood pull request (run 44948590233, job 136981278297) said | ||
| "1 failed" and showed no failed assertion anywhere. | ||
|
|
||
| ## Context and Problem Statement | ||
|
|
||
| When `meson test` fails, each CI job's "Catch2 failure report" step printed `testlog.txt` without the homeserver's | ||
| runtime log lines, then the last 300 lines of that (150 on NetBSD). Meson writes tests in the order they finish, so an | ||
| early failure, such as `integration-tests-shard-1-of-4`, is followed by every smoke test that finished after it, and | ||
| those pushed its Catch2 output out of the window. `--print-errorlogs` shows only the last 100 lines of a failed test, | ||
| which were runtime logging. How should a failure report find the failed assertion? | ||
|
|
||
| ## Decision Drivers | ||
|
|
||
| * Where a failed Catch2 case (scenario, file and line, `FAILED:`, expansion, exception message) appears in the report | ||
| must not depend on how early its test ran or how much passed after it. | ||
| * It must run unchanged on the Ubuntu, Debian, Fedora and AlmaLinux jobs and inside the FreeBSD, OpenBSD and NetBSD | ||
| VMs, none of which is sure to have a `python3` on `PATH`. | ||
| * A broken run must not print an unbounded log. | ||
|
|
||
| ## Considered Options | ||
|
|
||
| 1. `scripts/catch2-failure-report.sh`: one POSIX `awk` pass over `testlog.txt` that keeps the section of each test | ||
| whose `result:` is neither `exit status 0` nor `exit status 77` (Meson's skip), drops runtime log lines, and caps | ||
| each test (first 400 and last 100 lines) and the whole report (4000 lines, summary included: a test that does | ||
| not fit is cut further, or counted as not shown). | ||
| 2. Raise the tail (say to 3000 lines). | ||
| 3. Read `testlog.json` in Python, whose records carry a `result` of `FAIL`, `TIMEOUT` and so on. | ||
| 4. Fix the order instead (run the integration shards last), or rely on `--print-errorlogs`. | ||
|
|
||
| ## Decision Outcome | ||
|
|
||
| Chosen option: 1, run by every report step: `ci.yml`'s Linux and BSD jobs, `coverage.yml`, and both jobs of | ||
| `sanitizers.yml` (`tsan` had no report step). NetBSD passes `--exclude '^\[netbsd-diag\]'`. A job that never runs | ||
| `meson test` writes no `testlog.txt` and has no report step: `ubuntu-hardened-listener-coverage` builds with | ||
| `--no-tests` and runs its Catch2 binary in its own step, whose log shows any failure. | ||
|
|
||
| * A tail of any length can lose a failure: the number of lines after it depends on what finished later, which changes | ||
| with the platform, the sanitizer and the scheduling. | ||
| * `testlog.json` would be read more simply in Python, but the BSD VMs install only a versioned Python as Meson's | ||
| dependency (see `check_expected_skips.py` in `scripts/AGENTS.md`), and a second implementation for them would drift. | ||
| The text log's format is stable: each test opens with a `==== N/M ====` banner and closes with a 78-character rule, | ||
| and `result:` holds Meson's `returncode_to_status` text. | ||
| * The order of tests is not the report's to fix, and `--print-errorlogs` cannot be told to skip runtime log lines. | ||
| * The script uses no `awk` interval expressions (`{4}`), which older releases of `mawk` and the BSDs' `awk` did not | ||
| accept, and reads its patterns from the environment, since `awk -v` would process their backslashes. | ||
|
|
||
| ### Negative Consequences | ||
|
|
||
| * The caps can leave out failure output, assertions included: a failed test with more than 500 lines of its own | ||
| output shows its first 400 and last 100, and once the report nears 4000 lines a test is cut further or not shown. | ||
| The report counts every gap and every test left out, and names `testlog.txt`, which holds the whole output: the | ||
| `tsan` job uploads it, and elsewhere the failed test is run again locally. | ||
| * A change to Meson's text log format would make the report find no failed test. It then says so, rather than | ||
| printing nothing, and `tests/tooling/test_catch2_failure_report.py` pins the format it reads. | ||
|
|
||
| ## Links | ||
|
|
||
| * Covered by `tests/tooling/test_catch2_failure_report.py`, which also checks that every workflow's report runs the | ||
| script and tails nothing. |
57 changes: 57 additions & 0 deletions
57
...adr/0878-the-documentation-takes-the-outlined-toggle-brand-colours-and-marks.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| # The documentation takes the outlined-toggle brand's colours and marks | ||
|
|
||
| * Status: accepted | ||
| * Date: 2026-11-24 | ||
|
|
||
| Technical Story: OMG Software's outlined-toggle brand package and its project icons replace the angular four-square | ||
| mark and the `#ff8954` orange the documentation site took from the organisation site in ADR-0223. | ||
|
|
||
| ## Context and Problem Statement | ||
|
|
||
| The brand package sets two colours, switch orange `#FF761F` and charcoal `#151515`, a full toggle mark, a standalone G | ||
| knob for small sizes, and a project icon for each repository: Merovingian's is the toggle with a server stack cut out of | ||
| its knob. Its guide keeps about one border-width of clear space round the toggle and uses the knob below about 120 px | ||
| wide; the project icons use their compact knob at 32 px and below. How should the documentation site take them on? | ||
|
|
||
| ## Decision Drivers | ||
|
|
||
| * The marks are the package's own: a reader should see the same shapes and colours as everywhere else OMG Software | ||
| shows them. | ||
| * ADR-0223 still holds: dark first, system fonts, nothing fetched from another origin, and text and links that meet | ||
| WCAG AA in both schemes. | ||
|
|
||
| ## Considered Options | ||
|
|
||
| 1. Copy the package's SVG files unchanged into `docs/assets/`, choose each by its size as the guide says, and set the | ||
| theme's orange and charcoal to the palette's. | ||
| 2. Show the full OMG toggle as the header logo. | ||
| 3. Load the marks from the organisation's site. | ||
| 4. Use `#FF761F` for links in the light scheme too. | ||
|
|
||
| ## Decision Outcome | ||
|
|
||
| Chosen option: 1. | ||
|
|
||
| * The header logo, about 24 px high, is the standalone G knob (`omg-g-knob-orange.svg`): the full toggle there would be | ||
| about 50 px wide, well under the guide's 120 px. The favicon is Merovingian's compact knob | ||
| (`merovingian-compact.svg`), the project icon's design for 32 px and below. The home page shows Merovingian's full | ||
| toggle (`merovingian-toggle-mark.svg`), cropped to keep about one border-width of clear space. | ||
| * The README shows no mark. It is shipped on its own, in the CI artifacts, the RPM, BSD and static packages, where an | ||
| image path into `docs/assets/` would show as a broken image, and staging the SVG beside every copy is packaging | ||
| churn for a decoration. Its opening lines link to the site. | ||
| * The files are byte-for-byte the package's, except that the package's CRLF line endings are LF here, as | ||
| `.gitattributes` requires; a new version of the package replaces them, and none is edited by hand. | ||
| `tests/tooling/test_docs_site.py` checks their outlines and colours and that none can run or fetch anything. | ||
| * `--omg-orange` is `#ff761f` and `--omg-ink` `#151515`; the dark scheme's page, header, footer, links and accent use | ||
| them. The greys between them are neutral (`#1f1f1f` panels, `#333333` rules), as charcoal is, where the earlier | ||
| theme's were tinted. | ||
| * The light scheme keeps its darker oranges for links (`#a8461c`) and their hover (`#8f3a15`): `#FF761F` on its | ||
| `#f4f3ee` page is about 2.4:1, under AA's 4.5:1. The brand orange stays for buttons, the eyebrow and focus rings. | ||
| * Loading the marks from another origin would report each reader's visit to it, which ADR-0223 rules out. | ||
|
|
||
| This supersedes ADR-0223's colours and marks; the rest of ADR-0223 stands. | ||
|
|
||
| ### Negative Consequences | ||
|
|
||
| * The dark scheme's orange is a little deeper than before; its links measure about 6.8:1 on the page and 6.2:1 on | ||
| cards, still above AA. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.