Skip to content

Move login flag validation tests to dedicated test suite#278

Merged
jancurn merged 1 commit into
mainfrom
claude/optimistic-mayer-alwvy0
Jun 21, 2026
Merged

Move login flag validation tests to dedicated test suite#278
jancurn merged 1 commit into
mainfrom
claude/optimistic-mayer-alwvy0

Conversation

@jancurn

@jancurn jancurn commented Jun 21, 2026

Copy link
Copy Markdown
Member

basic/auth-errors had grown to 24 cases (16 using run_xmcpc, which runs each command 5×); under --parallel 6 the cumulative cost pushed it past the 180s e2e watchdog, failing Node CI. Most of that was CLI-side login flag validation that never hits the network — and basic/login-flags already exists for exactly those tests. This moves them there with no loss of coverage.

  • Move client-registration / CIMD / --callback-host / --callback-port validation into basic/login-flags
  • Collapse the five separate mcpc help login invocations into one
  • Keep one run_xmcpc to spot-check the --json/--verbose invariant; use single-invocation run_mcpc for the rest
  • auth-errors now ~33s/8 cases, login-flags ~16s/16 cases — both well under the watchdog

https://claude.ai/code/session_019aHvfttodfoVNsVeiYgQHQ

basic/auth-errors had grown to 24 cases, 16 of them run_xmcpc (which runs
each command 5x to check output invariants). Under --parallel 6 the
cumulative cost pushed the file past the 180s e2e watchdog, killing it
mid-run on Node CI.

Most of that work was CLI-side `login` flag validation (client registration
approaches, CIMD, --callback-host/--callback-port) that never touches the
network or test server. basic/login-flags already exists for exactly these
tests, with a header noting they live there to keep auth-errors within its
time budget. Move them there and:

- collapse the five separate `mcpc help login` invocations into one
- use single-invocation run_mcpc for the message assertions, keeping one
  run_xmcpc to spot-check the --json/--verbose invariant for the
  validation-error path

auth-errors now runs ~33s (8 cases) and login-flags ~16s (16 cases); both
stay well under the watchdog under parallel load. No coverage removed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019aHvfttodfoVNsVeiYgQHQ
@jancurn jancurn merged commit a52ea83 into main Jun 21, 2026
6 checks passed
@jancurn jancurn deleted the claude/optimistic-mayer-alwvy0 branch June 21, 2026 19:56
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.

3 participants