Repository navigation
test(gpu): pin the win32-only fallback invariant the macOS Graphite fix relies on - #10646
Merged
Merged
Conversation
…ix relies on enableMainProcessGpuFeatures() is skipped while GPU fallback is active, and that function now carries the macOS disable-skia-graphite fix (#10643). Today that is safe only because GPU fallback is win32-only. Cover darwin explicitly and note the coupling at the call site so extending fallback past Windows cannot silently strip the fix from the Macs it targets. Co-authored-by: Orca <[email protected]>
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdded explanatory comments to the macOS-specific GPU feature configuration path. Added a Vitest case that writes a GPU fallback marker, calls 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
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 |
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
…ix relies on (stablyai#10646) Co-authored-by: Orca <[email protected]>
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.
Follow-up hardening for #10643. No production behavior change — one comment and one test.
Why
#10643 put the macOS
disable-skia-graphitefix insideenableMainProcessGpuFeatures(). That function is skipped entirely when GPU crash fallback is active:This is correct today only because GPU fallback is win32-only. But that invariant is implicit and spread across two files and three redundant layers. If fallback were ever extended to macOS, Macs would silently lose the Graphite fix — the exact machines it targets — with no test failing.
Two independent adversarial reviews of #10643 flagged this same latent coupling as the one worthwhile follow-up.
What changed
configure-process.ts) — states the coupling explicitly. This follows existing convention in the same function:IntensiveWakeUpThrottlingalready documents this identical hazard.gpu-fallback-marker.test.ts) — the suite already pinnedlinux, but notdarwin, so the platform relevant to the Graphite fix was uncovered.Proof the test is real
I mutation-tested it rather than trusting a green run. Disabling all three platform layers in
readActiveGpuFallbackMarkerfails it:Worth noting: knocking out any single layer does not fail it, because the layers are genuinely redundant —
marker.platformis written as'win32', so themarker.platform !== environment.platformcheck independently catches a darwin read. That redundancy is defense in depth working as intended, and the test correctly pins the composed behavior rather than one line.Verification
src/main/startup/suite: 163/163 pass (22 files)oxlint: cleantypecheck:node: cleanRisk
None to runtime behavior — the only non-test change is a comment. No perf or security surface is touched.
Made with Orca 🐋