Skip to content

2026.11.26.1: a private fragment after conditions, the purview read as C++ tokens, a tip for the optimization a failure may be - #1014

Merged
speak-agent merged 7 commits into
mainfrom
ci/wine-from-xpkg
Nov 25, 2026
Merged

speak-agent merged 7 commits into
mainfrom
ci/wine-from-xpkg

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Release 2026.11.26.1. Design record: .agents/docs/2026-11-26-clang-bmi-cutoff-and-private-fragment-refinement-design.md (v4).

A private module fragment after conditions (SPEC-019 §5). #if, #ifdef, #ifndef, #elif, #elifdef, #elifndef, #else, #endif, #error and #warning before module :private; no longer keep the source from being built as two units: a condition only decides which declarations exist, and the implementation unit receives them from the interface. A condition still open at the module declaration or at the fragment, and any directive that changes the fragment's meaning (#define, #undef, #include, #pragma, #line, _Pragma), leave the source as written. private_fragment = "conservative" keeps the rule before this change, and is the check available on GCC.

The purview is read as C++ tokens. A digit separator (1'000) no longer hides the rest of its line, a raw string may run over lines and hold module :private;, a static inside extern "C" { … } is at namespace scope, and a line continuation between the module declaration and the fragment leaves the source as written. Each only makes more sources built as written.

A failure says how to check the optimization (SPEC-019 §9). When a build fails at a step an entry acted on (a source built as two units; a unit that imports a BMI kept with earlier lines; a link where either is present), it ends with a tip: giving the one invocation that turns that entry off. The text is made of the register's key, environment name and new check value. A failure of another step, a successful build and --quiet say nothing.

Found on the way. MCPP_PRIVATE_FRAGMENT, MCPP_BMI_SCHEDULE and MCPP_BUILDOPT were not part of the request a recorded build is replayed for: a build with no edit after changing one replayed the graph the other value had written. They are now.

Not implemented: a reader for clang's .pcm (design item A). Measured with clang 20.1.7, 22.1.8, 23.1.3 and 23.1.6: the operand that holds a function's hash is at an index that varies with the declaration (26, 27 and 29 for member functions of one version) and the version, and a third of the edits change the VBR width of that 32-bit value, which moves the bit offsets and three offset tables. A reader could not tell the field from an interface change, so SPEC-018 §2.2 and SPEC-019 §8 record the measurement and the conditions under which it becomes possible.

Tests. modules/buildopt: about 55 verdicts of the purview (directives, conditions, lexical forms, conservative), a reassembly property, noise invariance, 400 random texts, the tip rules R1 to R4, the register's check, the FAILED: reader. tests/e2e/build/basics.cpp 1161 to 1164: conditions and macros, conservative and the first build after a value changes, the tip on clang and GCC with the check taking effect, an unrelated failure and --quiet saying nothing, a kept BMI.

Also on this branch. The mingw-cross-wine job takes Wine from the wine@11.0 package the engine's runner row names instead of apt (the step exceeded its 20 minutes three times on main on 2026-11-24): it installs the package through xlings, puts its bin on PATH, drops the i386 architecture and the wine-debs cache, and moves the xlings cache key to v4.

…names, not from apt

The job installed Wine from apt: a closure of about 200 packages, i386
multiarch included, whose download depended on the runner's mirror and on
a cache the repository's size limit evicts. On 2026-11-24 the step exceeded
its 20 minutes three times in a row on main. The engine's Windows-on-Linux
runner row already names xim:wine@11.0, one portable WoW64 archive; the job
now installs that package through xlings and puts its bin directory on PATH.
The runner-image key, the wine-debs cache and its save step are removed; the
xlings cache key moves to v4 so the saved home carries the package.
@Sunrisepeak Sunrisepeak added the ci:full Run the full e2e set on this pull request (read when a push starts the run) label Nov 24, 2026
@Sunrisepeak Sunrisepeak reopened this Nov 24, 2026
…ip of an optimization, and why clang's BMI has no reader
…he purview is read as C++ tokens; private_fragment = conservative
… that entry alone; the graph-shaping switches are part of the replayed request
@speak-agent speak-agent changed the title ci: mingw-cross takes Wine from the wine package the engine's runner names, not from apt 2026.11.26.1: a private fragment after conditions, the purview read as C++ tokens, a tip for the optimization a failure may be Nov 25, 2026
@speak-agent
speak-agent merged commit e50177d into main Nov 25, 2026
191 of 197 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Run the full e2e set on this pull request (read when a push starts the run)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants