Skip to content

Commit cbcae45

Browse files
committed
Reorder components of overlay-base cache key postfix
1 parent b4ce335 commit cbcae45

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/analyze-action.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/overlay-database-utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ test("overlay-base database cache keys remain stable", async (t) => {
276276

277277
const saveKey = await getCacheSaveKey(config, codeQlVersion, "checkout-path");
278278
const expectedSaveKey =
279-
"codeql-overlay-base-database-1-c5666c509a2d9895-javascript_python-2.23.0-12345-1-abc123def456";
279+
"codeql-overlay-base-database-1-c5666c509a2d9895-javascript_python-2.23.0-abc123def456-12345-1";
280280
t.is(
281281
saveKey,
282282
expectedSaveKey,

src/overlay-database-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ export async function getCacheSaveKey(
465465
config,
466466
codeQlVersion,
467467
);
468-
return `${restoreKeyPrefix}${runId}-${attemptId}-${sha}`;
468+
return `${restoreKeyPrefix}${sha}-${runId}-${attemptId}`;
469469
}
470470

471471
/**

0 commit comments

Comments
 (0)