ci: fix flaky tests (#2033)

* ci: fix flaky tests

* chore: remove useless deps

* chore: decresse worker_threads counts
This commit is contained in:
LongYinan 2024-04-10 15:43:05 +08:00 committed by GitHub
parent e86e3add2b
commit 67f03a7fd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 27 additions and 1073 deletions

View file

@ -439,9 +439,6 @@ jobs:
image: ${{ steps.image-name.outputs.docker-image }} image: ${{ steps.image-name.outputs.docker-image }}
options: ${{ matrix.settings.args }} -v ${{ github.workspace }}/cores:/cores -v ${{ github.workspace }}:/build -w /build options: ${{ matrix.settings.args }} -v ${{ github.workspace }}/cores:/cores -v ${{ github.workspace }}:/build -w /build
run: >- run: >-
ulimit -c &&
ulimit -c unlimited &&
ulimit -c &&
${{ matrix.settings.without-lerna && 'yarn test:without-lerna' || 'yarn test' }} ${{ matrix.settings.without-lerna && 'yarn test:without-lerna' || 'yarn test' }}
- name: List files - name: List files
run: | run: |

View file

@ -21,7 +21,7 @@ const concurrency = process.env.WASI_TEST
// @ts-expect-error // @ts-expect-error
process?.report?.getReport()?.header?.glibcVersionRuntime) process?.report?.getReport()?.header?.glibcVersionRuntime)
? 50 ? 50
: 10 : 3
t('should be able to require in worker thread', async (t) => { t('should be able to require in worker thread', async (t) => {
await Promise.all( await Promise.all(

View file

@ -77,9 +77,6 @@
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"electron": "^29.0.1", "electron": "^29.0.1",
"esbuild": "^0.20.0", "esbuild": "^0.20.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^9.0.7", "husky": "^9.0.7",
"lerna": "^8.0.2", "lerna": "^8.0.2",
"lint-staged": "^15.2.1", "lint-staged": "^15.2.1",

1092
yarn.lock

File diff suppressed because it is too large Load diff