From 3423f66520fcace7c515a1feceaa8bc366e8b8b5 Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Thu, 7 Nov 2024 20:29:14 -0500 Subject: [PATCH] Revert "shard tests to try to narrow down WOA lockup" This reverts commit a1806583769678491814cb8b008131c32be4e8fb. --- .github/workflows/pipeline-segment-electron-test.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pipeline-segment-electron-test.yml b/.github/workflows/pipeline-segment-electron-test.yml index 3fcff61889..10a9534fde 100644 --- a/.github/workflows/pipeline-segment-electron-test.yml +++ b/.github/workflows/pipeline-segment-electron-test.yml @@ -50,7 +50,7 @@ jobs: fail-fast: false matrix: build-type: ${{ inputs.target-platform == 'macos' && fromJSON('["darwin","mas"]') || (inputs.target-platform == 'windows' && fromJSON('["windows"]') || fromJSON('["linux"]')) }} - shard: ${{ inputs.target-platform != 'macos' && fromJSON('[1, 2, 3, 4]') || fromJSON('[1, 2]') }} + shard: ${{ inputs.target-platform == 'linux' && fromJSON('[1, 2, 3]') || fromJSON('[1, 2]') }} env: BUILD_TYPE: ${{ matrix.build-type }} TARGET_ARCH: ${{ inputs.target-arch }} @@ -191,7 +191,7 @@ jobs: cd src/electron export ELECTRON_TEST_RESULTS_DIR=`pwd`/junit # Get which tests are on this shard - tests_files=$(node script/split-tests ${{ matrix.shard }} ${{ inputs.target-platform == 'macos' && 2 || 4 }}) + tests_files=$(node script/split-tests ${{ matrix.shard }} ${{ inputs.target-platform == 'macos' && 2 || 3 }}) # Run tests if [ "`uname`" = "Darwin" ]; then @@ -225,13 +225,12 @@ jobs: cd src\electron echo ELECTRON_TEST_RESULTS_DIR=$PWD\junit >> $env:GITHUB_ENV # Get which tests are on this shard - $tests_files=node script\split-tests ${{ matrix.shard }} 4 + $tests_files=node script\split-tests ${{ matrix.shard }} 2 echo tests_files=$tests_files >> $env:GITHUB_ENV if ('${{ inputs.target-arch }}' -eq 'x86') { echo npm_config_arch=ia32 >> $env:GITHUB_ENV } - name: Run Electron Tests (Windows) - timeout-minutes: 20 if: ${{ inputs.target-platform == 'windows' }} shell: cmd env: