@@ -88,7 +88,7 @@ func executeBlockingSessionQuery(mysqlPerfConfig MysqlPerformanceConfig) error {
8888 log .SetLevel (log .DebugLevel )
8989 }
9090
91- masterErr := helpers .WaitForPort (* perfContainer , mysqlPerfConfig .Hostname , * port , 60 * time .Second )
91+ masterErr := helpers .WaitForPort (* perfContainer , mysqlPerfConfig .Hostname , * port , 120 * time .Second )
9292 if masterErr != nil {
9393 return masterErr
9494 }
@@ -255,6 +255,11 @@ func runValidMysqlPerfConfigTest(t *testing.T, args []string, outputMetricsFile
255255 } else {
256256 t .Logf ("Output line %d empty - skipping schema validation for %s" , idx , name )
257257 }
258+
259+ // For CI environments: WaitEventsMetrics might be legitimately empty
260+ if name == "WaitEventsMetrics" {
261+ t .Logf ("WaitEventsMetrics empty in CI environment - this is expected due to resource constraints" )
262+ }
258263 }
259264 }
260265
@@ -271,6 +276,13 @@ func runValidMysqlPerfConfigTest(t *testing.T, args []string, outputMetricsFile
271276 for _ , outputConfig := range outputMetricsConfigs {
272277 schemaPath := filepath .Join ("json-schema-performance-files" , outputConfig .schemaFileName )
273278 err := jsonschema .Validate (schemaPath , outputConfig .stdout )
279+ if err != nil {
280+ // Debug: Print the actual JSON output causing validation failure
281+ t .Logf ("VALIDATION FAILURE for %s:" , outputConfig .name )
282+ t .Logf ("Schema file: %s" , outputConfig .schemaFileName )
283+ t .Logf ("Actual JSON output: %s" , outputConfig .stdout )
284+ t .Logf ("Validation error: %v" , err )
285+ }
274286 require .NoError (t , err , "The output of MySQL integration doesn't have expected format for %s" , outputConfig .name )
275287 }
276288 }
0 commit comments