fix(ci): keep the push suite inside the runner's memory and time budget
Test / test (push) Successful in 2m55s
Test / test (push) Successful in 2m55s
Assisted-by: GLM 5.3 Flash
This commit is contained in:
+7
-5
@@ -46,11 +46,13 @@ func FuzzParse(f *testing.F) {
|
||||
f.Add("TEXT ·f(SB), $0\n\tMOVD $(1<<0|1<<9), R0\n\tRET\n") // constant expression
|
||||
f.Add("TEXT ·f(SB), $0\n\tADD $-8, R10; SUB $~63, R11\n\tRET\n")
|
||||
// Constant-expression nesting: an immediate and a displacement read
|
||||
// through the recursive folder, so deep parenthesis groups probe its
|
||||
// depth handling on every plain run. The immediate seed is deep enough
|
||||
// that, before the folder carried a depth bound, it grew the goroutine
|
||||
// stack past its limit with a fatal error.
|
||||
f.Add("TEXT ·f(SB), $0\n\tMOVD $" + strings.Repeat("(", 4_000_000) + "1" + strings.Repeat(")", 4_000_000) + ", R0\n\tRET\n")
|
||||
// through the recursive folder, so parenthesis groups past the folder's
|
||||
// depth bound probe its fallback on every plain run. The seeds sit just
|
||||
// above the bound (maxFoldDepth), not in the millions: a seed corpus
|
||||
// runs on every `go test` including the small-memory CI runner, and an
|
||||
// eight-million-token seed costs the process close to a gigabyte before
|
||||
// the bound even engages. The megascale belongs to the fuzz timebox.
|
||||
f.Add("TEXT ·f(SB), $0\n\tMOVD $" + strings.Repeat("(", 1500) + "1" + strings.Repeat(")", 1500) + ", R0\n\tRET\n")
|
||||
f.Add("TEXT ·f(SB), $0\n\tMOVQ " + strings.Repeat("(", 2000) + "1" + strings.Repeat(")", 2000) + "(AX), BX\n\tRET\n")
|
||||
f.Add("TEXT ·f(SB), $0\n\tMOVD $" + strings.Repeat("~", 5000) + "1, R0\n\tRET\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user