Core Rule Set tests: only the concurrency test runs with the race detector (closes #306)
check / check (push) Successful in 3m36s
check / check (push) Successful in 3m36s
Of internal/coreruleset's tests, the race pass runs only those written to check concurrent inspection, selected by the name prefix TestConcurrent. Every other test of the package moves to the pass that runs the recorded requests, without the race detector. Other packages run under -race as before. The 90-second limit stays. Model: opus-5-5
This commit was merged in pull request #307.
This commit is contained in:
1 parent
e2b27d1c7c
commit
83f50dd11f
2 files changed
+26
-7
No files matched your search
@@ -702,8 +702,12 @@ on the host.
|
||||
- `script/projectname`: prints `smallwebwaf`, which the other scripts tag their
|
||||
images with.
|
||||
- `script/test`: checks that `go.mod` and `go.sum` are tidy, then runs the
|
||||
tests, as the `test` phase of the `Dockerfile`. It runs them twice: once with
|
||||
the race detector, and once without it for the recorded requests. `make test`.
|
||||
tests, as the `test` phase of the `Dockerfile`, in two passes. `make test`.
|
||||
- The first runs every package's tests with the race detector. Of the Core
|
||||
Rule Set's tests, it runs only those written to check concurrent
|
||||
inspection, whose names start with `TestConcurrent`.
|
||||
- The second runs the Core Rule Set's other tests without the race detector,
|
||||
the recorded requests among them.
|
||||
- `script/tidy`: writes `go.mod` and `go.sum` as `go mod tidy` writes them, in
|
||||
the `tidy` stage of the `Dockerfile`. `make tidy`.
|
||||
- `script/lint`: runs golangci-lint, as the `lint` phase of the `Dockerfile`.
|
||||
|
||||
Reference in new issue
Block a user