Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit30aca6f

Browse files
committed
warm cache as its own make target
1 parent0b45a92 commit30aca6f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎Makefile‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,16 +1020,19 @@ endif
10201020

10211021
TEST_PACKAGES ?= ./...
10221022

1023-
test:
1023+
warm-go-cache-db-cleaner:
10241024
# ensure Go's build cache for the cleanercmd is fresh so that tests don't have to build from scratch. This
10251025
# could take some time and counts against the test's timeout, which can lead to flakes.
10261026
# c.f. https://github.com/coder/internal/issues/1026
10271027
mkdir -p build
10281028
$(GIT_FLAGS) go build -o ./build/cleaner github.com/coder/coder/v2/coderd/database/dbtestutil/cleanercmd
1029+
.PHONY: warm-go-cache-db-cleaner
1030+
1031+
test: warm-go-cache-db-cleaner
10291032
$(GIT_FLAGS) gotestsum --format standard-quiet$(GOTESTSUM_RETRY_FLAGS) --packages="$(TEST_PACKAGES)" --$(GOTEST_FLAGS)
10301033
.PHONY: test
10311034

1032-
test-cli:
1035+
test-cli: warm-go-cache-db-cleaner
10331036
$(MAKE)test TEST_PACKAGES="./cli..."
10341037
.PHONY: test-cli
10351038

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp