Skip to content

Tests: a bundled package's slow tier runs only when the package changed; --release runs all - #183

Merged
jries merged 1 commit into
mainfrom
claude/package-slow-tests
Nov 17, 2026
Merged

jries merged 1 commit into
mainfrom
claude/package-slow-tests

Conversation

@jries

@jries jries commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Bundled packages (uipsf, decode_smlm, and COMET etc. to come) now run their slow tier under --slow only when the package changed; their fast tier always runs.

tests/conftest.py

  • PACKAGES: per package, its tests folder, its source, and the smappy modules its tests lean on most.
  • Under --slow, a package's slow tests run only if one of its paths differs from the merge base with origin/main (committed, staged, unstaged or untracked). A change to tests/conftest.py, pyproject.toml or setup.py counts for all.
  • --package NAME (repeatable) forces one; naming a package's tests folder on the command line does too; --since REF moves the comparison; --release (new) and --long run them all. If git cannot answer, all run.
  • The summary ends with a line per package saying whether its slow tier ran and why.

CLAUDE.md: the rule, the --release command, and --release passing as the first step of a release.

Known limit: the paths list only a package's main smappy dependencies, so a change elsewhere in smappy (e.g. smappy.simulate) that breaks a package's slow tests is caught by its fast tier or --release, not at the PR.

Tests
--slow -n auto: not run. The worktree this was made in imports the main checkout's older editable install, and reinstalling would have disturbed other sessions on that checkout. Checked instead, with decode's slow test_emittergenerator as the probe: unchanged → skipped with the reason; --package decode → runs; a shared file changed → all run; --release → all run; unknown --since ref → all run; decode's folder named → runs; an untracked file in src/decode_smlm under -n 2 → decode runs, uipsf skipped; without --slow → unchanged behaviour.

🤖 Generated with Claude Code

…ed; --release runs them all

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jries
jries merged commit 24abdd6 into main Nov 17, 2026
6 checks passed
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