parameterize s3
parent
9869723fb8
commit
903a125fab
|
|
@ -74,7 +74,6 @@ jobs:
|
||||||
CLOUD_RUNNER_CLUSTER: ${{ matrix.cloudRunnerCluster }}
|
CLOUD_RUNNER_CLUSTER: ${{ matrix.cloudRunnerCluster }}
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- run: yarn run test "cloud-runner-run-twice-retaining" --detectOpenHandles --forceExit --runInBand
|
- run: yarn run test "cloud-runner-run-twice-retaining" --detectOpenHandles --forceExit --runInBand
|
||||||
if: matrix.CloudRunnerCluster == 'aws' || matrix.CloudRunnerCluster == 'k8s'
|
|
||||||
timeout-minutes: 180
|
timeout-minutes: 180
|
||||||
env:
|
env:
|
||||||
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import CloudRunnerLogger from '../services/cloud-runner-logger';
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
import CloudRunnerOptions from '../cloud-runner-options';
|
import CloudRunnerOptions from '../cloud-runner-options';
|
||||||
import setups from './cloud-runner-suite.test';
|
import setups from './cloud-runner-suite.test';
|
||||||
|
import * as fs from 'fs';
|
||||||
|
|
||||||
async function CreateParameters(overrides) {
|
async function CreateParameters(overrides) {
|
||||||
if (overrides) {
|
if (overrides) {
|
||||||
|
|
@ -45,6 +46,11 @@ describe('Cloud Runner Caching', () => {
|
||||||
expect(results).not.toContain(cachePushFail);
|
expect(results).not.toContain(cachePushFail);
|
||||||
|
|
||||||
CloudRunnerLogger.log(`run 1 succeeded`);
|
CloudRunnerLogger.log(`run 1 succeeded`);
|
||||||
|
|
||||||
|
if (CloudRunnerOptions.cloudRunnerCluster === `local-docker`) {
|
||||||
|
const cacheFolderExists = fs.existsSync(`cloud-runner-cache/cache/${overrides.cacheKey}`);
|
||||||
|
expect(cacheFolderExists).toBeTruthy();
|
||||||
|
}
|
||||||
const buildParameter2 = await CreateParameters(overrides);
|
const buildParameter2 = await CreateParameters(overrides);
|
||||||
|
|
||||||
buildParameter2.cacheKey = buildParameter.cacheKey;
|
buildParameter2.cacheKey = buildParameter.cacheKey;
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,6 @@ import CloudRunnerLogger from '../services/cloud-runner-logger';
|
||||||
import { v4 as uuidv4 } from 'uuid';
|
import { v4 as uuidv4 } from 'uuid';
|
||||||
import CloudRunnerOptions from '../cloud-runner-options';
|
import CloudRunnerOptions from '../cloud-runner-options';
|
||||||
import setups from './cloud-runner-suite.test';
|
import setups from './cloud-runner-suite.test';
|
||||||
import { CloudRunnerSystem } from '../services/cloud-runner-system';
|
|
||||||
import * as fs from 'fs';
|
import * as fs from 'fs';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import { CloudRunnerFolders } from '../services/cloud-runner-folders';
|
import { CloudRunnerFolders } from '../services/cloud-runner-folders';
|
||||||
|
|
@ -47,7 +46,8 @@ describe('Cloud Runner Retain Workspace', () => {
|
||||||
expect(results).not.toContain(cachePushFail);
|
expect(results).not.toContain(cachePushFail);
|
||||||
|
|
||||||
if (CloudRunnerOptions.cloudRunnerCluster === `local-docker`) {
|
if (CloudRunnerOptions.cloudRunnerCluster === `local-docker`) {
|
||||||
CloudRunnerSystem.Run(`tree cloud-runner-cache -L 2 `);
|
const cacheFolderExists = fs.existsSync(`cloud-runner-cache/cache/${overrides.cacheKey}`);
|
||||||
|
expect(cacheFolderExists).toBeTruthy();
|
||||||
}
|
}
|
||||||
|
|
||||||
CloudRunnerLogger.log(`run 1 succeeded`);
|
CloudRunnerLogger.log(`run 1 succeeded`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue