From d8e726a7905bb2027f66cbafa6684c716554ba48 Mon Sep 17 00:00:00 2001 From: Per-Kristian Nordnes Date: Fri, 27 Oct 2023 22:17:38 +0200 Subject: [PATCH] ci: remove shard sequencer, it was GitHub cache :tableflip: --- .github/workflows/test.yml | 2 +- package.json | 1 - shardSequencer.cjs | 9 --------- yarn.lock | 5 ----- 4 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 shardSequencer.cjs diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1c38fc89293..6f0b01bb763 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -124,7 +124,7 @@ jobs: run: | node -v npm -v - yarn test --silent --shard=${{ matrix.shardIndex}}/${{ matrix.shardTotal }} --testSequencer=../../../shardSequencer.cjs + yarn test --silent --shard=${{ matrix.shardIndex}}/${{ matrix.shardTotal }} env: SANITY_CI_CLI_AUTH_TOKEN: ${{ secrets.SANITY_CI_CLI_AUTH_TOKEN }} GITHUB_SHARD_IDENTIFIER: ${{ matrix.shardIndex }}-${{ matrix.shardTotal }} diff --git a/package.json b/package.json index 0d5bf821861..21bae3b54c0 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,6 @@ "@babel/preset-react": "^7.22.15", "@babel/preset-typescript": "^7.23.0", "@bjoerge/mutiny": "^0.0.2", - "@jest/test-sequencer": "^29.7.0", "@optimize-lodash/rollup-plugin": "^4.0.4", "@playwright/test": "^1.38.1", "@sanity/client": "^6.7.0", diff --git a/shardSequencer.cjs b/shardSequencer.cjs deleted file mode 100644 index c56152b98bb..00000000000 --- a/shardSequencer.cjs +++ /dev/null @@ -1,9 +0,0 @@ -'use strict' - -const Sequencer = require('@jest/test-sequencer').default - -module.exports = class JestShardSequencer extends Sequencer { - shard(tests) { - return tests.filter((test) => !test.path.includes('e2e')) - } -} diff --git a/yarn.lock b/yarn.lock index 932530882e8..18464094fba 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15999,11 +15999,6 @@ yargs@^17.3.0, yargs@^17.3.1: y18n "^5.0.5" yargs-parser "^21.1.1" -yarn@^1.22.19: - version "1.22.19" - resolved "https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz#4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447" - integrity sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ== - yauzl@^2.4.2: version "2.10.0" resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-2.10.0.tgz#c7eb17c93e112cb1086fa6d8e51fb0667b79a5f9"