Use a unique cache entry for wrapper-validation test (#921)

This is necessary to avoid loading a cache entry from a different test,
where the allowed wrapper checksums might have been cached, causing the
wrapper validation to unexpectedly succeed.
This commit is contained in:
Daz DeBoer authored and GitHub committed 2026-03-31 22:16:59 -06:00
1 parent 263d8fe18e
commit 0b8fa27eb1
2 files changed
+2

No files matched your search

@@ -12,6 +12,7 @@ on:
env:
SKIP_DIST: ${{ inputs.skip-dist }}
GRADLE_BUILD_ACTION_CACHE_KEY_PREFIX: wrapper-validation- # Avoid loading cache entries from other tests, that may have cached allowed wrapper checksums
permissions:
contents: read
@@ -36,5 +36,6 @@ export async function validateWrappers(
)
}
// TODO: Should not be caching the ALLOWED_GRADLE_WRAPPER_CHECKSUMS as they should only apply to the present run
checksumCache.save(result.valid.map(wrapper => wrapper.checksum))
}