@@ -454,30 +454,28 @@ jobs:
454
454
# running in parallel, and dbtestutil.NewDB starts to take more than
455
455
# 10s to complete sometimes causing test timeouts. With 16x8=128 tests
456
456
# Postgres tends not to choke.
457
- NUM_PARALLEL_PACKAGES =8
458
- NUM_PARALLEL_TESTS =16
457
+ export TEST_NUM_PARALLEL_PACKAGES =8
458
+ export TEST_NUM_PARALLEL_TESTS =16
459
459
# Only the CLI and Agent are officially supported on Windows and the rest are too flaky
460
- PACKAGES ="./cli/... ./enterprise/cli/... ./agent/..."
460
+ export TEST_PACKAGES ="./cli/... ./enterprise/cli/... ./agent/..."
461
461
elif [ "${{ runner.os }}" == "macOS" ]; then
462
462
# Our macOS runners have 8 cores. We set NUM_PARALLEL_TESTS to 16
463
463
# because the tests complete faster and Postgres doesn't choke. It seems
464
464
# that macOS's tmpfs is faster than the one on Windows.
465
- NUM_PARALLEL_PACKAGES =8
466
- NUM_PARALLEL_TESTS =16
465
+ export TEST_NUM_PARALLEL_PACKAGES =8
466
+ export TEST_NUM_PARALLEL_TESTS =16
467
467
# Only the CLI and Agent are officially supported on macOS and the rest are too flaky
468
- PACKAGES ="./cli/... ./enterprise/cli/... ./agent/..."
468
+ export TEST_PACKAGES ="./cli/... ./enterprise/cli/... ./agent/..."
469
469
elif [ "${{ runner.os }}" == "Linux" ]; then
470
470
# Our Linux runners have 8 cores.
471
- NUM_PARALLEL_PACKAGES=8
472
- NUM_PARALLEL_TESTS=8
473
- PACKAGES="./..."
471
+ export TEST_NUM_PARALLEL_PACKAGES=8
472
+ export TEST_NUM_PARALLEL_TESTS=8
474
473
fi
475
474
476
475
# by default, run tests with cache
477
- TESTCOUNT=""
478
476
if [ "${{ github.ref }}" == "refs/heads/main" ]; then
479
477
# on main, run tests without cache
480
- TESTCOUNT="-count= 1"
478
+ export TEST_COUNT=" 1"
481
479
fi
482
480
483
481
mkdir -p "$RUNNER_TEMP/sym"
@@ -487,8 +485,7 @@ jobs:
487
485
# invalidated. See scripts/normalize_path.sh for more details.
488
486
normalize_path_with_symlinks "$RUNNER_TEMP/sym" "$(dirname $(which terraform))"
489
487
490
- gotestsum --format standard-quiet --packages "$PACKAGES" \
491
- -- -timeout=20m -v -p $NUM_PARALLEL_PACKAGES -parallel=$NUM_PARALLEL_TESTS $TESTCOUNT
488
+ make test
492
489
493
490
- name : Upload failed test db dumps
494
491
uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
0 commit comments