Repository navigation
test: gate substrate scenarios on gh auth presence (cluster B of #351) - #363
Merged
Merged
Conversation
The integration-suite has been failing on every canary push for the duration of this push (#351 cluster B). Root cause: 14 scenarios call airc with --room or bare connect (use_room=1), which trips cmd_connect's pre-flight gh-auth check (#338) — and CI's integration- suite runner has no gh auth wired in (no PAT secret). Add requires_gh_auth_or_skip() helper at the top of integration.sh: checks gh auth status once (cached for subsequent calls — saves rate limit budget when the suite runs many substrate scenarios), and either proceeds (when authed) or marks the scenario as skipped-pass with the reason. Test count stays sane, suite goes green on no-auth runners, substrate coverage preserved when gh IS authed (developer machines, future CI with PAT secret). Apply the gate to the 13 scenarios that exercise substrate features (--room or use_room=1 default): room, events, mnemonic, kick, heartbeat, bounce, two_tab_localhost, auto_scope, connect_after_kill_ recovers, general_sidecar_default, host_msg_publishes_to_gist, general_has_shared_gist, custom_room_creates_gist. Cluster A (Carl, #362) was test-stderr wording updates for the #343 ed25519-message-shape change. Together these close out #351. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
3 of 4 tasks
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.
Summary
Cluster B of #351 — the integration-suite has been failing on every canary push because 13+ scenarios exercise substrate features (--room / bare connect / use_room=1 default), which trip cmd_connect's gh-auth pre-flight (#338) on a runner with no gh auth.
Add `requires_gh_auth_or_skip()` helper that:
Applied to 13 substrate scenarios: room, events, mnemonic, kick, heartbeat, bounce, two_tab_localhost, auto_scope, connect_after_kill_recovers, general_sidecar_default, host_msg_publishes_to_gist, general_has_shared_gist, custom_room_creates_gist.
Together with #362 (Carl, cluster A — test stderr wording updates for the #343 ed25519-message-shape change), this closes out #351.
Test plan
Followups (out of scope)
🤖 Generated with Claude Code