Repository navigation
fix: compile-check does not record a compile whose inputs changed while it ran - #3330
Merged
hatayama merged 1 commit intoOct 15, 2026
Conversation
Contributor
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 13
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Base automatically changed from
feat/compile-check-replay-fast-check
to
feature/compile-check-changed-files-check
October 15, 2026 04:20
…le it ran The compile result was recorded under the input key read before csc started, but csc reads the sources while it compiles. An edit made during the compile was therefore recorded under the key of the bytes before it, and putting the file back reused what the edited file reported. The key is now read again before recording, and a compile whose key moved leaves no record, so the next run compiles again. After a compile whose inputs changed while it ran, the next run's fallback reason is now that no full compile is on record, since none is; the note of the run that compiled still names the input.
hatayama
force-pushed
the
fix/compile-check-recheck-key-before-recording
branch
from
October 15, 2026 04:21
87bd6aa to
2ef5ac7
Compare
hatayama
merged commit Oct 15, 2026
eb7989a
into
feature/compile-check-changed-files-check
3 checks passed
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.
Summary
User Impact
Changes
FastPathBaselineNotes. That step still runs after a compile whose key moved, so its note is not lost.no baseline: the last full compile did not record one; it is nowno baseline: no full compile of this assembly is on record, because no compile is on record. The note of the run that compiled still names the input that changed. Before this change the next run compiled in full as well, since the leftover record was under another key and could never be reused. The compile-check doc says so where it lists that reason, and where it describes edits made during a compile.Verification
TestNonSourceInputChangedDuringCompileLeavesNoBaselinenow expects the reason above, and its comment says the compile leaves no record to reuse either.TestCompileUnitsReusesEveryUnitWhoseInputsDidNotMove.cli/dispatcher:golangci-lint fmt --diffis empty;go vet ./...passes;golangci-lint runand the complexity config both report 0 issues.go test ./...andgo test -race ./internal/compilecheck/...pass.cli/release-automation:go test ./...passes. The file-length check passes.