Skip to content

Commit 7a0e373

Browse files
Fix Go test coverage by removing the GOEXPERIMENT=nocoverageredesign (#8465)
* Fix Go test coverage by removing the `GOEXPERIMENT=nocoverageredesign` * Test * Disable in CI again
1 parent 6adba72 commit 7a0e373

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/go-cover.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ jobs:
2525
# Build list of packages to include in coverage, excluding generated code in 'proto/gen'
2626
PACKAGES=$(go list ./... | grep -v 'proto/gen/' | tr '\n' ',' | sed -e 's/,$//' | sed -e 's/github.com\/rilldata\/rill/./g')
2727
# Run tests with coverage output
28-
# NOTE(2024-03-01): Coverage fails on the generated code in 'proto/gen' without GOEXPERIMENT=nocoverageredesign. See https://github.com/golang/go/issues/55953.
29-
GOEXPERIMENT=nocoverageredesign go test ./... -short -v -race -covermode=atomic -coverprofile=coverage.out -coverpkg=$PACKAGES
28+
go test ./... -short -v -race -covermode=atomic -coverprofile=coverage.out -coverpkg=$PACKAGES
3029
env:
3130
RILL_RUNTIME_DRUID_TEST_DSN: ${{ secrets.RILL_RUNTIME_DRUID_TEST_DSN }}
3231
RILL_RUNTIME_BIGQUERY_TEST_GOOGLE_APPLICATION_CREDENTIALS_JSON: ${{ secrets.RILL_RUNTIME_BIGQUERY_TEST_GOOGLE_APPLICATION_CREDENTIALS_JSON }}

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@ coverage.go:
3636
rm -rf coverage/go.out
3737
mkdir -p coverage
3838
# Run tests with coverage output. First builds the list of packages to include in coverage, excluding generated code in 'proto/gen'.
39-
# NOTE(2024-03-01): Coverage fails on the generated code in 'proto/gen' without GOEXPERIMENT=nocoverageredesign. See https://github.com/golang/go/issues/55953.
4039
set -e ; \
4140
PACKAGES=$$(go list ./... | grep -v 'proto/gen/' | tr '\n' ',' | sed -e 's/,$$//' | sed -e 's/github.com\/rilldata\/rill/./g') ;\
42-
GOEXPERIMENT=nocoverageredesign go test ./... -short -v -coverprofile ./coverage/go.out -coverpkg $$PACKAGES
41+
go test ./... -short -v -coverprofile ./coverage/go.out -coverpkg $$PACKAGES
4342
go tool cover -func coverage/go.out
4443

4544
.PHONY: docs.generate

0 commit comments

Comments
 (0)