coreruleset: time worst-case inspections against reference work (closes #400)
check / check (push) Failing after 3m52s
check / check (push) Failing after 3m52s
The worst-case inspection test compared each inspection with a fixed 1 second, so a busy host failed it at random. It now times, on the same thread and in processor time, a fixed regular-expression job just before and after each inspection. An inspection fails when it takes more than 13 times that job, about 1 second on an idle host. Model: opus-5-5
This commit is contained in:
1 parent
3c6b0d519f
commit
0e8472fc96
2 files changed
+84
-19
No files matched your search
@@ -12,6 +12,7 @@ require (
|
||||
github.com/oschwald/maxminddb-golang/v2 v2.7.0
|
||||
github.com/prometheus/client_golang v1.24.1
|
||||
github.com/spf13/viper v1.21.0
|
||||
golang.org/x/sys v0.48.0
|
||||
)
|
||||
|
||||
require (
|
||||
@@ -47,7 +48,6 @@ require (
|
||||
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba // indirect
|
||||
golang.org/x/net v0.60.0 // indirect
|
||||
golang.org/x/sync v0.23.0 // indirect
|
||||
golang.org/x/sys v0.48.0 // indirect
|
||||
golang.org/x/text v0.42.0 // indirect
|
||||
google.golang.org/protobuf v1.36.11 // indirect
|
||||
rsc.io/binaryregexp v0.2.0 // indirect
|
||||
|
||||
Reference in new issue
Block a user