AWS BASE STACK for tests

pull/479/head
Frostebite 2022-12-09 22:41:06 +00:00
parent aa7cb2a59b
commit 8f7cb18d5d
3 changed files with 7 additions and 5 deletions

4
dist/index.js vendored
View File

@ -4030,7 +4030,7 @@ class Caching {
cacheArtifactName = cacheArtifactName.replace(' ', '');
const compressionSuffix = cloud_runner_1.default.buildParameters.useLz4Compression ? '.lz4' : '';
const startPath = process.cwd();
remote_client_logger_1.RemoteClientLogger.log(`Caching for ${path_1.default.basename(destinationFolder)}`);
remote_client_logger_1.RemoteClientLogger.log(`Caching for ${cloud_runner_1.default.buildParameters.useLz4Compression} ${path_1.default.basename(destinationFolder)}`);
try {
if (!(yield fileExists(cacheFolder))) {
yield fs_1.default.promises.mkdir(cacheFolder);
@ -4038,7 +4038,7 @@ class Caching {
if (!(yield fileExists(destinationFolder))) {
yield fs_1.default.promises.mkdir(destinationFolder);
}
const latestInBranch = yield (yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`))
const latestInBranch = yield (yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix} | head -1`))
.replace(/\n/g, ``)
.replace(`.tar${compressionSuffix}`, '');
process.chdir(cacheFolder);

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -102,7 +102,9 @@ export class Caching {
cacheArtifactName = cacheArtifactName.replace(' ', '');
const compressionSuffix = CloudRunner.buildParameters.useLz4Compression ? '.lz4' : '';
const startPath = process.cwd();
RemoteClientLogger.log(`Caching for ${path.basename(destinationFolder)}`);
RemoteClientLogger.log(
`Caching for ${CloudRunner.buildParameters.useLz4Compression} ${path.basename(destinationFolder)}`,
);
try {
if (!(await fileExists(cacheFolder))) {
await fs.promises.mkdir(cacheFolder);
@ -113,7 +115,7 @@ export class Caching {
}
const latestInBranch = await (
await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`)
await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix} | head -1`)
)
.replace(/\n/g, ``)
.replace(`.tar${compressionSuffix}`, '');