Skip to content

Test snapshot cache invalidation directly#2869

Closed
plajjan wants to merge 1 commit into
mainfrom
speed-snapshot-cache-test
Closed

Test snapshot cache invalidation directly#2869
plajjan wants to merge 1 commit into
mainfrom
speed-snapshot-cache-test

Conversation

@plajjan
Copy link
Copy Markdown
Contributor

@plajjan plajjan commented Jun 4, 2026

The snapshot cache invalidation test used to shell out to acton test three times to check one metadata rule. That made the compiler test suite pay for full project builds even though the behavior under test is whether cached snapshot output can still be trusted.

This calls the snapshot cache filter directly with temporary expected and output files. The test still checks both sides of the rule: unchanged snapshots keep the cached result, while a changed expected snapshot forces a rerun. Existing acton test integration coverage continues to exercise the build and runner path.

The previous fixture launched acton test three times to check one cache
metadata rule, making the compiler test suite pay for full project builds.

Cover that rule by calling the snapshot cache filter with temporary
expected and output files. Existing acton test integration coverage still
exercises the build and runner path, while this test keeps the
invalidation case focused on the timestamp and size check.
@plajjan plajjan marked this pull request as ready for review June 4, 2026 03:37
@plajjan plajjan closed this Jun 5, 2026
@plajjan plajjan deleted the speed-snapshot-cache-test branch June 5, 2026 05:23
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