@@ -451,16 +451,21 @@ jobs:
451
451
# Postgres tends not to choke.
452
452
NUM_PARALLEL_PACKAGES=8
453
453
NUM_PARALLEL_TESTS=16
454
+ # Only the CLI and Agent are officially supported on Windows and the rest are too flaky
455
+ PACKAGES="./cli/... ./enterprise/cli/... ./agent/..."
454
456
elif [ "${{ runner.os }}" == "macOS" ]; then
455
457
# Our macOS runners have 8 cores. We set NUM_PARALLEL_TESTS to 16
456
458
# because the tests complete faster and Postgres doesn't choke. It seems
457
459
# that macOS's tmpfs is faster than the one on Windows.
458
460
NUM_PARALLEL_PACKAGES=8
459
461
NUM_PARALLEL_TESTS=16
462
+ # Only the CLI and Agent are officially supported on macOS and the rest are too flaky
463
+ PACKAGES="./cli/... ./enterprise/cli/... ./agent/..."
460
464
elif [ "${{ runner.os }}" == "Linux" ]; then
461
465
# Our Linux runners have 8 cores.
462
466
NUM_PARALLEL_PACKAGES=8
463
467
NUM_PARALLEL_TESTS=8
468
+ PACKAGES="./..."
464
469
fi
465
470
466
471
# by default, run tests with cache
@@ -477,10 +482,7 @@ jobs:
477
482
# invalidated. See scripts/normalize_path.sh for more details.
478
483
normalize_path_with_symlinks "$RUNNER_TEMP/sym" "$(dirname $(which terraform))"
479
484
480
- # We rerun failing tests to counteract flakiness coming from Postgres
481
- # choking on macOS and Windows sometimes.
482
- gotestsum --rerun-fails=2 --rerun-fails-max-failures=50 \
483
- --format standard-quiet --packages "./..." \
485
+ gotestsum --format standard-quiet --packages "$PACKAGES" \
484
486
-- -timeout=20m -v -p $NUM_PARALLEL_PACKAGES -parallel=$NUM_PARALLEL_TESTS $TESTCOUNT
485
487
486
488
-name :Upload Go Build Cache
@@ -550,7 +552,6 @@ jobs:
550
552
env :
551
553
POSTGRES_VERSION :" 17"
552
554
TS_DEBUG_DISCO :" true"
553
- TEST_RETRIES :2
554
555
run :|
555
556
make test-postgres
556
557
@@ -604,7 +605,7 @@ jobs:
604
605
POSTGRES_VERSION :" 17"
605
606
run :|
606
607
make test-postgres-docker
607
- gotestsum --junitfile="gotests.xml" --packages="./..." --rerun-fails=2 --rerun-fails-abort-on-data-race -- -race -parallel 4 -p 4
608
+ gotestsum --junitfile="gotests.xml" --packages="./..." -- -race -parallel 4 -p 4
608
609
609
610
-name :Upload Test Cache
610
611
uses :./.github/actions/test-cache/upload
@@ -726,7 +727,6 @@ jobs:
726
727
if :${{ !matrix.variant.premium }}
727
728
env :
728
729
DEBUG :pw:api
729
- CODER_E2E_TEST_RETRIES :2
730
730
working-directory :site
731
731
732
732
# Run all of the tests with a premium license
@@ -736,7 +736,6 @@ jobs:
736
736
DEBUG :pw:api
737
737
CODER_E2E_LICENSE :${{ secrets.CODER_E2E_LICENSE }}
738
738
CODER_E2E_REQUIRE_PREMIUM_TESTS :" 1"
739
- CODER_E2E_TEST_RETRIES :2
740
739
working-directory :site
741
740
742
741
-name :Upload Playwright Failed Tests