Skip to content

test(roadmap): the four largest roadmap test files split by behaviour - #4050

Merged
dan-petty merged 2 commits into
mainfrom
test/3748-roadmap-test-files-split-by-behaviour
Nov 7, 2026
Merged

dan-petty merged 2 commits into
mainfrom
test/3748-roadmap-test-files-split-by-behaviour

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Four roadmap test files held many behaviours each. A failing file did not say which behaviour broke, and edits to them often conflicted with other sessions.

This change splits them by behaviour. The files for the refine, run, intake and GitHub store tests move into 60 files, each named by its behaviour. The tests keep their names and bodies. The helpers that several files share move to four plugin modules in tests/support/. Two syrupy snapshots follow their tests. No product code changes.

Closes #3748

Change: openspec/changes/archive/2026-11-07-3748-roadmap-test-files-split/

Move the tests of test_roadmap_run, test_roadmap_refine, test_roadmap_intake and
test_roadmap_github_store into 60 files that each hold one behaviour. Helpers that
two or more new files use move to four modules of tests/support. No test changes
its name or its body, and no product code changes.

Plans #3748.
@dan-petty dan-petty added type/test Type test: a new or changed test scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 7, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Evidence for the move (a pure move; no product code changes).

Test names. pytest --collect-only lists 556 test ids in the four old files (merge base af276549). It lists the same 556 ids in the 60 new files. A sorted diff of the two name lists is empty. Parametrized ids are the same too.

Helper renames. These helpers moved to tests/support/roadmap_*.py. Each lost its leading underscore. Some got a new name, because the short name was already in use in the module. Run tests: _candidates to make_candidates, _clone_head to head_of_clone, _commit_file to commit_to_bare, _delivery to webhook_delivery, _git to git_in, _labeled to labeled_changes, _lane to lane_table, _make_bare_remote to bare_remote, _schedule to read_schedule, _stamp to stamp_successes. Refine tests: _TOOL to NO_OPEN_TOOL, _blocked_by to blocked_by_issue. Intake tests: _labels to labels_of. These renames change the text of about 70 test bodies at the call sites. No test changes its name.

Local checks.

  • tests/roadmap and tests/invariants pass after the rebase onto origin/main (d6c2297b). The invariants alone: 597 passed.
  • The pre-push static checks pass.
  • A full uv run devops ci ran on the code before the last rebase. All rows passed, except the test row. In that row, two tests of tests/config/test_isolation_tripwire.py failed while the host was under load. They pass when run alone (24 passed). The test row took 20m 25s on this loaded host, over the 5-minute budget. The slowest tests are the stage eval tests, which this change does not touch.

Review notes, not done here.

  • Shared fixtures with generic names (store, roadmap, opened) now live in plugin modules. A later rename with a subject prefix is a follow-up, because it edits test bodies.
  • The counts in the OpenSpec proposal (5,049 ids) are dated facts for base 734e060b.

@dan-petty
dan-petty marked this pull request as ready for review November 7, 2026 19:25
@dan-petty
dan-petty merged commit 355fc14 into main Nov 7, 2026
24 checks passed
@dan-petty
dan-petty deleted the test/3748-roadmap-test-files-split-by-behaviour branch November 7, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(roadmap): the four largest roadmap test files split by behaviour

1 participant