Repository navigation
2026.11.21.1: the test and CI design (mtest 0.11), the home's unit cache, offline builds and the newest defaults, package features, build programs' observed inputs (mcpp issues) - #984
Merged
Conversation
…ded, not as globs A relative include_dirs entry is a glob; the compile steps expand it (package_root.cpp), but the resource compiler received it as written. On Windows LLVM's tools expand wildcards in their own command line against files, so llvm-windres's preprocessor saw several inputs and refused with "cannot specify -o when generating multiple output files". compat.protobuf's protoc host tool failed so on windows-2025, which blocked gRPC's code generation there. The resources e2e case 837 gains R4: a member's `*/inc` reaches the resource compiler expanded.
…ws_resources stays under the 400-line limit)
…st's are, keeping a literal directory a build step creates later resource_include_dirs called expand_dir_glob, which drops a literal entry that does not exist when the build is planned; before mcpp#984 such an entry was joined as written. It now calls expand_manifest_include_entry, the expansion the root manifest's compile steps use, which keeps it (#390). e2e 837 states R5: gui's generated/inc reaches the rc_object edge.
…its units (#986); each cache refusal names its reason The instance digest hashed each unit's object path, so mcpp test, which keeps a unit an inactive feature gates, gave the package a second instance and compiled every unit again. It now hashes the package's distinct unit configurations and its imports' digests. A package's include directories have one expansion, expand_manifest_include_entry, for its compile steps, its private part and its resource script. serve_or_fill names why a package is not served (no-identity, unnamed-sources, unnamed-upstream, outside-store, unaddressable-unit, miss) under --verbose and in the build context. The token found why mcpplibs.mtest was never cached: its synthesized entry main had no cache address, which took the whole package out. An entry unit now compiles with the image that links it, and the package's other units are cached; a second project's test shows mcpplibs.mtest as Cached. e2e: 986 (the issue's reproduction), 1037 B (mtest cached in the second project).
…tems used and limit; estimates read the runs of the machine's class (SPEC-017 P5.6, P12.4)
…rgest resident set; a test run keeps its builds; a step that runs a minute is named (#927)
…eleton's mtest and the launchers' os with them
…ables under dev ([profile.<name>] dependency_debug; #927)
…s contents is placed from the home's unit cache, and no compiler runs (#927)
…a BMI's producer key is stated before it is published, and a relocated attempt's BMI is not moved twice
…26-11-20 §5.16) The surface is each command and flag of the command line's definition (mcpplibs.cmdline 0.0.5 exports the tree), each key of the manifest's registry and each reason token, one '<kind> <name>' per line. With MCPP_SURFACE_RECORD, an invocation appends the command and flags it was given, the registry keys its manifests state and the reasons it records (mcpp.surface).
A program that declares a fixture (a component event with fixture) serves it under MTEST_SERVE before the first program whose cases use it; each user gets its endpoint as MTEST_FIXTURE_<NAME>; the last user's end closes its input. fixtures.ndjson states each fixture's preparation; programs.ndjson names the fixtures a program used; a fixture that is not ready leaves its users not run, 'infra' in the store (P11.4).
… (design 2026-11-20 §5.11) The build directory's records name the files each unit read: ninja's deps log (format 4, read directly) and the scans' depfiles. When every unit of the project has a record, a changed header selects the tests built from a unit that read it, and the tests that run a program of the package when such a unit is not a test's own; otherwise every test is affected, as before.
… the runner's new clauses Item 17 states the instance digest as a function of the package's configuration; 18 the roles of paths in keys and the home OUT_DIR of a named-source package's build program; 19 [build] memory_threshold; 20 [profile.<name>] dependency_debug. SPEC-017 states mcpp's side of O6 and the surface mcpp emits and records. self env announces test-steps, test-budget, test-jitter and test-fixtures, which SPEC-017 names. An invalid memory threshold names the source that holds instead.
…that read the user's as upstreams, invariants, waits, diagnostic lines, golden outputs (design 2026-11-20 §5.10, §5.16, §5.18, §5.20, §5.21, §6) - Each mcpp command a case runs records the surface items it used (MCPP_SURFACE_RECORD) as the case's exercise event. - The shared home is the run fixture 'home', filled once per run; every group uses it. A case whose assertion holds only while nothing else writes its home runs mcpp in a home of its own (own_home) instead of holding the machine. - Inherited homes, in the kit and in _inherit_toolchain.sh, name the user's homes as upstreams instead of linking each payload, and copy no subos (mcpp#293); 914 checks that no file the upstream's entries reach is written. - Invariant cases with bounds: an unchanged rebuild compiles nothing, and a dev-dependency is served from the cache to a second project. - Waits for a time only fall (check_waits.sh, waits.baseline); five that only moved a modification time touch the file instead. - The kit declares mcpp's warning and error lines diagnostic, under report. - The machine protocol and the surface are compared whole with golden files.
…et, run fixtures, header selection, the home's caches, the build record, emit surface and the records an invocation appends; the e2e rules of the kit; the spread of functions measured in e2e-coverage
…n tested (design 2026-11-20 §5.22, §7.2) - ci.yml: the run's tree; the tiers reach the jobs (bootstrap, cross, the target matrix, the upgrade, openkal, the iOS and MSVC-xlings jobs, the second macOS image and Linux's other toolchains run in `full`); a push to main whose tree a run verified registers that run and tests nothing; `verdict` judges every job and leaves `verified-<tree>` after a `full` pass; `merge_group` is accepted. - release-build.yml: the four release builds, moved from release.yml. ci.yml's `full` tier runs them, and its Linux shards test the program of the Linux archive (use-built-mcpp `form`). - release.yml: `find` reads the tag's tree; `promote` takes the verifying run's archives, checked against their checksums and version; without such a run the four builds run, and the summary says which. - The unit shards come from the measured work of main's last run; build.yml restores main's unit cache and, on main, keeps the entries its build used. - The report's sections and `mtest gate`; jitter.yml (weekly, by hand, and on a flip in main's run); the downstream action project-test; main_run.sh resolves main's registered run. - docs/92 and the mcpp-release skill: the release pull request passes `ci:full` before it is merged, main's run is not cancelled, and the release promotes.
…se runs holds to what its case has left)
…es, measurements, and where it differs from the design
….6, mtest 0.11.2)
…ject's record and does not write it (the build database leaves the project's tree unchanged)
…t back (SPEC-017 O11 item 5); the offline refusal names the host's first-run toolchain from its one answer
… case states (1127); the bundle case runs where no network namespace is given; the Linux shards install the toolchains their cases probe
… one answer (is_windows 123, is_macos 28)
…ow), musl gcc 16.2.0 on other Linux architectures, ninja 1.13.2-mcpp.1 and patchelf 0.19.3; a default is the newest release every platform it serves publishes, so llvm and the musl rows stay (mcpp#988; design 2026-11-21 §3.7)
…re spelled as UTF-8; the test design records the second checkpoint's findings
…this commit pins (ninja and patchelf), read from the built-in table's defaults
…he first run's toolchain is the one the binary answers (29)
…irectory (<ns>.<name>/ before 2026.11.21.1, <ns>_<name>/<instance>/ from it, mcpp#986)
… home's environment too (gcc 16.2.0 revision 1), so an undescribed environment's link finds the home's C library
…s keeps the home's default toolchain (60); 860 measures the programs' compiles once the engine module is cached and reports the graph's steps; 955 and 182 state the time a cold cache takes
…ake_refused); messages that name a toolchain to write or install name this host's first run from the built-in table, and doctor's cross hints name toolchain install --target
…rest at the case's end; cases 1134 to 1140 and steps of 167, 234, 325, 990, 1127 exercise the surface no case used; seven waivers state why; the design records the third checkpoint
… is its configuration's, mcpp#986), so the previous release's dependency is compiled once and then served; the CHANGELOG states the one rebuild
…nuation lines (the index, what was done, the hint)
…states: the compile and link lines take -B from gcc::binutils_prefix_dir, the std module's one answer, not from the archive tool's directory (bases 925)
…one at -j 1 (each compile waits for its own scan); the mingw suite states 182's limit, which the runner reads for a selected case; the design records the scans, the limit and the -B
This was referenced Nov 22, 2026
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.
Release 2026.11.21.1: the test and CI architecture of design 2026-11-20 with its three sub-designs of 2026-11-21 (build programs' observed inputs, offline builds with host inputs and the toolchain defaults, package features), in one pull request. The CHANGELOG section
[2026.11.21.1]is the release's notes. Refs #986, #976, #927, #802, #293, #988, #989, #990, #991, #852, #992.Engine
mcpp testcompiles every unit again when it only adds units #986); a path enters a cache key by its role; a cacheable package's build program runs into the home'sbuild-cache/v1/out.[profile.<name>] dependency_debug,[build] memory_threshold(feat: add runtime memory-aware build concurrency control #802), one budget of slots for the machine (Open items after 2026.11.19.1: the openkal programs' CI budgets, a selection's time limit, the skeleton's mtest, intermittent CI failures, open decisions #976).--changed/--sinceby headers,mcpp emit surfaceandMCPP_SURFACE_RECORD.mcpp fetch --to/--from,[build] offline,[xlings] archives,[build] allow_host_tools; a build no longer requires patchelf; a toolchain request has one answer (Please update to newer Binutils, Linux UAPI headers, and patchelf in the managed Linux GCC toolchain #988); a compiler's version is its driver's (mcpp misdetects Fedora GCC 16.2.1 as GCC 3 with an explicit local toolchain #989).mcpp searchor a query of one package) #992):mcpp search --format json,mcpp why features.Tests
mtest 0.11.2. The kit records each command's steps and the surface it uses, shares one home as a run fixture, gives a case that changes a home its own, declares diagnostic lines and compares contractual outputs with goldens. The surface ledger covers every item of
mcpp emit surfaceby a passing case or a waiver with its reason; the CPU budget is a gate.CI
Tiers reach the jobs; a
fullrun that passes leavesverified-<tree>; a push to main of a verified tree registers that run instead of testing again;release-build.ymlholds the four release builds;release.ymlpromotes a verified run's archives. docs/92 and the release skill state the procedure.Specs, usage chapters (en and zh), design records and the CHANGELOG are updated with the change.