Repository navigation
sminos 1.27.7: test-sync.sh's former-name rejoin no longer races the uplink (#157) - #428
Merged
Merged
Conversation
…uplink #157: the section appended ob's betaold `joined` in syncproj and only then moved ob's engine record there from its other checkout. The uplink reconciles as soon as the append lands; one that ran in that gap read the joined beside a record naming the other checkout and retired ob as `moved`, the hub's first beta/ob event (CI's `[["retired", null]]`; a 1.5 s sleep in the gap reproduces all three failures every run). Now the record is replaced whole, naming syncproj, just before the append, as a session's record names where it runs before its hook writes there, and the section waits on the daemon's own notice before the hub's state. What it asserts is unchanged. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
… schedule Review of 188f2b7: a reconciliation between the record's move and the append could join ob on sight as beta, and the section would pass without the daemon's rejoin of a former name. ob's record is now an SDK run's, which nothing joins on sight, and the joined lands only after two of beta's ticks have read the moved record, so no reconciliation can pair the joined with the old one. The section asserts the daemon's own "joined again as beta (it had joined as betaold)" line, which fails when ob's record is left joinable. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Review of d7eef10: `test "$(tick_b)" != …` was expanded once, so each wait ran to its 30 s bound without seeing a tick. A helper reads it each try, as alpha's tick_moved does. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Versions kept at this branch's 1.27.7. Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)
Codex Review SummaryThis 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. |
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.
What
sminos/tests/test-sync.sh's section "a member joined as betaold on an open stream" failed once in CI. That was #425's first gate, run 40667857445, with three FAILs:ob joins again as betagot[["retired", null]];said oncecounted 0.It failed again on #156/#158's gate (run 40680605663). Board ticket #157.
Why: a race in the setup, not the poll. The section appended ob's betaold
joinedin syncproj and only then rewrote ob's engine record from its other checkout ($RO) to syncproj. The uplink reconciles as soon as an append lands (its delivery path →view_of→_reconcile). One that ran in that gap read the joined beside a record still naming$RO, and retired ob asmovedunderbeta/ob. That retirement was the hub's first beta/ob event, so the poll on "the hub holds beta/ob" returned on it, and no longer wait could have helped. A 1.5 s sleep in that gap reproduces all three CI failures every run.The fix keeps what the section proves:
os.replace), as an SDK run's (entrypoint: sdk-cli), which no reconciliation joins on sight.joinedis appended only after two of beta's syncproj ticks (itsdaemon.jsontick) have read the moved record.daemon.log) and only then on the hub, every wait bounded at 30 s.Validation Evidence
sleep 1.5between the old append and the record rewrite,test-sync.shfails exactly CI's three assertions:3 of 118 sync assertions FAILED,actual: [["retired", null]].test-sync.shat 7c0d474, two at a time,all 119 sync assertions passedin every run, no FAIL (scratch/sync20.sh).FAIL the daemon's rejoin of the former name is what joins ob as beta.ci-gateon d3cae94 (the PR head, main merged) is GREEN: https://github.com/SSFSKIM/doperpowers/actions/runs/40685982571doperpowers:reviewer-mediumran three rounds.$(tick_b)once, so each wait ran to its bound. Fixed in 7c0d474.Unresolved Review Findings
test-sync.sh, the same section. An uplink reconciliation that read ob's old$ROrecord before the record move and that stays stalled across two whole daemon ticks before reading the log can still retire ob asmoved. The reviewer forced this by pausing the uplink insideview_of; it calls it pre-existing, not introduced here. Left because closing it would need a barrier on the uplink process too, for a schedule that needs a stall of seconds inside one function. If it ever shows in CI, the first beta/ob event readsretiredagain.Residue
None.
sminos 1.27.7 (test-only; bumped so the release number moves with the tree).
Sminos-Session: p5-desk-track-owner#b4948247 (doperpowers on macbook)