Revert "fix(writeback): guard onApplied on the write and settle post-spawn waits (#322)" — main is red - #352
Merged
Merged
Conversation
Contributor
|
@coderabbitai review Requested for exact head |
|
Warning Review limit reachedNext included review available in 43 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
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 |
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.
mainis red and this reverts the merge that broke it — mine.Evidence
CI on
main, in order:05552c93b7c68462reaps a first dispatch whose spawn never returns (#303), the known #342 flake infactory.test.ts)cb6044a1ddf6486dcb6044a1green →ddf6486dred, with #322 as the only change between them. That is a clean before/after control.The four failures are all in
src/cli/fleet.test.ts, none of them the #342 flake:Why it happened
#322 was green on its own head (
88cfd410, all 5 jobs). It went red only once merged.mainhad moved underneath it — #343 landed at 18:50, #322 merged at 19:35, and #322's last CI ran against its own base. Two individually-green sides combined into a red result, which is the seam #346 independently identified: #329 moved durable ownership todispatchLifecycleKeywhile #322's squash armed its post-spawn maps onissueKey.This is my miss. I verified #322's own seams and its per-job green, but not against
main's newer state, and I merged on a run whose base was already stale.Why revert rather than roll forward
#346 does fix this and is green — but it is now
+1039/-29across 10 files with three live review threads, and it expanded rather than splitting as I ruled. Landing 1000 lines of unreviewed compensating-rollback logic to un-redmainis the wrong trade when a revert restores green in one small, fully-reversible step.A red
mainis not a cosmetic problem right now: #347 (reclaim inversion) and #349 (dry-run regression fix) are both showingpackage: failurewith exactly these four tests, inherited from their base. Neither lane broke anything. Untilmainis green, no PR in this repo can demonstrate its own correctness, and every author pays to re-diagnose the same inherited red — which is how a repo learns to ignore failing checks.Nothing is lost
#322's work returns via #346, whose job is now "re-land #322 correctly, split into PR A (key unification) and PR B (rollback, designed)". The split ruling stands and matters more after this, not less.
Also worth stating plainly: none of this is in production.
v0.1.70iscb6044a1, andddf6486dis not an ancestor of it. The deployed container is 0.1.69 plus the read-only fix. This revert changes nothing about the live cutover or the currentreadinessReconcilestall (#351).Merging on per-job green.
Summary by cubic
Reverts the recent writeback and post‑spawn coordination changes to restore a green main. This returns the orchestrator and GitHub writeback API to their prior behavior and removes the code paths that broke the build.
GithubWriteback.setStatusandcloseIssuereturnPromise<void>again; removeGithubStatusWriteResultandGithubIssueCloseWriteResultand their exports fromsrc/ports/writeback.ts,src/ports/index.ts, andsrc/index.ts.issueWritebackConfirmedAtMshandling; revert dispatch/completion flow inFactoryLoop.src/writeback/github.ts.Written for commit 6bf6afe. Summary will update on new commits.