Repository navigation
The surface records help <command>, which the parser answers before any action - #1047
Merged
Merged
Conversation
…ny action: the full gate found command help unexercised
…gain stages the dependency's units from the home's cache
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.
main's full gate after 2026.12.6.2 (run 47637770582, "the run's tests, reported") failed on one ledger item, every case having passed:
Cause.
mcpp help <command>(2026.12.6.1) is answered by mcpplibs.cmdline's parser (HelpOptions::help_command): it returns aParseErrorof kindhelpbefore any action, sorecord_invocation, which reads the parsed record, never ran for it. The surface listscommand helpbecause the completion tree holds it; e2e cli/usage runsmcpp helpandmcpp help build, unrecorded. The pull-request gate runs the cases a change affects and does not check this ledger, so #1044 and #1046 passed it.Change.
record_answered: when the parser answers a help whose first word ishelp(the rule by which the parser reads it as a command),command helpis recorded, withMCPP_SURFACE_RECORDset only.--helpstays unrecorded as before (a parser-added flag), andemit surfaceis unchanged.Verified. With
MCPP_SURFACE_RECORD,mcpp helpandmcpp help buildrecordcommand help;mcpp build --helpand--versionrecord nothing. e2e cli/usage passes; GCC and LLVM 23.1.3 builds pass. The full gate itself runs on main only.A second commit: e2e
generated/314reads the graph its build wrote. The pull-request run failed this case once (no compile edge for the dependency was found at all,tests/e2e/actions/generated.cpp:212); it passed on main's full run and three times locally. The case readbuild.ninjaaftermcpp run. A run that does not replay the graph plans again, and the path dependency's units, which the build had just put in the home's cache (mcpp-cache-fills), are then staged (stage_file): that graph has no compile edge of the package to order. Reproduced locally by a dependency source newer than the graph beforemcpp run: 2 compile edges before, 0 after, twostage_fileedges. The shared home of a run is written by its other programs, which is the run's reason to plan again on CI. The engine is right (a staged unit does not wait for the action that generates a header it was compiled with); the case now reads the graph right aftermcpp build. With a forced re-plan beforemcpp runthe case passes; without one it passes as before.