Skip to content

Commit

Permalink
Retry only failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit committed Oct 30, 2024
1 parent 6439bf9 commit a942613
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,10 @@ jobs:
GAS_REPORT: "./gas-<< parameters.chain-id >>-<< parameters.preset >>.csv"
command: |
TEST_FILES=$(circleci tests glob 'e2e/tests/<< parameters.toml >>/*.e2e.js')
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs yarn mocha --no-bail --exit"
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs yarn mocha --no-bail --exit --reporter mocha-junit-reporter --reporter-options mochaFile=tmp/junit.xml,outputs=true,toConsole=true"
- store_test_results:
path: "./tmp/junit.xml"

- store_artifacts:
path: "./debug-<< parameters.chain-id >>-<< parameters.preset >>.log"
Expand Down Expand Up @@ -419,7 +422,10 @@ jobs:
GAS_REPORT: "./gas-<< parameters.chain-id >>-<< parameters.preset >>.csv"
command: |
TEST_FILES=$(circleci tests glob 'e2e/tests/<< parameters.toml >>/*.e2e.js')
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs yarn mocha --no-bail --exit"
echo "$TEST_FILES" | circleci tests run --verbose --split-by=timings --command="xargs yarn mocha --no-bail --exit --reporter mocha-junit-reporter --reporter-options mochaFile=tmp/junit.xml,outputs=true,toConsole=true"
- store_test_results:
path: "./tmp/junit.xml"

- store_artifacts:
path: "./debug-<< parameters.chain-id >>-<< parameters.preset >>.log"
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"ethers": "^5.7.2",
"hardhat": "^2.22.14",
"mocha": "^10.7.3",
"mocha-junit-reporter": "^2.2.1",
"numbro": "^2.5.0",
"pako": "^2.1.0",
"prettier": "^3.3.3",
Expand Down
64 changes: 64 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,13 @@ __metadata:
languageName: node
linkType: hard

"charenc@npm:0.0.2":
version: 0.0.2
resolution: "charenc@npm:0.0.2"
checksum: 10/81dcadbe57e861d527faf6dd3855dc857395a1c4d6781f4847288ab23cffb7b3ee80d57c15bba7252ffe3e5e8019db767757ee7975663ad2ca0939bb8fcaf2e5
languageName: node
linkType: hard

"chokidar@npm:^3.5.3":
version: 3.6.0
resolution: "chokidar@npm:3.6.0"
Expand Down Expand Up @@ -1884,6 +1891,13 @@ __metadata:
languageName: node
linkType: hard

"crypt@npm:0.0.2":
version: 0.0.2
resolution: "crypt@npm:0.0.2"
checksum: 10/2c72768de3d28278c7c9ffd81a298b26f87ecdfe94415084f339e6632f089b43fe039f2c93f612bcb5ffe447238373d93b2e8c90894cba6cfb0ac7a74616f8b9
languageName: node
linkType: hard

"debug@npm:4, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.4, debug@npm:^4.3.5, debug@npm:^4.3.6, debug@npm:^4.3.7":
version: 4.3.7
resolution: "debug@npm:4.3.7"
Expand Down Expand Up @@ -2844,6 +2858,13 @@ __metadata:
languageName: node
linkType: hard

"is-buffer@npm:~1.1.6":
version: 1.1.6
resolution: "is-buffer@npm:1.1.6"
checksum: 10/f63da109e74bbe8947036ed529d43e4ae0c5fcd0909921dce4917ad3ea212c6a87c29f525ba1d17c0858c18331cf1046d4fc69ef59ed26896b25c8288a627133
languageName: node
linkType: hard

"is-core-module@npm:^2.13.0, is-core-module@npm:^2.5.0":
version: 2.13.1
resolution: "is-core-module@npm:2.13.1"
Expand Down Expand Up @@ -3246,6 +3267,17 @@ __metadata:
languageName: node
linkType: hard

"md5@npm:^2.3.0":
version: 2.3.0
resolution: "md5@npm:2.3.0"
dependencies:
charenc: "npm:0.0.2"
crypt: "npm:0.0.2"
is-buffer: "npm:~1.1.6"
checksum: 10/88dce9fb8df1a084c2385726dcc18c7f54e0b64c261b5def7cdfe4928c4ee1cd68695c34108b4fab7ecceb05838c938aa411c6143df9fdc0026c4ddb4e4e72fa
languageName: node
linkType: hard

"memorystream@npm:^0.3.1":
version: 0.3.1
resolution: "memorystream@npm:0.3.1"
Expand Down Expand Up @@ -3466,6 +3498,15 @@ __metadata:
languageName: node
linkType: hard

"mkdirp@npm:^3.0.0":
version: 3.0.1
resolution: "mkdirp@npm:3.0.1"
bin:
mkdirp: dist/cjs/src/bin.js
checksum: 10/16fd79c28645759505914561e249b9a1f5fe3362279ad95487a4501e4467abeb714fd35b95307326b8fd03f3c7719065ef11a6f97b7285d7888306d1bd2232ba
languageName: node
linkType: hard

"mnemonist@npm:^0.38.0":
version: 0.38.5
resolution: "mnemonist@npm:0.38.5"
Expand All @@ -3475,6 +3516,21 @@ __metadata:
languageName: node
linkType: hard

"mocha-junit-reporter@npm:^2.2.1":
version: 2.2.1
resolution: "mocha-junit-reporter@npm:2.2.1"
dependencies:
debug: "npm:^4.3.4"
md5: "npm:^2.3.0"
mkdirp: "npm:^3.0.0"
strip-ansi: "npm:^6.0.1"
xml: "npm:^1.0.1"
peerDependencies:
mocha: ">=2.2.5"
checksum: 10/f2e9db2daf4b5de8824ed557a7d6b534683558fadf843de6b4f96385c6edad239ee6194e81f5983809d7223b45f57c7af0337442552cab47103e9e92d5ee4cb3
languageName: node
linkType: hard

"mocha@npm:^10.0.0, mocha@npm:^10.7.3":
version: 10.7.3
resolution: "mocha@npm:10.7.3"
Expand Down Expand Up @@ -4598,6 +4654,7 @@ __metadata:
ethers: "npm:^5.7.2"
hardhat: "npm:^2.22.14"
mocha: "npm:^10.7.3"
mocha-junit-reporter: "npm:^2.2.1"
numbro: "npm:^2.5.0"
pako: "npm:^2.1.0"
prettier: "npm:^3.3.3"
Expand Down Expand Up @@ -5090,6 +5147,13 @@ __metadata:
languageName: node
linkType: hard

"xml@npm:^1.0.1":
version: 1.0.1
resolution: "xml@npm:1.0.1"
checksum: 10/6c4c31a1308e45732e5ac6b50edbca0e8f7abe5cb5de10215d8e3c688819fe7c7706e056f6fb59b1a23fdf1000c2d7a8bba0a89e94aa1796cd2376d9a5ba401e
languageName: node
linkType: hard

"y18n@npm:^5.0.5":
version: 5.0.8
resolution: "y18n@npm:5.0.8"
Expand Down

0 comments on commit a942613

Please sign in to comment.