Repository navigation
Hold the server and watch starts while a build runs, and keep a failed build across restarts #716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ryanwelcher
merged 3 commits into
trunk
from
ryanwelcher/start-dev-server-and-start-build-watch-are-reach
Oct 29, 2026
+288
−47
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
40bc304
Hold the server and watch starts while a build runs, and keep a faile…
ryanwelcher 06f951c
Tell the watch's own build from a build beside it by who started it
ryanwelcher ec61bfa
Hold the starts again as soon as the watch's own build is stopped
ryanwelcher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Script executed:
Repository: WordPress/contributor-toolkit
Length of output: 13338
Script executed:
Repository: WordPress/contributor-toolkit
Length of output: 22871
Script executed:
Repository: WordPress/contributor-toolkit
Length of output: 24187
Script executed:
pwdRepository: WordPress/contributor-toolkit
Length of output: 186
Script executed:
Repository: WordPress/contributor-toolkit
Length of output: 9266
Architecture 🟡 medium [fix here] — Ignore stale status responses.
loadStatushas overlapping callers. A request that capturesbuildFailed: falsebefore the build fails can finish after the completion-triggered request and restore the stale value. An older request can also clearstatusLoadingwhile a newer request is pending. The setup checklist can then report a failed build as complete.Add a request-generation ref. Apply response state,
metaPatchRef, andstatusLoadingupdates only for the latest request. Ensure callers that consume the returned status cannot act on a superseded response.The dev-server start path is not directly gated by
buildFailed; it recheckshasBuilt, so this race should not be described as directly enabling server start.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deferred to #720. The same race already exists on trunk for
installFailedandhasBuilt, whichbuildFailedfollows here, so it gets one fix for all of them there, including the callers that use the returned status.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ryanwelcher Agreed. The shared race should be classified as [follow-up], not [fix here]. Deferring it to
#720allows one fix for all status fields and callers that consume the returned status.🧠 Learnings used
You are interacting with an AI system.