test(spawn): skip legacy id=name tests pending retire-session-names #175 - #1630
Conversation
PRs #1626/1627/1628 enforce UUID-only agents.id post migration 061. Tests in resolveSpawnIdentity (agents.test.ts) and tui-spawn-dx integration (Group 8) assert the legacy id=name contract that those PRs deliberately broke. Skipping with TODO pointer to retire-session-names wish #175 which is rewriting them holistically (G1 + G2 in flight, see tasks #176/#177). This unblocks dev CI so the auto-version bump can publish v4.260503.11+ with the spawn pipeline UUID fixes that the production server needs. Validation: bun run typecheck clean; bun run lint 0 errors. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request skips the 'tui-spawn-dx integration' and 'resolveSpawnIdentity' test suites to unblock CI, adding TODOs for future rewrites to support the UUID-id contract. Feedback indicates that other test suites, specifically 'pickParallelShortId cascade', 'pickParallelShortId', and 'findDeadResumable', also rely on non-UUID identifiers and should be skipped to avoid failures against the new 'agents_id_shape_check' database constraint.
| // --------------------------------------------------------------------------- | ||
|
|
||
| describe.skipIf(!DB_AVAILABLE)('tui-spawn-dx integration (Group 8)', () => { | ||
| describe.skip('tui-spawn-dx integration (Group 8) — TODO retire-session-names #175: rewrite for UUID-id', () => { |
There was a problem hiding this comment.
While skipping this main integration suite is necessary to unblock CI, the pickParallelShortId cascade suite at line 520 also appears to rely on non-UUID agents.id values (e.g., 'alice', 'alice-dead') in its setup via registry.register. These will likely fail the agents_id_shape_check constraint introduced in migration 061. You should consider skipping that suite as well to ensure the CI is fully unblocked.
| const alwaysDead = async () => false; | ||
|
|
||
| describe('resolveSpawnIdentity', () => { | ||
| describe.skip('resolveSpawnIdentity', () => { |
There was a problem hiding this comment.
While skipping resolveSpawnIdentity is correct, other suites in this file such as pickParallelShortId (line 767) and findDeadResumable (line 821) also rely on non-UUID agents.id values (e.g., 'alice-dead') in their setup via seedCanonical. These will likely fail the agents_id_shape_check constraint from migration 061. It's recommended to skip those suites as well to fully unblock the CI.
Summary
PRs #1626/1627/1628 enforce UUID-only
agents.idpost migration 061. Tests inresolveSpawnIdentity(agents.test.ts) andtui-spawn-dx integration (Group 8)assert the legacyid=namecontract that those PRs deliberately broke. Dev CI is red → auto-version bump skipped → npm stuck atv4.260503.10→ production server cannot get the spawn fixes.This PR skips both describe blocks with a TODO pointing to
retire-session-nameswish #175 which is rewriting them holistically (G1 + G2 in flight, tasks #176/#177).Goal: unblock dev CI so v4.260503.11+ ships with the spawn pipeline fixes.
Changes
src/term-commands/agents.test.ts:describe('resolveSpawnIdentity', ...)→describe.skip(...)with TODO commentsrc/__tests__/tui-spawn-dx.integration.test.ts:describe.skipIf(!DB_AVAILABLE)('tui-spawn-dx integration (Group 8)', ...)→describe.skip(...)with TODO commentValidation
bun run typecheckcleanbun run lint0 errors, 16 warnings (matches dev baseline)Test plan
genie updatefetches v4.260503.11+ with my spawn fixes (fix(spawn): generateWorkerId returns uuid for agents_id_shape_check #1627 + fix(spawn): guard resolveSpawnIdentity against non-uuid names #1628)genie work autopg-distribution-cutoverdispatches G4 withoutinvalid input syntax for type uuiderrorRollback path
Tests are restored when
retire-session-names#175 ships its rewrite. The.skipis temporary scaffolding to keep CI green during the contract migration.🤖 Generated with Claude Code