Repository navigation
fill: the build's summary line and the notice read the graphs, never re-apply the links - #2032
Open
swapnilpaliwal-sd wants to merge 1 commit into
Open
swapnilpaliwal-sd wants to merge 1 commit into
swapnilpaliwal-sd wants to merge 1 commit into
Conversation
…re-apply the links A query waiting for a rebuild returns once the new graph is published. The build then still runs its summary line (`ax_fill.py --summary`), which called `ax_links.sync`: the new graph was not yet stamped with the links file, so the links were re-applied against the working tree as it was at that moment. A linked line edited in that window was written into the graph as [stale], where `axiomcode link` should say [changed] (edited since the build). On the nightly's Windows runner, under four cases at a time, that window held the edit in python/asserted-links two nights running. `worklist(sync=False)` for the summary line and the once-per-build notice: they count and write nothing. The `unresolved` listing is a query and still re-applies a links file the graphs were not given. tests/fill.py: a published but unstamped graph, the linked line edited, the summary and the notice run: the link is still [changed] and no graph was re-stamped (both fail before this change, with the nightly's [stale] line); the control, `unresolved`, re-stamps them. Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com>
swapnilpaliwal-sd
requested review from
JaredHLZhang,
Whua689 and
suyashpaliwal26
as code owners
November 21, 2026 20:13
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.
The nightly on
devfailed on Nov 20 and 21 with one check of 1,941, on Windows only:Cause
A query waiting for a rebuild (
path --fresh) returns once the new graph is published. The build then still runs itssummary line,
ax_fill.py --summary(added in #2028), which calledax_links.sync. The new graph was not yet stampedwith the links file, so sync re-applied the links against the working tree as it was at that moment. When the case
edited the linked line in that window, the link was written into the graph as
[stale]instead of being listed as[changed].A trace on a Windows runner (every
apply_repoand refresher start, with each step's time) under the nightly's load(
--jobs 4) shows it:link): step 23's--freshquery has returnedapply_repo, called byax_fill.py --summaryfrom the build still finishinglinkThere the re-apply came 63 ms before the edit, so the run passed. On the nightly it came after the edit. A quiet runner
passes 3/3, so it never shows on a pull request.
Fix
worklist(sync=False)for the build's summary line and the once-per-build notice (hooks, MCP): they count, they writenothing. The
unresolvedlisting is a query and still re-applies a links file the graphs were not given, as everyquery does.
Tests
tests/fill.py(+4 checks, 32/32): a published but unstamped graph, the linked line edited, the summary and thenotice run.
[changed], and no graph was re-stamped. Both checks fail ondevwith the nightly's[stale]line.
unresolvedre-stamps every graph.tests/run.pyasserted-links, -anonymous, -derive (all languages): 168/168.mcp,mcp_first,hooks_from_path,hosts,front_door: pass.surfaces(README--fresh) andfreshness(pruneon a case-insensitive disk) fail the same way ondevunchanged.