Skip to content

Commit 344253a

Browse files
committed
chore(ci): disable PGO in tests and exclude fixture-heavy files from GitGuardian
1 parent 9758900 commit 344253a

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

.gitguardian.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ version: 2
22

33
secret:
44
ignored_paths:
5+
- .env.example
6+
- docker-compose.yml
7+
- scripts/loadmix/
58
- cmd/migrate/main_test.go
9+
- internal/auth/password_schemes_test.go
10+
- internal/auth/auth_test.go
611
ignored_matches:
712
- name: OAuth client secret used only in API documentation examples
813
match: 3K7mDzX434GbFm9YAePJ9FXQNjT6MF0U

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,11 @@ jobs:
4646
cache: true
4747

4848
- name: Run tests
49-
run: go test -race -shuffle=on -coverprofile=coverage.out -covermode=atomic ./...
49+
# -pgo=off: the test build must not pick up cmd/api/default.pgo. PGO +
50+
# -race/-cover on the same package is a known source of linker
51+
# "fingerprint mismatch" flake; tests don't need profile-guided
52+
# optimization (it only shapes the production binary).
53+
run: go test -race -shuffle=on -pgo=off -coverprofile=coverage.out -covermode=atomic ./...
5054

5155
build:
5256
name: build

0 commit comments

Comments
 (0)