Repository navigation
fix(hr): scope the blocked-compilation audit to the pass change-set (spec 054) - #23864
Conversation
…hange-set On a (no rude edit, 0 update) pass, HotReloadManager audits every project of the solution through TryGetCompilation: a pass whose change-set touches a single project can complete Failed on thousands of errors from unrelated, never-validated projects - and since the pass can be the one correlated to the originating UpdateFile request, the request reports failure for a change that was applied. Scope the audit to the projects owning the pass's changed files (documents + additional documents), skip it when nothing resolves, and name the audited projects in the blocked output line.
|
Claude finished @dr1rrb's task in 3m 7s —— View job Review
SummaryThis is a spec-only PR — one new document, no implementation yet. The spec is technically sound: the problem statement is accurate (verified against the current 3 inline findings, 0 blockers:
The path-comparison issue (finding 2) is worth addressing in the spec before implementation — the rest of the codebase always reaches for |
There was a problem hiding this comment.
Pull request overview
Adds a spec-first design document (spec 054) for fixing Hot Reload’s “blocked-compilation audit” so that no-op passes are evaluated only against projects actually affected by the pass change-set, preventing unrelated/phantom errors from failing the pass and surfacing clearer output context.
Changes:
- Introduces spec 054 describing scoping rules for the blocked-compilation audit to change-set-owned projects (including
AdditionalDocumentownership). - Specifies updated user-facing output to include audited project(s) and edited file name(s), plus a concrete unit test plan.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
On a (no rude edit, 0 update) pass, HotReloadManager audited every project of the solution via TryGetCompilation, so a pass could complete Failed on errors from projects it never touched. When that pass was the one correlated to the originating UpdateFile request, the request reported failure for a change that had already applied. Scope the audit to the projects owning the pass's changed files (documents and additional documents), skip it entirely when the change-set resolves to no project (falling through to NoChanges instead of failing on foreign projects), and name the audited projects and edited files in the blocked output line. The diagnostic walk inside the scoped projects is unchanged (same TryGetCompilation + GetDiagnostics, formatting, and WASM cap). Implements spec 054; closes #23861.
|
Claude finished @dr1rrb's task in 5m 2s —— View job Review
SummaryThe implementation correctly follows the spec. The core logic — 3 inline findings:
The broken spec links to specs 053 and 055 (lines 6–7 of Verdict: fix-first for finding 1 (the path-comparison asymmetry is a genuine correctness gap that the surrounding codebase has already solved with |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23864/wasm-skia-net9/index.html |
|
|
- Resolve audited projects through PathComparer.PathEquals for both regular and additional documents (drop GetDocumentIdsWithFilePath), matching the rest of the pipeline and closing a Linux path-casing gap where a source document could escape the scope; index the change-set once for an O(1) per-document lookup. - Name only the projects that actually produced an error, ordered, so the blocked line is deterministic and the WASM early-return can't list an unexamined project. - Order the edited file names before the first-3 + "+N more" cap. - Add a mixed change-set test (one resolved file + one unknown path) guarding against a short-circuit on the first unresolvable file. - Spec: reference forthcoming specs 053/055 without broken links, align R1 on PathComparer, clarify the byte-for-byte scope and uncapped project names, add test case 5.
|
Claude finished @dr1rrb's task in 6m 26s —— View job Review
SummaryVerdict: fix-first The core scoping logic is correct — However, five of the six findings from prior review rounds are not reflected in the current code, despite author comments marking them as fixed. The branch has only two commits (both from before any reviews ran), so the "Fixed" responses appear to be forward-looking acknowledgements rather than pushed changes. 5 inline findings posted:
Findings 1, 3, and 4 have one-line |
|
Claude finished @dr1rrb's task in 2m 36s —— View job Review
SummaryVerdict: ship — all six findings from prior review rounds are addressed in
The implementation is correct:
|
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23864/wasm-skia-net9/index.html |
|
🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-23864/wasm-skia-net9/index.html |
autocarl
left a comment
There was a problem hiding this comment.
Static review of the current head; hosted checks are green. The scoping, deterministic summaries, WASM cap handling, and regression tests otherwise look sound. One Unix path-normalization gap still prevents approval.
GitHub Issue: closes #23861
PR Type:
🐞 Bugfix
What changed? 🚀
Spec-first draft — this PR currently carries
specs/054-hotreload-audit-changeset-scope/spec.md; the implementation lands on thisbranch by following it.
Summary: on a (no rude edit, 0 update) pass,
HotReloadManageraudits every project ofthe solution through
TryGetCompilation— a pass can completeFailedon thousands oferrors from projects it never touched, and when that pass is the one correlated to the
originating
UpdateFilerequest, the request reports failure for a change that wasapplied. Planned per the spec: scope the audit to the projects owning the pass's changed
files (documents + additional documents), skip it when nothing resolves, and name the
audited projects in the blocked output line.
PR Checklist ✅
Screenshots Compare Test Runresults.