Repository navigation
Windows No Compiler CI: measure again when only the file watcher failed - #18735
Conversation
…ed, and score a 4688 compiler as a hit
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ec075b3b93
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if ($incomplete.Count -gt 0 -and $compilers.Count -eq 0) { | ||
| $verdict = ($incomplete -join '; ') + ". This run cannot say whether a compiler ran." | ||
| if ($uncovered.Count -eq 0 -and $Attempt -lt $Attempts) { |
There was a problem hiding this comment.
Preserve positive artifact detections before retrying
When a watcher reports an error and 4688 records no compiler, this retries even if $newLibraries already contains compiler artifacts. The recursive return discards that positive detection, so a healthy second attempt with no new artifacts lets both workflow steps pass. Artifacts left by the first attempt also become part of the second attempt's baseline and are excluded from its sweep. This defeats the independent artifact detector precisely when process auditing misses a compile. Treat nonempty $newLibraries as a hit that prevents retrying, just like nonempty $compilers, and add a test covering an artifact hit alongside a watcher failure.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 3eef5fb. A non-empty $newLibraries now blocks the retry the same way a 4688 compiler does, so an artefact hit from the void attempt is returned and the step fails on it. Added test_an_artefact_seen_while_the_watcher_failed_is_a_hit_not_a_retry (it fails with the previous condition).
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Problem
Windows No Compiler CIfailed 5 of its 21 completed runs in the last day, onmain(run 44728450095) and on unrelated PRs (#16729 three times, #18727). Every failure was the same void, always inRequire the desktop mode to run without a compiler(install.ps1 --tauri --local):None of them recorded a compiler. The
FileSystemWatcherbuffer is already at its 64 KB maximum, so a burst of temp-file creations during the install can still overflow it.Fix
Invoke-WithCompilerWatchtakes-Attempts(default 1, so every existing caller is unchanged). The two installer measurements inwindows-no-compiler-ci.ymlpass-Attempts 2; the positive control still measures once.installer-tauri-attempt2-*.txt), and a::warning::names the void attempt.Tests
New pwsh tests in
tests/studio/test_installer_av_shapes.pyrun the realInvoke-WithCompilerWatchwithStop-StudioTempWatchreporting a failed root on the first N measurements:-Attempts 1-Attempts 2tests/python/test_compiler_watch_temp_scan.pylifts the verdict block out of the shipped script; its harness now supplies the inputs that block reads ($compilers,$Attempt,$Attempts,$Name) for a single compiler-free attempt.tests/studio/test_installer_av_shapes.pyandtests/python/test_compiler_watch_temp_scan.py: 275 passed, 1 skipped.main, the four new tests fail.This PR touches
.github/scripts/Watch-ForCompiler.ps1, so its ownWindows No Compiler CIrun exercises the real Windows path.