Skip to content

Concurrent pantsd: Swap uncacheability for run-scoped results - #23616

Open
tobni wants to merge 2 commits into
pantsbuild:mainfrom
tobni:graph/cross-run-result-scoping
Open

Concurrent pantsd: Swap uncacheability for run-scoped results#23616
tobni wants to merge 2 commits into
pantsbuild:mainfrom
tobni:graph/cross-run-result-scoping

Conversation

@tobni

@tobni tobni commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

NodeResult holds the producing RunId in place of an "uncacheable" bool. A Run that attaches to an in-flight attempt started by another Run re-enters get_node_result instead of taking that attempt's result.

Nothing can observe another Run's attempt under the pantsd concurrency lock, so this change is behaviour-preserving work.

See https://docs.google.com/document/d/1XEO55efGI8x91wGiVjmlFpUORJeQpZ2xF4zQoSE4TuY/edit?tab=t.0#heading=h.apz3211m77eg for design intent.

tobni added 2 commits August 9, 2026 13:10
A Run which attaches to another Run's in-flight attempt cannot consume its
run-scoped result, so it re-enters to compute its own.
@tobni
tobni requested review from benjyw and tdyas August 9, 2026 11:17
@tobni tobni added category:internal CI, fixes for not-yet-released features, etc. release-notes:not-required [CI] PR doesn't require mention in release notes labels Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:internal CI, fixes for not-yet-released features, etc. release-notes:not-required [CI] PR doesn't require mention in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant