Repository navigation
Conversation
…change to the sources A new job, "Compile Generated Mocks on Linux", generates seven fixed graphs with a debug build of the tool and compiles each module's generated code with -DDEBUG, as an app's debug build does: the lifelike chain at five features with and without screens that open screens above them, the calling-mocks shape, an app of 150 mocked features, and three graphs whose generated code once failed to compile. The tests compare the generator's text and the graph fuzzer compiles small drawn graphs, so code the compiler refuses in a shape an app has was otherwise found only by an app-sized build. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
A fixture's module line may name the module's package; the tool and the compiler are then given that package for the module, so a mock that calls another package's public mock is generated and compiled as it is in an app. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
dfed
marked this pull request as ready for review
December 3, 2026 12:42
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.
Requested by Dan · project thread
Summary
A new CI job, "Compile Generated Mocks on Linux", generates eight fixed graphs and compiles each module's generated code, mocks included, the way an app's debug build compiles it (
-DDEBUG, Swift 6 language mode, the macros expanded). It runs on every pull request that touches the sources.The tests compare the generator's text, and the graph fuzzer compiles small drawn graphs. Code the compiler refuses in a shape a large app has was otherwise found only by building such an app. These graphs are the shapes where that happened:
lifelike-5lifelike-back-edges-5M80x80-calling-mocksapp-150-mocked-featuresunfillable-hole-under-a-shared-buildersendable-builder-of-a-bare-leaf@Sendablebuilder of a type with no dependencies, across a module boundarycaptured-hole-fill@Sendablebuilder that captures a value filled from outsidesendable-filled-call-builder-bound-apart@Sendablebuilder of a filled call, bound apart, with each module in its own packageScripts/compile-generated-mocks.py TOOL BIN_PATH DIRECTORYdoes the work. The four synthetic graphs come fromScripts/generate-time-check.py, so they stay the graphs that check times. A graph whose generated code once failed to compile joins as one file underScripts/compile-generated-mocks/;// module: NAMElines split it into modules, and// module: NAME package: PACKAGEputs a module in a package of its own. The job prints a table to the run's summary and an error annotation with the compiler's first errors for each module that does not compile.Minutes. The job took 12 minutes 41 seconds on a GitHub runner with no build cache: 4 minutes 22 seconds for the debug build of the tool, the library and the macros, and 7 minutes 20 seconds to generate and compile the first seven graphs (four at a time; the slowest compile, the lifelike chain with back edges, is about 5 minutes). The job keeps a build cache of its own, as "Check Generate Time on Linux" does, so a run after a landing on main builds less.
Generated output: unchanged
Tests
The script's
--self-testruns in the job before the build: it checks the module split of a fixture file, the dependency order, and that the verdict table marks a refused module and the modules above it. All eight graphs compile with the tool built from this branch's base.Found and not fixed
@Sendablebuilder that a public mock passes up, is known and does not compile until its generator fix lands. It joins as a fixture in the pull request that fixes it.https://claude.ai/code/session_01HLuVQLHq43QvdYBYGWTdSo
Generated by Claude Code