Skip to content

v7.0.0

Choose a tag to compare

@github-actions github-actions released this 11 Nov 01:16
· 22 commits to main since this release
Immutable release. Only release title and notes can be modified.

Syrupy 7.0.0

(2026-11-10)

Syrupy 7 raises the minimum Python version and hardens snapshot update/cleanup under partial selection and xdist. Please review the breaking changes before upgrading.

Full Changelog: v6.1.1...v7.0.0


Breaking Changes

Dropped Python 3.10

Python 3.10 is end-of-life and is no longer supported. Syrupy 7 requires Python 3.11+.

(#1269)


Features

  • Amber file locking under xdist — amber write locking now turns on automatically whenever pytest-xdist is distributing work. The experimental --snapshot-file-lock opt-in is removed; --snapshot-file-lock-timeout (default 60s) remains for configuring lock wait time. Default single-process behavior is unchanged. Suites that still pass --snapshot-file-lock should drop it.

    (#1242)

  • Python 3.15 — CI and packaging now cover Python 3.15.

    (#1261, #1266)


Bug Fixes

  • Keep unrun snapshots with --lf --snapshot-update — last-failed runs are treated as partial sessions, so snapshots for tests that did not run are no longer deleted as unused.

    (#1257, closes #1251) — thanks @wolfgang-aura

  • Preserve module skips with --pyargs — module-level pytest.importorskip() during --pyargs path discovery no longer turns a skipped session into exit code 1.

    (#1271, closes #1264) — thanks @sean0407

  • Remove snapshots orphaned by deleted test files — --snapshot-update now discovers and removes unused snapshot collections when their owning test modules are gone, including empty per-test-file snapshot directories.

    (#1258, #1292, closes #1250) — thanks @cpruijsen

  • Retry amber lock creation on Windows — lock creation retries when Windows denies the sentinel write because another process locked the empty region first.

    (#1280)

  • xdist unused detection without a gw0 SPOF — every worker sends compressed collected items, and unused delete/fail is skipped when worker reports are incomplete, so a dropped worker report no longer breaks unused detection.

    (#1294)


Performance

  • Faster xdist report compression — zlib level 1 is used for worker→controller snapshot collection payloads.

    (#1294)


Thank you to the contributors

Thank you to everyone who contributed to this release:

  • @wolfgang-aura — keep unrun snapshots with --lf --snapshot-update (first contribution)
  • @sean0407 — preserve module skips with --pyargs (first contribution)
  • @cpruijsen — remove unused snapshots orphaned by deleted test files (first contribution)