diff --git a/.github/workflows/perfScaleNut.yml b/.github/workflows/perfScaleNut.yml index 7ac0b31f6f..bf9d70deb2 100644 --- a/.github/workflows/perfScaleNut.yml +++ b/.github/workflows/perfScaleNut.yml @@ -20,10 +20,18 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: + node-version: lts/* cache: yarn - - run: npm install -g @salesforce/cli --omit=dev - - run: yarn install - - run: yarn test:nuts:scale + - uses: nick-fields/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd + name: add CLI as global dependency + with: + command: npm install @salesforce/cli@nightly -g + timeout_minutes: 60 + - uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main + - run: | + yarn mocha test/nuts/scale/eda.nut.ts --timeout 500000 + yarn mocha test/nuts/scale/lotsOfClasses.nut.ts --timeout 500000 + yarn mocha test/nuts/scale/lotsOfClassesOneDir.nut.ts --timeout 500000 # Run `github-action-benchmark` action - name: Store benchmark result diff --git a/package.json b/package.json index 05b709ec92..0517640f11 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,6 @@ "repl": "node --inspect ./scripts/repl.js", "test": "wireit", "test:nuts": "mocha \"test/nuts/local/**/*.nut.ts\" --timeout 500000", - "test:nuts:scale": "mocha \"test/nuts/scale/eda.nut.ts\" --timeout 500000; mocha \"test/nuts/scale/lotsOfClasses.nut.ts\" --timeout 500000; mocha \"test/nuts/scale/lotsOfClassesOneDir.nut.ts\" --timeout 500000", "test:nuts:suggest": "mocha \"test/nuts/suggestType/suggestType.nut.ts\" --timeout 10000", "test:only": "wireit", "test:registry": "mocha ./test/registry/registryCompleteness.test.ts --timeout 50000", diff --git a/test/nuts/scale/lotsOfClassesOneDir.nut.ts b/test/nuts/scale/lotsOfClassesOneDir.nut.ts index 2060795d84..775b10f296 100644 --- a/test/nuts/scale/lotsOfClassesOneDir.nut.ts +++ b/test/nuts/scale/lotsOfClassesOneDir.nut.ts @@ -29,7 +29,7 @@ describe(`handles ${classCount.toLocaleString()} classes (${( before(async () => { session = await TestSession.create({ project: { - name: 'lotsOfClasses', + name: 'lotsOfClassesOneDir', }, devhubAuthStrategy: 'NONE', });