Skip to content

Commit 93628bb

Browse files
committed
Add extra validation when storing and restoring
Since we're supporting multi-path inputs: - Store must ensure caches exist for all inputs when it skips storing. - Restore must ensure caches exist for all inputs before it attempts restoring.
1 parent 2c59ebd commit 93628bb

6 files changed

Lines changed: 288 additions & 190 deletions

File tree

.idea/inspectionProfiles/Project_Default.xml

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

product/dist/Restore.js

Lines changed: 80 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

product/dist/Store.js

Lines changed: 80 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/Test/IntegrationTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('integration', () => {
4646

4747
// Verify that all files exist in the cache.
4848
for (const inputPath of Object.values(inputPaths)) {
49-
await fs.lstat(path.join(cacheDirPath, key, `${(await getLocalPath(inputPath)).name}${compress ? '.tar' : ''}`));
49+
await fs.lstat(path.join(cacheDirPath, key, `${(await getLocalPath(inputPath)).cacheName}${compress ? '.tar' : ''}`));
5050
}
5151

5252
// Restore and move the project directory to a different location.

0 commit comments

Comments
 (0)