Skip to content

test(tracker): follow cli-core 3.12's tracker contract - #51

Merged
leemour merged 1 commit into
mainfrom
fix/tracker-contract-3-12
Dec 3, 2026
Merged

leemour merged 1 commit into
mainfrom
fix/tracker-contract-3-12

Conversation

@leemour

@leemour leemour commented Dec 3, 2026

Copy link
Copy Markdown
Member

Why

cli-core 3.12.0's publish stops at parity on linear-cli (run, cli-core#3157). cli-core 3.12 refuses a --dry-run reference the copy lacks (cli-core#3636, #3647) and adds milestones create, mounted only for a tracker whose writes name milestone; Linear's do not.

What

  • src/writes.test.ts: the two write previews ran on the sampled GraphQL fake, whose copy has one row of each kind and no states, with a made-up assignee and empty team and status. They now run on cli-core's tracker manifest fake (as src/tracker-sprints.test.ts does) and name its rows, so --status is covered again.
  • src/run-scope.test.ts: skips no milestones create, which this program does not mount.

Tests only; no product change.

Testing

  • Full suite, lint and typecheck on the pinned cli-core 3.9.0: 624/624.
  • The changed files on a cli-core 3.12.0 build from main: 10/10.
  • Reviewed by a fresh agent. Its note for later: the assign-others preview assertion matches an entry every preview prints, before and after this change; once linear pins 3.12, assert refusedBy: ["issues.assign-others"] instead.

🤖 Generated with Claude Code

cli-core 3.12 refuses a --dry-run reference the copy lacks (#3636, #3647) and
adds milestones create, which Linear's writes do not name. Three tests broke
in cli-core's parity run:

- the two write previews named a user and empty team and status the sampled
  copy lacks; they now run on cli-core's tracker manifest fake, whose copy
  holds distinct teams, states, labels, projects and users, so --status is
  covered again;
- run-scope skipped milestones create, which this program does not mount.

They pass on the pinned cli-core 3.9.0 and on a 3.12.0 build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 95d93e4 into main Dec 3, 2026
16 checks passed
@leemour
leemour deleted the fix/tracker-contract-3-12 branch December 3, 2026 17:21
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.

1 participant