Skip to content

fix(ci): delete pre-2B.3 send_room_flag + part_keeps_sidecar + part_persists scenarios - #259

Merged
joelteply merged 3 commits into
canaryfrom
fix/integration-restore-all-case
Apr 28, 2026
Merged

joelteply merged 3 commits into
canaryfrom
fix/integration-restore-all-case

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Same shape as #239's cross_scope deletions: these scenarios test sibling-scope semantics that #227 deleted. Coverage now via tabs/queue/status (envelope channel) + general_sidecar_default (subscribed_channels).

joelteply and others added 2 commits April 28, 2026 18:23
…ilure)

#239 deleted scenario_peers_cross_scope and scenario_whois_cross_scope
because those tests exercised the pre-Phase-2B.3 sidecar peer-walk
that was removed. The Python regex used to scrub them — `if 'X' not
in line` — was too aggressive: it matched the whole `all)` case
line which contained both scenario names in its scenarios-to-run
list. Result: `all)` deleted entirely. CI's no-arg invocation
`bash test/integration.sh` then hit `*)` → exit 2 → push-to-canary
integration job failed.

## Fix

Restore an `""|all)` case (matches both no-arg and explicit `all`)
with the proper scenario list MINUS the two deleted ones. Preserve
the `*)` usage block as the unrecognized-scenario fallback.

Verification: tabs 19/0; manual no-arg + 'all' invocation kicks off
the full sweep instead of bailing.

Closes the canary push integration-suite failure on 75e7bb5.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…ersists scenarios

Same root cause as the cross_scope deletions in #239: these three
scenarios test sibling-scope semantics that Phase 2B.3 (#227) deleted.
Running them on canary HEAD fails because:

- send_room_flag: expects --room to re-exec into .airc.<name> sibling
  scope. Post-#227, --room is a channel-tag alias for --channel; no
  scope switch.
- part_keeps_sidecar: expects a separate sidecar process for #general.
  Post-#227, no sidecar process exists; #general is a subscribed_channel
  in the same scope.
- part_persists: same. The 'sidecar' it tries to part isn't there.

Coverage of the new behavior:
- Channel-tag stamping: tabs / queue / status scenarios verify envelope.channel
- subscribed_channels filter display: monitor_formatter + #243 path
- general_sidecar_default: rewritten in #227 to verify subscribed_channels
  includes 'general' AND no .general dir is created.

Verification: tabs 19/0; general_sidecar_default 10/0; away 5/0;
no syntax errors.
Copilot AI review requested due to automatic review settings April 28, 2026 23:35
…tore-all-case

# Conflicts:
#	test/integration.sh
@joelteply
joelteply merged commit 81b27cd into canary Apr 28, 2026
6 checks passed
@joelteply
joelteply deleted the fix/integration-restore-all-case branch April 28, 2026 23:35

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes integration scenarios that exercised pre-Phase-2B.3 sibling-scope/sidecar semantics, aligning the test suite with the post-#227/#239 behavior and fixing the default no-arg test runner dispatch.

Changes:

  • Deleted send_room_flag, part_keeps_sidecar, and part_persists integration scenarios from test/integration.sh.
  • Removed the corresponding case dispatch branches for those modes.
  • Restored the ""|all) branch so running the script with no args executes the default scenario set again.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test/integration.sh
Comment on lines 2496 to +2502
scenario_tabs; scenario_scope; scenario_reminder; scenario_teardown
scenario_resilience; scenario_reconnect; scenario_queue; scenario_status
scenario_auth_failure; scenario_room; scenario_events; scenario_get_host
scenario_identity; scenario_whois; scenario_kick; scenario_heartbeat
scenario_bounce; scenario_two_tab_localhost; scenario_auto_scope
scenario_send_dead_monitor_dies; scenario_connect_after_kill_recovers
scenario_general_sidecar_default; scenario_send_room_flag
scenario_part_keeps_sidecar; scenario_part_persists; scenario_away
scenario_general_sidecar_default; scenario_away

Copilot AI Apr 28, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default ""|all branch claims to run everything, but it currently omits scenario_general_sidecar_default and scenario_away even though both are still valid MODEs in this case statement. This means CI/no-arg runs won’t execute those scenarios. Consider adding those scenario calls to the all-list (or adjust the comment/behavior so "all" accurately reflects the intended coverage).

Copilot uses AI. Check for mistakes.
Comment thread test/integration.sh
scenario_part_keeps_sidecar; scenario_part_persists; scenario_away
scenario_general_sidecar_default; scenario_away
scenario_list; scenario_quit; scenario_platform_adapters
;;

Copilot AI Apr 28, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Usage string still advertises send_room_flag, part_keeps_sidecar, and part_persists, but the corresponding scenario functions and case branches were deleted above. Update the Usage list to remove these modes (or re-add dispatch targets) so the help text matches actual supported arguments.

Copilot uses AI. Check for mistakes.
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.

2 participants