Repository navigation
ci: run Linux tests in parallel, skip unit suites in the ladder ASan leg, gate the install self-test - #1174
Merged
Conversation
… ASan leg, and the install self-test where nothing it reads changed Three changes to the jobs that set a pull request's wall time on master's last green run (CI 45369799802): Application ladder / ASan+UBSan 108 min, clang-asan 87, consumability 86. - Every Linux ctest runs one test per CPU. catch_discover_tests makes each case its own process, so a serial run is mostly process start-up: the asan leg's 5,689 cases took 3,391 s one at a time. Locally the clang-asan suite (4,911 cases, the OomInjector exclusion applied) passed three runs out of three at --parallel 4, in 686-711 s. Tests sharing a resource already say so with RESOURCE_LOCK or RUN_SERIAL. - MORPH_BUILD_UNIT_TESTS (default ON) gates everything under tests/ itself. The ladder's ASan leg turns it off: it runs the ladder and the Qt transport suites only, and morph_tests and morph_table_tests were 302 of its 862 compiles; clang-asan builds and runs them under the same sanitizers. The plain ladder leg keeps them, since its name-collision check covers every ctest test. - The consumability job's self-test builds morph from scratch nine times (61 min). It tests the checker, so a pull request runs it only when the checker, its self-test, the build and install rules, or a header its mutations name changed; a master push always runs it. The install check itself still runs on every pull request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…net channel conformance a TSan-sized wait Under parallel ctest the check's reply could run inside the click's settle and mount the draft before the view was reopened; pressing Preview without running the owner keeps the reply queued until the view is reopened. The net channel fixture waited the default two seconds for 50 socket events, which TSan on a loaded runner can exceed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
The two tests that inspect the source view while a check runs relied on the reply not arriving within the click's settle. Under parallel ctest it sometimes did. They now occupy the test server's pool threads until they have looked, so the reply waits for the release. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Cuts the jobs that set a pull request's wall time. On master's last green run (CI 45369799802) these were: Application ladder / ASan+UBSan 108 min (build 87), clang-asan 87 min (test 56), consumability 86 min (self-test 61).
--parallel "$(nproc)") on every Linux test step.catch_discover_testsmakes each case its own process, so serial runs are mostly process start-up: clang-asan's 5,689 cases took 3,391 s one at a time. Tests that share a resource already declareRESOURCE_LOCK(the ladder DB) orRUN_SERIAL.MORPH_BUILD_UNIT_TESTS(defaultON, documented indocs/BUILDING.md) gates everything undertests/itself. The ladder's ASan leg sets itOFF. It runs only the ladder and Qt transport suites, andmorph_tests+morph_table_testswere 302 of its 862 compiles; clang-asan builds and runs them under the same sanitizers. The plain ladder leg keeps them for its ctest name-collision check.CMakeLists.txt/cmake/,ci.yml, or a header its mutations name changed. Master pushes always run it, and the install/consumer check itself still runs on every PR.Verification
-E "OomInjector|morph#108") at--parallel 4: 4,911/4,911 passed in 3 of 3 runs (690 s, 686 s, 711 s). This machine is faster than a hosted runner, so CI's absolute times will differ.-DMORPH_BUILD_UNIT_TESTS=OFF(Qt 6.8.1): configures.morph_testsandmorph_table_testsare absent;ladder_lims_tests,ladder_bank_tests,morph_qt_testsandmorph_qt_tls_exampleare present.Not verified locally: TSan, UBSan and coverage under
--parallel, and the ladder suites in parallel (they shareRESOURCE_LOCK morph_ladder_test_db). This PR's own CI run is the first measurement of those.Follow-ups (not in this PR)
pace-ccseed: Ship Qt 6.8.1 and GCC 15 in place of Ubuntu's Qt 6.4 cpp-ci-image#1 (Qt 6.8.1 + GCC 15), then onboard morph into itswarm-targets.json.🤖 Generated with Claude Code
https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb