Repository navigation
test: real-gh substrate smoke scenarios (passive_recv, round_trip, idle, part) - #313
Merged
Merged
Conversation
…en_recv, part_deletes_host_gist
The TDD gap Joel called out 2026-04-29: 'not stupid unit, not faked
with some half assed local equivalent — what is the most basic
things, ping, new rooms, leaving, joining.'
New file test/integration_smoke.sh (focused, not bolted onto the
4000-line integration.sh). Each scenario:
1. Uses the REAL gh substrate (no --no-gist, no --no-room).
2. Spawns TWO real airc processes (host + joiner).
3. Asserts user-visible outcomes (gist content, peer's local log,
bearer state ticking).
4. Cleans up every created gist on RETURN even on failure.
5. Skips cleanly if gh missing/unauthed.
Scenarios:
- passive_recv: A sends, B receives via polling without sending.
THE missing test — would have caught every 'monitor frozen'
report this session.
- round_trip: A→B and B→A both arrive via polling.
- idle_then_recv: 45s idle, B still receives. Validates #312
bearer-heartbeat keeps the recv pipe alive across legitimate
idle (pre-fix idle = pipe-stuck = monitor dead).
- part_deletes_host_gist: airc part on host deletes the gist
on gh; joiner's part doesn't.
All 4 pass live against the real gh substrate. Bumped per-scenario
wait window to 60s (gh poll cadence + bearer warmup + GET RTT can
exceed 30s on first-message after spawn).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced Apr 29, 2026
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.
Joel: 'what is the most basic things, ping, new rooms, leaving, joining, that we completely lack tests, not stupid unit, not faked with some half assed local equivalent.'
New
test/integration_smoke.sh(focused file, not bolted onto the 4000-line integration.sh). 4 scenarios against REAL gh substrate. 4/4 pass.Most important:
passive_recv— A sends, B receives via polling WITHOUT B sending. This is the test gap that would have caught every 'monitor frozen' report this session.