Skip to content

Commit

Permalink
ci: run perf nuts as separate tests
Browse files Browse the repository at this point in the history
* ci: try windows perf-scale nuts differences

* ci: retries, no eda

* ci: set session dir

* ci: undo sessionDir sets

* ci: sleep before cleaning sessionDir

* ci: fatal log-level

* ci: 3 separate run steps

* ci: no quotes

* chore: restore unneeded changes
  • Loading branch information
mshanemc authored Oct 3, 2023
1 parent 617c443 commit becea57
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/perfScaleNut.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/nuts/scale/lotsOfClassesOneDir.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe(`handles ${classCount.toLocaleString()} classes (${(
before(async () => {
session = await TestSession.create({
project: {
name: 'lotsOfClasses',
name: 'lotsOfClassesOneDir',
},
devhubAuthStrategy: 'NONE',
});
Expand Down

0 comments on commit becea57

Please sign in to comment.