Skip to content

Prevent check-cache imports from skipping query feeds - #187

Open
charliermarsh wants to merge 1 commit into
charlie/pin-cargo-1.99.0-4from
charlie/fix-latest-check-anon-const-types
Open

charliermarsh wants to merge 1 commit into
charlie/pin-cargo-1.99.0-4from
charlie/fix-latest-check-anon-const-types

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Importing a cached typeck_root result can skip query feeds that establish the types of const arguments. After a const-argument edit, the next native build can then panic while compiling an anonymous const.

Record query feeds as dependency-graph side effects. Check-cache imports that encounter a feed now rerun the query. Normal incremental reuse and imports with replayable effects continue to work. Extend the shared-stage regression with a const-argument/type change and subsequent native-cache reuse.

The published head passes the regression, 23 incremental tests in normal and shared-stage modes, and the eight-file ty edit with native inference checks. An optimized build of Ohm 1.99.0-3 plus this fix also passes 976 ty tests in each mode.

On that build, 12 paired runs across three Linux devboxes show no clear overall speedup from enabling shared stages: check plus build averages 92.22 seconds disabled and 92.04 seconds enabled (paired change −0.21%; individual 95% interval −1.45% to +1.03%). The build saves 2.59 seconds, while the preceding check adds 2.41 seconds.

@charliermarsh
charliermarsh marked this pull request as ready for review October 17, 2026 02:10
@charliermarsh
charliermarsh added this pull request to stack #188 October 17, 2026 02:26
charliermarsh added a commit to astral-experiments/ohm that referenced this pull request Oct 17, 2026
Prepare Ohm 1.99.0-5 with the check-to-build query-feed fix in astral-experiments/ohm-rust#187 and manual collection of shared ThinLTO caches in astral-experiments/ohm-cargo#164. The compiler's Cargo gitlink matches the manifest's Cargo revision.

The manifest, source revisions, manifest history, and formatting checks pass. The optimizations guide is updated separately in #151 for review.
@charliermarsh
charliermarsh removed this pull request from stack #188 October 20, 2026 22:12
@charliermarsh
charliermarsh added this pull request to stack #196 October 20, 2026 22:12
@charliermarsh
charliermarsh removed this pull request from stack #196 October 25, 2026 13:07
@charliermarsh
charliermarsh added this pull request to stack #229 October 25, 2026 13:07
@charliermarsh
charliermarsh removed this pull request from stack #229 October 27, 2026 02:58
@charliermarsh
charliermarsh added this pull request to stack #235 October 27, 2026 02:58
@charliermarsh
charliermarsh removed this pull request from stack #235 October 27, 2026 15:09
@charliermarsh
charliermarsh added this pull request to stack #237 October 27, 2026 15:09
@charliermarsh
charliermarsh removed this pull request from stack #237 October 27, 2026 21:36
@charliermarsh
charliermarsh added this pull request to stack #240 October 27, 2026 21:36
@charliermarsh
charliermarsh removed this pull request from stack #240 October 28, 2026 00:24
@charliermarsh
charliermarsh added this pull request to stack #242 October 28, 2026 00:24
@charliermarsh
charliermarsh removed this pull request from stack #242 October 28, 2026 17:21
@charliermarsh
charliermarsh added this pull request to stack #248 October 28, 2026 17:21
@charliermarsh
charliermarsh removed this pull request from stack #248 October 29, 2026 05:05
@charliermarsh
charliermarsh added this pull request to stack #253 October 29, 2026 05:05
@charliermarsh
charliermarsh removed this pull request from stack #253 October 29, 2026 14:07
@charliermarsh
charliermarsh added this pull request to stack #257 October 29, 2026 14:07
@charliermarsh
charliermarsh removed this pull request from stack #257 October 29, 2026 15:56
@charliermarsh
charliermarsh added this pull request to stack #260 October 29, 2026 15:56
@charliermarsh
charliermarsh removed this pull request from stack #260 October 29, 2026 17:11
@charliermarsh
charliermarsh added this pull request to stack #264 October 29, 2026 17:11
@charliermarsh
charliermarsh removed this pull request from stack #264 October 30, 2026 02:25
@charliermarsh
charliermarsh added this pull request to stack #272 October 30, 2026 02:25
@charliermarsh
charliermarsh removed this pull request from stack #272 October 30, 2026 15:59
@charliermarsh
charliermarsh added this pull request to stack #279 October 30, 2026 16:00
@charliermarsh
charliermarsh added this pull request to stack #295 October 31, 2026 12:35
@charliermarsh
charliermarsh removed this pull request from stack #295 November 1, 2026 02:14
@charliermarsh
charliermarsh added this pull request to stack #303 November 1, 2026 02:14
@charliermarsh
charliermarsh removed this pull request from stack #303 November 1, 2026 18:30
@charliermarsh
charliermarsh added this pull request to stack #322 November 1, 2026 18:30
@charliermarsh
charliermarsh removed this pull request from stack #322 November 1, 2026 20:56
@charliermarsh
charliermarsh added this pull request to stack #324 November 1, 2026 20:56
@charliermarsh
charliermarsh removed this pull request from stack #324 November 2, 2026 12:30
@charliermarsh
charliermarsh added this pull request to stack #334 November 2, 2026 12:30
@charliermarsh
charliermarsh removed this pull request from stack #334 November 2, 2026 15:55
@charliermarsh
charliermarsh added this pull request to stack #339 November 2, 2026 16:01
@charliermarsh
charliermarsh removed this pull request from stack #339 November 2, 2026 18:22
@charliermarsh
charliermarsh force-pushed the charlie/fix-latest-check-anon-const-types branch from 168c259 to 893ffd8 Compare November 2, 2026 18:23
@charliermarsh
charliermarsh added this pull request to stack #345 November 2, 2026 18:24
@charliermarsh
charliermarsh force-pushed the charlie/fix-latest-check-anon-const-types branch from 893ffd8 to 464addf Compare November 2, 2026 18:33
@charliermarsh
charliermarsh force-pushed the charlie/fix-latest-check-anon-const-types branch from 464addf to 2bb7de1 Compare November 2, 2026 19:09
@charliermarsh
charliermarsh removed this pull request from stack #345 November 5, 2026 20:30
@charliermarsh
charliermarsh added this pull request to stack #359 November 5, 2026 20:30
@charliermarsh
charliermarsh removed this pull request from stack #359 November 7, 2026 19:51
@charliermarsh
charliermarsh added this pull request to stack #367 November 7, 2026 19:52
@charliermarsh
charliermarsh removed this pull request from stack #367 November 8, 2026 13:07
@charliermarsh
charliermarsh added this pull request to stack #376 November 8, 2026 13:07
@charliermarsh
charliermarsh removed this pull request from stack #376 November 8, 2026 14:21
@charliermarsh
charliermarsh force-pushed the charlie/fix-latest-check-anon-const-types branch from 2bb7de1 to 893d7ae Compare November 17, 2026 07:31
@charliermarsh
charliermarsh added this pull request to stack #425 November 17, 2026 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant