Repository navigation
fix: pr-bug-scan findings from #1424 - #1456
buf0-bot[bot] wants to merge 1 commit into
Conversation
Flip parentFieldRetried inside the probe IIFE before resolveProbe() runs, eliminating the race where siblings wake between resolve and flag flip and issue duplicate with-parent probes.
|
Closing in favor of #1514, which re-lands this fix on current Why this PR can't be merged as-is: it branched from The race itself is real on current main (siblings wake between cc @nwparker — closing as superseded. |
…1514) Closes the race where siblings awaiting parentFieldProbeInFlight wake between resolveProbe() and the deferred parentFieldRetriedByOwner.add() in the outer block, see parentFieldProbeInFlight=null + parentFieldRetriedByOwner without scopeKey, and issue duplicate with-parent probes. Originally raised in #1456, but that PR branched off pre-#1465 main and its diff against current main reverted #1465's owner-keyed parent-field caches back to global flags. This re-applies the fix on current main. Refs #1456 Co-authored-by: nwparker <[email protected]>
…tablyai#1514) Closes the race where siblings awaiting parentFieldProbeInFlight wake between resolveProbe() and the deferred parentFieldRetriedByOwner.add() in the outer block, see parentFieldProbeInFlight=null + parentFieldRetriedByOwner without scopeKey, and issue duplicate with-parent probes. Originally raised in stablyai#1456, but that PR branched off pre-stablyai#1465 main and its diff against current main reverted stablyai#1465's owner-keyed parent-field caches back to global flags. This re-applies the fix on current main. Refs stablyai#1456 Co-authored-by: nwparker <[email protected]>
Automated fix-PR from pr-bug-scan for parent #1424.
Fixer summary: Flip parentFieldRetried inside the probe IIFE before resolveProbe() runs, eliminating the race where siblings wake between resolve and flag flip and issue duplicate with-parent probes.
Typecheck:
skippedFindings addressed
src/main/github/project-view.ts— parentFieldRetried set too late — probe single-flight leaksThis PR was generated by the
pr-bug-scanautomation and reviewed by an agent reviewer. Human approval required before merge.