feat: align AI configuration and task trunk concurrency with shared schema
This commit is contained in:
+4
-1
@@ -4,6 +4,9 @@ set -eu
|
||||
profile=${COVER_PROFILE:-/tmp/go-sip-coverage.out}
|
||||
business_profile=${COVER_BUSINESS_PROFILE:-/tmp/go-sip-coverage-business.out}
|
||||
|
||||
GOMAXPROCS=${GOMAXPROCS:-2} go test -p 1 -coverpkg=./... -coverprofile="$profile" ./...
|
||||
# Coverage patterns also match local module replacements. Instrument only
|
||||
# this module's explicit package list, not the checked-in third-party SDK.
|
||||
packages=$(go list ./... | paste -sd, -)
|
||||
GOMAXPROCS=${GOMAXPROCS:-2} go test -p 1 -coverpkg="$packages" -coverprofile="$profile" ./...
|
||||
awk 'NR == 1 || index($0, "/gen/") == 0' "$profile" > "$business_profile"
|
||||
go tool cover -func="$business_profile"
|
||||
|
||||
Reference in New Issue
Block a user