Reorder components of overlay-base cache key postfix

This commit is contained in:
Kasper Svendsen
2025-10-24 15:46:17 +02:00
parent b4ce335286
commit cbcae45fff
3 changed files with 3 additions and 3 deletions

View File

@@ -276,7 +276,7 @@ test("overlay-base database cache keys remain stable", async (t) => {
const saveKey = await getCacheSaveKey(config, codeQlVersion, "checkout-path");
const expectedSaveKey =
"codeql-overlay-base-database-1-c5666c509a2d9895-javascript_python-2.23.0-12345-1-abc123def456";
"codeql-overlay-base-database-1-c5666c509a2d9895-javascript_python-2.23.0-abc123def456-12345-1";
t.is(
saveKey,
expectedSaveKey,

View File

@@ -465,7 +465,7 @@ export async function getCacheSaveKey(
config,
codeQlVersion,
);
return `${restoreKeyPrefix}${runId}-${attemptId}-${sha}`;
return `${restoreKeyPrefix}${sha}-${runId}-${attemptId}`;
}
/**