Skip to content

ci: hosted runners, morph_tests split six ways, and builds in the seeded CI image - #1180

Open
Yaraslaut wants to merge 8 commits into
masterfrom
ci/drop-self-hosted
Open

Yaraslaut wants to merge 8 commits into
masterfrom
ci/drop-self-hosted

Conversation

@Yaraslaut

@Yaraslaut Yaraslaut commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Faster, steadier CI: every job runs on GitHub-hosted runners; the 13.5 GB morph_tests link becomes six links of at most 4.4 GB; and the clang, gcc and sanitizer legs build inside the shared CI image with a pre-warmed compile cache.

1. Hosted runners only

The probe-self-hosted job is gone. In the last six runs it used no self-hosted runner at all.

  • linux-compilers, linux-sanitizers, ladder-tests and ladder-sanitizers now name ubuntu-24.04, which is what the probe always fell back to.
  • The self-hosted plumbing goes with it: PACE_ADDR, -DPACE_AUTO_INSTALL, the pace-cc stats steps, PACE_PREFETCH_GROUP and the self-hosted guards.
  • So does the runner tooling: .github/self-hosted-runner/ and its four scripts/test_run* scripts.

2. morph_tests split into six executables

All six are built by one CMake function, morph_add_unit_test_binary, so every binary gets identical settings. Together they run exactly the same 5623 test cases: the sorted case-name lists are identical, and ctest -N gives 5639 against the 5639 baseline.

Binary Sources Cases Coverage-build link peak
morph_core_tests 73 860 3.1 GB
morph_runtime_tests 71 1317 3.7 GB
morph_forms_tests 58 848 2.7 GB
morph_ui_document_tests 59 804 3.1 GB
morph_ui_shell_tests 80 982 4.4 GB
morph_ui_table_tests 76 812 4.1 GB
before: morph_tests 416 5623 13.5 GB

The coverage manifest picks the new binaries up by name. The Valgrind suppression, the nightly Valgrind loop and the docs follow the new names.

3. Builds in the shared CI image, with a seeded cache

linux-compilers and linux-sanitizers run Configure, Build and Test inside ghcr.io/lastrada-software/cpp-ci:latest, the same way pace's CI does.

  • The image is started with docker run, not a job container:, and the workspace is mounted at its host path, which is where the seed was warmed.
  • A pace-kv inside the container serves a copy of the leg's seed group: clang, gcc or sanitizers.
  • Configure is retried when it comes out with caching off, and a step reports pace-cc's hit rate.
  • The compiler installs and sccache steps for these legs are removed.
  • Until the image carries morph's seeds, a leg warns and builds cold instead of failing.
  • The seeds are maintained by Onboard morph, warmed locally, and pin the compilers cpp-ci-image#2: they're warmed on a developer machine and assembled into the image nightly.

Also

clang-tidy-diff now checks a push against HEAD^ when github.event.before is not in the history. That happens after a rewritten push, or on a branch's first push. Without the fallback, git diff failed with "bad object", as it did on master after #1128 was squashed.

Checked

  • Split: full ctest passes, 6458 tests, 100% (-LE stress, clang-coverage build). All six binaries build and link with GCC.
  • Image leg: the gcc-release leg's steps were simulated locally against a morph gcc seed. 714 build steps took 11 s, and pace-cc reported 682 of 682 hits.
  • Workflow: actionlint reports 0 findings, and the YAML loads.

Needs before the image legs start warm

  • The cpp-ci package's "Manage Actions access" lists LASTRADA-Software/morph. This is done.
  • cpp-ci-image#2 is merged, and morph's seeds are pushed and assembled into the image.

Not verified

  • The Windows and sanitizer legs of the split, which this PR's CI runs.
  • A negative control for the seed: a wrong flag missing the cache.

🤖 Generated with Claude Code

https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb

Yaraslaut and others added 5 commits November 28, 2026 17:17
Remove the self-hosted runner path. The last six CI runs used no
self-hosted runner: probe-self-hosted always fell back to ubuntu-24.04, so
job behaviour is unchanged.

- ci.yml: delete the probe-self-hosted job, give its four dependents a
  literal `runs-on: ubuntu-24.04`, drop PACE_ADDR, the PACE_AUTO_INSTALL
  flag, PACE_PREFETCH_GROUP, the pace-cc stats steps, and every condition
  that only distinguished self-hosted from hosted runners.
- nightly-slow-checks.yml: drop PACE_PREFETCH_GROUP, which only pace-cc read.
- Delete .github/self-hosted-runner/ and the scripts that tested it.
- scripts/coverage.sh: reword the profraw comment to the reason that still
  applies to any reused workspace.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
clang-tidy-diff diffed a push against github.event.before. After master was
rewritten that commit was gone from the history, git diff failed with
"bad object" and the job exited 128 without checking anything; the first
push of a branch names all zeros and fails the same way. Such a push is now
checked against HEAD^.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
Both jobs run Configure, Build and Test inside ghcr.io/lastrada-software/cpp-ci
with its seeded pace-cc compile cache (morph/{clang,gcc,sanitizers}.cow), so
they start warm instead of compiling from scratch. The compiler install, the
sccache setup, stats and upload steps are gone from these two jobs. Configure
is retried on a fresh build tree when it comes out with caching disabled, and
a pace-cc stats step makes the hit rate visible in the log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
The published image carries morph's seeds only once they have been warmed and
assembled into it. Until then the copy failed and took the leg with it; the leg
now warns and builds against an empty store.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
morph_tests was one 1.5 GB coverage-instrumented binary whose link peaked at
13534 MB (GNU ld, clang-coverage). It is now six binaries built by one
function, morph_add_unit_test_binary, so every binary gets the same links,
definitions, warnings, sanitizer/coverage instrumentation and test discovery:

  binary                    cases  link peak (MB)
  morph_core_tests            860   3137
  morph_runtime_tests        1317   3697
  morph_forms_tests           848   2709
  morph_ui_document_tests     804   3103
  morph_ui_shell_tests        982   4409
  morph_ui_table_tests        812   4141

The case counts sum to 5623, the count morph_tests listed, and the sorted
list of names is identical. ctest -N reports 5639 before and after with the
same set of targets built. The coverage manifest lists all six binaries.

Source order within each list is the order it had in morph_tests, since some
files rely on static-initialisation order within one binary. The OOM injector
(a global operator new override) stays in the one binary that tests it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
@Yaraslaut Yaraslaut changed the title ci: run every job on GitHub-hosted runners ci: hosted runners, morph_tests split six ways, and builds in the seeded CI image Nov 28, 2026
Yaraslaut and others added 2 commits November 28, 2026 20:21
… not find

The layout cases measured the widgets the probe returned by dereferencing them,
so a backend that reported no widget where a case expected one made the suite
read through a null pointer (UBSan: reference binding to null pointer of type
'const Widget') instead of failing the case. Geometry::of and textOf now take
the pointer and fail the case when it is null, and containerOf does the same
for the cases that open a child as a container.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb
@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 99.29078% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
include/morph/ui/testing/backend_conformance.hpp 99.29% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

ServerHold's destructor released the parked server tasks and returned, but a
woken task reads _released once more, so under ASan it read a hold already gone
(stack-use-after-scope in the dropped-check controller test). The destructor
now waits until every parked task has left. Both copies of the helper had it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01No1NzndCGtpCccptcyk6Tb

This branch has not been deployed

No deployments
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.

1 participant