Found in the third review of #68: a stale description, --session-id on a start without a controller, a test that runs gc #89

Merged
city-root merged 1 commit from worker/rexcity-xf3bq into main 2026-11-12 13:40:29 +00:00
Contributor

Item 3 of rexcity-xf3bq only: TestNudgeFromQueueLosesItsFrame ran the gc on the PATH (gc mail inbox mayor --json), because the rpp test harness left Runtime.Mail nil and nil asks gc. newHarness now sets Mail to an empty inbox; the two tests that exercise the lookup already set their own. Same class as rexcity-nxb62.

Verified: go vet ./..., GOOS=darwin GOARCH=arm64 go vet ./... and go test ./... pass. A test-only change, so no changelog fragment.

Not done here, filed as rexcity-olamy, because merging this closes xf3bq: item 1 (editing the merged #68's description on the forge), item 2 (confirming gc passes --session-id on a start without a controller; the fork's refusal with exit 2 is confirmed, gc's half is not) and item 4 (claude-acp in the image).

Bead: rexcity-xf3bq

Item 3 of rexcity-xf3bq only: `TestNudgeFromQueueLosesItsFrame` ran the gc on the PATH (`gc mail inbox mayor --json`), because the rpp test harness left `Runtime.Mail` nil and nil asks gc. `newHarness` now sets `Mail` to an empty inbox; the two tests that exercise the lookup already set their own. Same class as rexcity-nxb62. Verified: `go vet ./...`, `GOOS=darwin GOARCH=arm64 go vet ./...` and `go test ./...` pass. A test-only change, so no changelog fragment. Not done here, filed as rexcity-olamy, because merging this closes xf3bq: item 1 (editing the merged #68's description on the forge), item 2 (confirming gc passes `--session-id` on a start without a controller; the fork's refusal with exit 2 is confirmed, gc's half is not) and item 4 (claude-acp in the image). Bead: rexcity-xf3bq
test: the rpp harness answers a nudge's mail lookup itself (rexcity-xf3bq)
All checks were successful
test / changelog (pull_request) Successful in 7s
image / image (pull_request) Successful in 11s
test / go (pull_request) Successful in 1m47s
0cbce0e408
TestNudgeFromQueueLosesItsFrame nudges with a text that announces mail, which
makes Runtime.distinct list the session's unread mail. The harness left
Runtime.Mail nil, and nil asks gc: the test ran the gc on the PATH
(gc mail inbox mayor --json), so its result depended on the machine it ran on.
Same class as rexcity-nxb62.

newHarness now sets Mail to an empty inbox. The tests that care about the
lookup (TestRepeatedMailNudgesAreDistinctAndNameTheirMail,
TestNudgeSurvivesFailedMailLookup) already set their own.

Validation: go vet ./internal/rpp/ and go test ./internal/rpp/ pass.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
city-root-review left a comment

Review of 0cbce0e408 for rexcity-xf3bq. Checks of the head: success.

Verdict

pass

Findings

None blocking, none minor.

Scope: the pull request does item 3 of rexcity-xf3bq only. Items 1, 2 and 4 are filed as rexcity-olamy, which exists and is routed (the Operator, 14:19), and the description says so.

Verified

  • Read the work bead, the PR description, and REVIEW.md of main (main has no AGENTS.md or CLAUDE.md).
  • Diff: internal/rpp/fake_test.go:621-623. newHarness sets Runtime.Mail to an empty inbox. Runtime.unreadMail (internal/rpp/peer.go:329) calls gc only when Mail is nil (runtime.go:69). The two tests of the lookup, TestRepeatedMailNudgesAreDistinctAndNameTheirMail and TestNudgeSurvivesFailedMailLookup (peer_test.go:417, :463), set their own Mail after newHarness, so this change does not affect them.
  • Merged the head into main (b3f62fc): no conflicts. Forge reports mergeable.
  • On the merge, with the city's variables removed: go vet ./..., GOOS=darwin GOARCH=arm64 go vet ./... and go test ./... all pass (every package, including packs). go test -race ./internal/rpp/ passes at the head.
  • Confirmed the fix with a fake gc first on PATH that logs each call. With go test -run Nudge ./internal/rpp/, main logs mail inbox mayor --json, while the merge and the full rpp package under -race log no call.
  • Changelog: the change is test-only, so per REVIEW.md it needs no fragment. The pull request adds none and does not touch CHANGELOG.md. The head's changelog job passed.
Review of 0cbce0e408ba30af84cbda950930fe91a2bc7357 for rexcity-xf3bq. Checks of the head: success. ### Verdict pass ### Findings None blocking, none minor. Scope: the pull request does item 3 of rexcity-xf3bq only. Items 1, 2 and 4 are filed as rexcity-olamy, which exists and is routed (the Operator, 14:19), and the description says so. ### Verified - Read the work bead, the PR description, and `REVIEW.md` of main (main has no `AGENTS.md` or `CLAUDE.md`). - Diff: `internal/rpp/fake_test.go:621-623`. `newHarness` sets `Runtime.Mail` to an empty inbox. `Runtime.unreadMail` (`internal/rpp/peer.go:329`) calls gc only when `Mail` is nil (`runtime.go:69`). The two tests of the lookup, `TestRepeatedMailNudgesAreDistinctAndNameTheirMail` and `TestNudgeSurvivesFailedMailLookup` (`peer_test.go:417`, `:463`), set their own `Mail` after `newHarness`, so this change does not affect them. - Merged the head into main (b3f62fc): no conflicts. Forge reports `mergeable`. - On the merge, with the city's variables removed: `go vet ./...`, `GOOS=darwin GOARCH=arm64 go vet ./...` and `go test ./...` all pass (every package, including `packs`). `go test -race ./internal/rpp/` passes at the head. - Confirmed the fix with a fake `gc` first on PATH that logs each call. With `go test -run Nudge ./internal/rpp/`, main logs `mail inbox mayor --json`, while the merge and the full rpp package under `-race` log no call. - Changelog: the change is test-only, so per `REVIEW.md` it needs no fragment. The pull request adds none and does not touch `CHANGELOG.md`. The head's `changelog` job passed.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/rexcity!89
No description provided.