Max workspaces and strong consistency locks
parent
6beb4d0ba9
commit
b8daa46233
|
|
@ -3652,7 +3652,7 @@ mkdir -p /data/cache
|
||||||
cp -a /github/workspace/cloud-runner-cache/. ${sharedFolder}
|
cp -a /github/workspace/cloud-runner-cache/. ${sharedFolder}
|
||||||
${commands}
|
${commands}
|
||||||
cp -a ${sharedFolder}. /github/workspace/cloud-runner-cache/
|
cp -a ${sharedFolder}. /github/workspace/cloud-runner-cache/
|
||||||
`;
|
`;
|
||||||
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, fileContents, {
|
fs_1.writeFileSync(`${workspace}/${entrypointFilePath}`, fileContents, {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -95,7 +95,7 @@ mkdir -p /data/cache
|
||||||
cp -a /github/workspace/cloud-runner-cache/. ${sharedFolder}
|
cp -a /github/workspace/cloud-runner-cache/. ${sharedFolder}
|
||||||
${commands}
|
${commands}
|
||||||
cp -a ${sharedFolder}. /github/workspace/cloud-runner-cache/
|
cp -a ${sharedFolder}. /github/workspace/cloud-runner-cache/
|
||||||
`;
|
`;
|
||||||
writeFileSync(`${workspace}/${entrypointFilePath}`, fileContents, {
|
writeFileSync(`${workspace}/${entrypointFilePath}`, fileContents, {
|
||||||
flag: 'w',
|
flag: 'w',
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ describe('Cloud Runner Locking', () => {
|
||||||
expect(isExpectedLockedAfterLocking).toBeTruthy();
|
expect(isExpectedLockedAfterLocking).toBeTruthy();
|
||||||
const locksBeforeRelease = await SharedWorkspaceLocking.GetAllLocks(newWorkspaceName, buildParameters);
|
const locksBeforeRelease = await SharedWorkspaceLocking.GetAllLocks(newWorkspaceName, buildParameters);
|
||||||
CloudRunnerLogger.log(JSON.stringify(locksBeforeRelease, undefined, 4));
|
CloudRunnerLogger.log(JSON.stringify(locksBeforeRelease, undefined, 4));
|
||||||
expect(locksBeforeRelease.length > 1).toBeTruthy();
|
expect(locksBeforeRelease.length === 1).toBeTruthy();
|
||||||
await SharedWorkspaceLocking.ReleaseWorkspace(newWorkspaceName, runId, buildParameters);
|
await SharedWorkspaceLocking.ReleaseWorkspace(newWorkspaceName, runId, buildParameters);
|
||||||
const locks = await SharedWorkspaceLocking.GetAllLocks(newWorkspaceName, buildParameters);
|
const locks = await SharedWorkspaceLocking.GetAllLocks(newWorkspaceName, buildParameters);
|
||||||
expect(locks.length === 1).toBeTruthy();
|
expect(locks.length === 1).toBeTruthy();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue