Repository navigation
test: scaffold private.pem in synthesized identity dirs (cluster A of #351 CI failures) - #362
Merged
Merged
Conversation
Pre-#343 the test scenarios that synthesize a partial host scope (cmd_send liveness probe, away-status, list, quit) used `ssh-keygen -t ed25519` to create ssh_key + relied on the airc binary to lazily create private.pem via `openssl genpkey` if needed. Post-#343 init_identity creates private.pem via the venv cryptography path, but the test scenarios that DON'T go through `airc connect` at all skip init_identity entirely — sign_message then dies with `ed25519 sign failed: [Errno 2] No such file or directory: .../private.pem` before reaching the actual code-under- test (the monitor-liveness diagnostic, the away-marker logic, etc). Symptom in CI: 6 failures in the sdmd scenario alone all caused by the script bailing on the missing private.pem before reaching the assertion the test was actually validating. Adds `scaffold_identity()` helper next to spawn_host. Creates ssh_key (via ssh-keygen, unchanged) AND private.pem (via airc_core.identity bootstrap-ed25519 with PYTHONPATH set to make airc_core importable). Used at the 4 manual-scaffold sites: sdmd (send_dead_monitor_dies), aw (away-status), ls (list), quit (quit). The 5th ssh-keygen call (line 807, key-rotation scenario) replaces an EXISTING ssh_key after the scope was already initialized — private.pem is already there, no scaffold change needed. Pairs with other-mac's WIP for cluster B (gh-auth-less runner test infra). Both fold into #351. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced Apr 30, 2026
joelteply
added a commit
that referenced
this pull request
Apr 30, 2026
#363) 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]>
This was referenced Apr 30, 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.
Cluster A of the #351 / #361-CI failures, per the in-mesh split with other-mac (other-mac taking cluster B for the gh-auth-less runner infra).
Problem
Pre-#343 the test scenarios that synthesize a partial host scope (cmd_send liveness probe, away-status, list, quit) used
ssh-keygen -t ed25519to createssh_key+ relied on the airc binary to lazily createprivate.pemviaopenssl genpkey. Post-#343 init_identity createsprivate.pemvia the venv cryptography path, but the test scenarios that don't go throughairc connectat all skip init_identity entirely —sign_messagethen dies with:…before reaching the actual code-under-test (the monitor-liveness diagnostic, away-marker logic, etc).
In #361's canary-push CI, this caused 6 failures in the sdmd scenario alone, plus knock-on failures elsewhere — all the script bailing on the missing private.pem before reaching the assertion being validated.
Change
Adds
scaffold_identity()helper next tospawn_hostintest/integration.sh. Creates ssh_key (via ssh-keygen, unchanged) AND private.pem (viaairc_core.identity bootstrap-ed25519withPYTHONPATHset to make airc_core importable when invoking python directly).Used at the 4 manual-scaffold sites:
scenario_send_dead_monitor_dies)The 5th
ssh-keygen ed25519call (line 807, key-rotation scenario) replaces an EXISTING ssh_key after the scope was already initialized — private.pem is already there, no scaffold change needed.Out of scope (cluster B → other-mac)
Failures caused by gh-auth-less CI runner (auto-scope banner / subscribe banner / room-mode tests producing
✗ gh CLI is installed but the GitHub token is invalidinstead of expected output) need test infra work to either skip-when-unauthed or mock gh. Tracked in #351 with other-mac.Test plan
bash -n test/integration.shsyntax checkairc init_identitydoes)🤖 Generated with Claude Code