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