Skip to content

oganesson.py test: build and run dubna's unit tests first - #166

Merged
zakius merged 1 commit into
mainfrom
fix/release-unittests
Dec 1, 2026
Merged

zakius merged 1 commit into
mainfrom
fix/release-unittests

Conversation

@zakius

@zakius zakius commented Nov 30, 2026

Copy link
Copy Markdown
Owner

./oganesson.py test with no suites named now builds containers_unittests and browser_traffic_unittests in the binary's build folder (out/Release with --release), in the builder container, and runs them before the browser tests. A failing unit test ends the run with its exit code, so release.yml's "Linux build, unit tests and browser tests" step fails and the release stops. With suites named, only those suites run, as before. The README's test section and the Releasing steps say so.

The dubna submodule moves to zakius/dubna#272 (1ee747e). browser_traffic_unittests didn't build: run_all_unittests and prefs:test_support need Chromium's test fonts, which the tree doesn't have. #272 gives it its own main(), as containers_unittests has. Merge zakius/dubna#272 first. The submodule then points at a commit of dubna's branch, which the merge keeps if it isn't squashed.

Tested on a reflink copy of the main checkout's release tree (158.0.8127.88, same commit as main), with the dubna change copied into it:

  • ./oganesson.py test --release: both targets built (2 steps), 20 + 9 unit tests passed, then 435 browser tests in 125 classes passed. Exit 0, load about 5.
  • With one unit test made to fail, ./oganesson.py test --release exited 1 after the unit tests, and no browser test started.
  • sh tools/hooks/pre-commit passes.

Not run: a full ./oganesson.py build --release from a clean prepare with the new submodule, and check-patches, since no patch changed.

Closes #164

🤖 Generated with Claude Code

A full test run (no suites named) builds containers_unittests and
browser_traffic_unittests in the binary's build folder, in the builder
container, and runs them before the browser tests. A failure ends the
run with its exit code, so release.yml's test step stops the release.

dubna moves to its fix/browser-traffic-unittests-main (zakius/dubna#272),
which gives browser_traffic_unittests its own main(): through
run_all_unittests it needed Chromium's test fonts and didn't build.

Closes #164

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@zakius
zakius merged commit e37e38c into main Dec 1, 2026
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.

Release: build and run containers_unittests and browser_traffic_unittests

1 participant