@@ -37,7 +37,7 @@ const (
3737 defaultMaxConcurrency = 50
3838
3939 // Timeout for each spec's operations (generate, build, etc.)
40- specTimeout = 5 * time .Minute
40+ specTimeout = 10 * time .Minute
4141
4242 // Maximum number of error lines to show per failure
4343 maxErrorLines = 15
5050 // Specs that are known to be problematic (too large, timeout, etc.)
5151 // Add specs here to skip them in CI unless explicitly requested via SPEC env var
5252 skipSpecs = map [string ]bool {
53- // Example: "testdata/specs/3.0/aws/ec2.yaml ": true,
53+ // Example: "testdata/specs/3.0/aws/ec2.yml ": true,
5454 }
5555)
5656
@@ -306,7 +306,7 @@ output:
306306 output , err := genCmd .CombinedOutput ()
307307 if err != nil {
308308 if ctx .Err () == context .DeadlineExceeded {
309- recordFailure ("generate" , "oapi-codegen timed out after 2 minutes" )
309+ recordFailure ("generate" , "oapi-codegen timed out after %v" , specTimeout )
310310 } else {
311311 recordFailure ("generate" , "oapi-codegen failed:\n %s" , string (output ))
312312 }
@@ -354,7 +354,7 @@ output:
354354 output , err = cmd .CombinedOutput ()
355355 if err != nil {
356356 if ctx .Err () == context .DeadlineExceeded {
357- recordFailure ("mod-tidy" , "go mod tidy timed out after 2 minutes" )
357+ recordFailure ("mod-tidy" , "go mod tidy timed out after %v" , specTimeout )
358358 } else {
359359 recordFailure ("mod-tidy" , "go mod tidy failed:\n %s" , string (output ))
360360 }
@@ -373,7 +373,7 @@ output:
373373 output , err = cmd .CombinedOutput ()
374374 if err != nil {
375375 if ctx .Err () == context .DeadlineExceeded {
376- recordFailure ("build" , "go build timed out after 2 minutes" )
376+ recordFailure ("build" , "go build timed out after %v" , specTimeout )
377377 } else {
378378 recordFailure ("build" , "go build failed:\n %s" , string (output ))
379379 }
0 commit comments