Skip to content

Commit

Permalink
Use a separate GOCACHE for config and config-next (#7136)
Browse files Browse the repository at this point in the history
`t.sh` and `tn.sh` now each use a distinct GOCACHE. This causes
back-to-back invocations of the unittests in config and config-next
to not incorrectly skip tests whose behavior changes between
those two environments.
  • Loading branch information
pgporada authored Nov 7, 2023
1 parent 16081d8 commit d9b97c7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker-compose.next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ services:
FAKE_DNS: 10.77.77.77
BOULDER_CONFIG_DIR: &boulder_config_dir test/config-next
GOFLAGS: -mod=vendor
GOCACHE: /boulder/.gocache/go-build-next
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
# FAKE_DNS: 172.17.0.1
FAKE_DNS: 10.77.77.77
BOULDER_CONFIG_DIR: test/config
GOCACHE: /boulder/.gocache/go-build
GOFLAGS: -mod=vendor
# Forward the parent env's GOEXPERIMENT value into the container.
GOEXPERIMENT: ${GOEXPERIMENT}
Expand Down
1 change: 1 addition & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ trap "print_outcome" EXIT
settings="$(cat -- <<-EOM
RUN: ${RUN[@]}
BOULDER_CONFIG_DIR: $BOULDER_CONFIG_DIR
GOCACHE: $(go env GOCACHE)
UNIT_PACKAGES: ${UNIT_PACKAGES[@]}
UNIT_FLAGS: ${UNIT_FLAGS[@]}
FILTER: ${FILTER[@]}
Expand Down

0 comments on commit d9b97c7

Please sign in to comment.