Skip to content

test: real-gh substrate smoke scenarios (passive_recv, round_trip, idle, part) - #313

Merged
joelteply merged 1 commit into
canaryfrom
tdd-substrate-smoke
Apr 29, 2026
Merged

joelteply merged 1 commit into
canaryfrom
tdd-substrate-smoke

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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.

…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]>
@joelteply
joelteply merged commit cb9ec09 into canary Apr 29, 2026
@joelteply
joelteply deleted the tdd-substrate-smoke branch April 29, 2026 15:33
joelteply added a commit that referenced this pull request Apr 29, 2026
merge canary → main: bearer heartbeat + real-gh smoke tests (#312, #313)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant