1<testsuites>
2 <testsuite errors="0" failures="3" skipped="0" tests="47" time="0.001" name="/app/rosa/tests/integration/pkg/edge/psqlinjector/integration/integration_test_/integration_test">
3 <testcase classname="integration_test" name="TestDeleteOutdatedWatchedFieldObjects" time="62.080"></testcase>
4 <testcase classname="integration_test" name="TestDeleteOutdatedWatchedFieldObjects/TestDeleteOutdatedWatchedFieldObjects" time="12.360"></testcase>
5 <testcase classname="integration_test" name="TestDeleteOutdatedWatchedFieldObjects/TestDeleteOutdatedWatchedFieldObjects/create_and_set_watched_field_objects" time="8.330"></testcase>
6 <testcase classname="integration_test" name="TestDeleteOutdatedWatchedFieldObjects/TestDeleteOutdatedWatchedFieldObjects/handle_a_ScrapeMessage_for_each_cluster_to_delete_outdated_objects" time="0.680"></testcase>
7 <testcase classname="integration_test" name="TestDeleteOutdatedWatchedFieldObjects/TestDeleteOutdatedWatchedFieldObjects/handle_a_ScrapeMessage_that_does_not_mark_any_objects_deleted" time="0.550"></testcase>
8 <testcase classname="integration_test" name="TestDeleteOutdatedWatchedFieldObjects/TestDeleteOutdatedWatchedFieldObjects/verify_outdated_objects_were_deleted" time="2.340"></testcase>
9 <testcase classname="integration_test" name="TestGarbageCollectDeletedWatchedFieldObjects" time="63.980"></testcase>
10 <testcase classname="integration_test" name="TestGarbageCollectDeletedWatchedFieldObjects/TestGarbageCollectDeletedWatchedFieldObjects" time="13.840"></testcase>
11 <testcase classname="integration_test" name="TestGarbageCollectDeletedWatchedFieldObjects/TestGarbageCollectDeletedWatchedFieldObjects/create_and_set_watched_field_objects" time="11.280"></testcase>
12 <testcase classname="integration_test" name="TestGarbageCollectDeletedWatchedFieldObjects/TestGarbageCollectDeletedWatchedFieldObjects/garbage_collect_the_deleted_watched_fields" time="2.090"></testcase>
13 <testcase classname="integration_test" name="TestInjectorClusterHeartbeat" time="69.380">
14 <failure message="Failed" type="">=== RUN TestInjectorClusterHeartbeat
 heartbeat_test.go:23: start time 2024-07-17 07:23:12.831254 +0000 UTC
--- FAIL: TestInjectorClusterHeartbeat (69.38s)
</failure>
15 </testcase>
16 <testcase classname="integration_test" name="TestInjectorClusterHeartbeat/TestInjectorClusterHeartbeat" time="2.510">
17 <failure message="Failed" type="">=== RUN TestInjectorClusterHeartbeat/TestInjectorClusterHeartbeat
 --- FAIL: TestInjectorClusterHeartbeat/TestInjectorClusterHeartbeat (2.51s)
</failure>
18 </testcase>
19 <testcase classname="integration_test" name="TestInjectorClusterHeartbeat/TestInjectorClusterHeartbeat/run" time="0.000"></testcase>
20 <testcase classname="integration_test" name="TestInjectorClusterHeartbeat/TestInjectorClusterHeartbeat/send_heartbeat" time="0.030"></testcase>
21 <testcase classname="integration_test" name="TestInjectorClusterHeartbeat/TestInjectorClusterHeartbeat/verify_infra_status_updated_at_times" time="1.190">
22 <failure message="Failed" type="">=== RUN TestInjectorClusterHeartbeat/TestInjectorClusterHeartbeat/verify_infra_status_updated_at_times
{"severity":"INFO","time":"2024-07-17T07:24:19Z","message":"skipping garbage collection of deleted watched field objects","level":0,"logging.googleapis.com/sourceLocation":{"function":"edge-infra.dev/pkg/edge/psqlinjector.(*PSQLInjector).Run","file":"pkg/edge/psqlinjector/ps_server.go","line":59}}
{"severity":"INFO","time":"2024-07-17T07:24:19Z","logger":"addPubSubSubscriptions","message":"created subscriber","project_id":"baz","logging.googleapis.com/sourceLocation":{"function":"edge-infra.dev/pkg/edge/psqlinjector.(*PSQLInjector).addPubSubSubscribers.func1","file":"pkg/edge/psqlinjector/ps_server.go","line":145}}
{"severity":"INFO","time":"2024-07-17T07:24:19Z","logger":"addPubSubSubscriptions","message":"created subscriber","project_id":"foo","logging.googleapis.com/sourceLocation":{"function":"edge-infra.dev/pkg/edge/psqlinjector.(*PSQLInjector).addPubSubSubscribers.func1","file":"pkg/edge/psqlinjector/ps_server.go","line":145}}
{"severity":"INFO","time":"2024-07-17T07:24:19Z","logger":"addPubSubSubscriptions","message":"created subscriber","project_id":"bar","logging.googleapis.com/sourceLocation":{"function":"edge-infra.dev/pkg/edge/psqlinjector.(*PSQLInjector).addPubSubSubscribers.func1","file":"pkg/edge/psqlinjector/ps_server.go","line":145}}
{"severity":"INFO","time":"2024-07-17T07:24:19Z","message":"starting manager","level":0,"logging.googleapis.com/sourceLocation":{"function":"edge-infra.dev/pkg/edge/psqlinjector.(*PSQLInjector).Run","file":"pkg/edge/psqlinjector/ps_server.go","line":74}}
{"severity":"info","ts":"2024-07-17T07:24:19Z","message":"starting subscriber runnable","runnable":"subscriber","subscriptionId":"kinform-psqlinjector","projectId":"foo"}
{"severity":"info","ts":"2024-07-17T07:24:19Z","message":"starting server","kind":"health probe","addr":"127.0.0.1:33861"}
{"severity":"info","ts":"2024-07-17T07:24:19Z","message":"starting subscriber runnable","runnable":"subscriber","subscriptionId":"kinform-psqlinjector","projectId":"bar"}
{"severity":"info","ts":"2024-07-17T07:24:19Z","message":"starting server","path":"/metrics","kind":"metrics","addr":"127.0.0.1:43975"}
{"severity":"info","ts":"2024-07-17T07:24:19Z","message":"starting subscriber runnable","runnable":"subscriber","subscriptionId":"kinform-psqlinjector","projectId":"baz"}
{"severity":"INFO","time":"2024-07-17T07:24:20Z","message":"successfully updated cluster heartbeat","level":-1,"payload_type":"heartbeat","cluster_uuid":"e829bd16-c909-4382-87e1-23d3f0aa6011","level":-1,"cluster_version_major":0,"cluster_version_minor":0,"session_id":"67b34368-1ea0-4746-9800-5c3a7869dea8","level":0,"logging.googleapis.com/sourceLocation":{"function":"edge-infra.dev/pkg/edge/psqlinjector.(*PSQLInjector).handleClusterHeartbeat","file":"pkg/edge/psqlinjector/subscriber.go","line":206}}
 main_test.go:173: 
 	Error Trace:	pkg/edge/psqlinjector/integration/main_test.go:173
 	 				pkg/edge/psqlinjector/integration/heartbeat_test.go:67
 	 				test/f2/framework.go:288
 	 				test/f2/framework.go:274
 	Error: 	Received unexpected error:
 	 	sql: Scan error on column index 0, name "infra_status_updated_at": unsupported Scan, storing driver.Value type <nil> into type *time.Time
 	Test: 	TestInjectorClusterHeartbeat/TestInjectorClusterHeartbeat/verify_infra_status_updated_at_times
 	Messages: 	unable to query cluster infra_status_updated_at for projectID "bar"
{"severity":"info","ts":"2024-07-17T07:24:20Z","message":"stopping and waiting for runnables"}
{"severity":"info","ts":"2024-07-17T07:24:20Z","message":"wait completed, proceeding to shutdown the manager"}
{"severity":"ERROR","time":"2024-07-17T07:24:20Z","message":"failed to set cluster heartbeat in database","level":-1,"payload_type":"heartbeat","cluster_uuid":"5f60322e-3a4d-4525-b155-8c70b21ab034","level":-1,"cluster_version_major":0,"cluster_version_minor":0,"session_id":"67b34368-1ea0-4746-9800-5c3a7869dea8","error":"failed to update cluster \"5f60322e-3a4d-4525-b155-8c70b21ab034\" status time: failed to connect to `host=/tmp user=edge-test@ret-edge-pltf-infra.iam database=argo-cloudsql-database-44b880c0-2014-4403-ba3b-f2d57a717b72`: failed to receive message (timeout: context canceled)","level":2,"logging.googleapis.com/sourceLocation":{"function":"edge-infra.dev/pkg/edge/psqlinjector.(*PSQLInjector).handleClusterHeartbeat","file":"pkg/edge/psqlinjector/subscriber.go","line":202}}
{"severity":"ERROR","time":"2024-07-17T07:24:20Z","message":"failed to handle message","level":-1,"payload_type":"heartbeat","cluster_uuid":"5f60322e-3a4d-4525-b155-8c70b21ab034","error":"failed to update cluster \"5f60322e-3a4d-4525-b155-8c70b21ab034\" status time: failed to connect to `host=/tmp user=edge-test@ret-edge-pltf-infra.iam database=argo-cloudsql-database-44b880c0-2014-4403-ba3b-f2d57a717b72`: failed to receive message (timeout: context canceled)","level":2,"logging.googleapis.com/sourceLocation":{"function":"edge-infra.dev/pkg/edge/psqlinjector.(*PSQLInjector).HandleMsg","file":"pkg/edge/psqlinjector/subscriber.go","line":156}}
{"severity":"error","ts":"2024-07-17T07:24:20Z","message":"error handling message","runnable":"subscriber","subscriptionId":"kinform-psqlinjector","projectId":"baz","error":"failed to update cluster \"5f60322e-3a4d-4525-b155-8c70b21ab034\" status time: failed to connect to `host=/tmp user=edge-test@ret-edge-pltf-infra.iam database=argo-cloudsql-database-44b880c0-2014-4403-ba3b-f2d57a717b72`: failed to receive message (timeout: context canceled)","stacktrace":"edge-infra.dev/pkg/lib/runtime/subscriber.(*Subscriber).Start.func2.1\n\tpkg/lib/runtime/subscriber/subscriber.go:105\ncloud.google.com/go/pubsub.(*Subscription).Receive.func2.1\n\texternal/com_google_cloud_go_pubsub/subscription.go:1403\ncloud.google.com/go/pubsub/internal/scheduler.(*ReceiveScheduler).Add.func1\n\texternal/com_google_cloud_go_pubsub/internal/scheduler/receive_scheduler.go:84"}
{"severity":"ERROR","time":"2024-07-17T07:24:20Z","message":"failed to set cluster heartbeat in database","level":-1,"payload_type":"heartbeat","cluster_uuid":"efffaf84-8b9a-47bc-9324-22b4d0b788a8","level":-1,"cluster_version_major":0,"cluster_version_minor":0,"session_id":"67b34368-1ea0-4746-9800-5c3a7869dea8","error":"failed to update cluster \"efffaf84-8b9a-47bc-9324-22b4d0b788a8\" status time: timeout: context canceled","level":2,"logging.googleapis.com/sourceLocation":{"function":"edge-infra.dev/pkg/edge/psqlinjector.(*PSQLInjector).handleClusterHeartbeat","file":"pkg/edge/psqlinjector/subscriber.go","line":202}}
{"severity":"ERROR","time":"2024-07-17T07:24:20Z","message":"failed to handle message","level":-1,"payload_type":"heartbeat","cluster_uuid":"efffaf84-8b9a-47bc-9324-22b4d0b788a8","error":"failed to update cluster \"efffaf84-8b9a-47bc-9324-22b4d0b788a8\" status time: timeout: context canceled","level":2,"logging.googleapis.com/sourceLocation":{"function":"edge-infra.dev/pkg/edge/psqlinjector.(*PSQLInjector).HandleMsg","file":"pkg/edge/psqlinjector/subscriber.go","line":156}}
{"severity":"error","ts":"2024-07-17T07:24:20Z","message":"error handling message","runnable":"subscriber","subscriptionId":"kinform-psqlinjector","projectId":"bar","error":"failed to update cluster \"efffaf84-8b9a-47bc-9324-22b4d0b788a8\" status time: timeout: context canceled","stacktrace":"edge-infra.dev/pkg/lib/runtime/subscriber.(*Subscriber).Start.func2.1\n\tpkg/lib/runtime/subscriber/subscriber.go:105\ncloud.google.com/go/pubsub.(*Subscription).Receive.func2.1\n\texternal/com_google_cloud_go_pubsub/subscription.go:1403\ncloud.google.com/go/pubsub/internal/scheduler.(*ReceiveScheduler).Add.func1\n\texternal/com_google_cloud_go_pubsub/internal/scheduler/receive_scheduler.go:84"}
{"severity":"info","ts":"2024-07-17T07:24:21Z","message":"shutting down subscriber runnable","runnable":"subscriber","subscriptionId":"kinform-psqlinjector","projectId":"bar"}
{"severity":"info","ts":"2024-07-17T07:24:21Z","message":"shutting down subscriber runnable","runnable":"subscriber","subscriptionId":"kinform-psqlinjector","projectId":"baz"}
{"severity":"info","ts":"2024-07-17T07:24:21Z","message":"shutting down subscriber runnable","runnable":"subscriber","subscriptionId":"kinform-psqlinjector","projectId":"foo"}
 --- FAIL: TestInjectorClusterHeartbeat/TestInjectorClusterHeartbeat/verify_infra_status_updated_at_times (1.19s)
</failure>
23 </testcase>
24 <testcase classname="integration_test" name="TestSQLDeleteWatchedField" time="49.820"></testcase>
25 <testcase classname="integration_test" name="TestSQLDeleteWatchedField/TestSQLDeleteWatchedField" time="1.160"></testcase>
26 <testcase classname="integration_test" name="TestSQLDeleteWatchedField/TestSQLDeleteWatchedField/delete_watched_field" time="0.320"></testcase>
27 <testcase classname="integration_test" name="TestSQLDeleteWatchedField/TestSQLDeleteWatchedField/set_watched_fields" time="0.640"></testcase>
28 <testcase classname="integration_test" name="TestSQLGetProjectIDs" time="88.530"></testcase>
29 <testcase classname="integration_test" name="TestSQLGetProjectIDs/TestSQLGetProjectIDs" time="0.680"></testcase>
30 <testcase classname="integration_test" name="TestSQLGetProjectIDs/TestSQLGetProjectIDs/GetBannerProjectIDs" time="0.620"></testcase>
31 <testcase classname="integration_test" name="TestSQLGetProjectIDs/TestSQLGetProjectIDs/empty" time="0.060"></testcase>
32 <testcase classname="integration_test" name="TestSQLSetClusterHeartbeatTime" time="118.000"></testcase>
33 <testcase classname="integration_test" name="TestSQLSetClusterHeartbeatTime/TestSQLSetClusterHeartbeatTime" time="1.500"></testcase>
34 <testcase classname="integration_test" name="TestSQLSetClusterHeartbeatTime/TestSQLSetClusterHeartbeatTime/set_cluster_heartbeat_time" time="0.780"></testcase>
35 <testcase classname="integration_test" name="TestSQLSetWatchedField" time="69.150"></testcase>
36 <testcase classname="integration_test" name="TestSQLSetWatchedField/TestSQLSetWatchedField" time="1.270"></testcase>
37 <testcase classname="integration_test" name="TestSQLSetWatchedField/TestSQLSetWatchedField/set_more_watched_fields" time="0.230"></testcase>
38 <testcase classname="integration_test" name="TestSQLSetWatchedField/TestSQLSetWatchedField/set_watched_field" time="0.320"></testcase>
39 <testcase classname="integration_test" name="TestSQLSetWatchedField/TestSQLSetWatchedField/set_watched_fields_but_cause_one_to_be_deleted" time="0.190"></testcase>
40 <testcase classname="integration_test" name="TestSQLSetWatchedField/TestSQLSetWatchedField/set_with_only_the_timestamp_updated" time="0.190"></testcase>
41 <testcase classname="integration_test" name="TestTxRowLockingOutdated" time="54.530"></testcase>
42 <testcase classname="integration_test" name="TestTxRowLockingOutdated/TestTxRowLockingOutdated" time="5.320"></testcase>
43 <testcase classname="integration_test" name="TestTxRowLockingOutdated/TestTxRowLockingOutdated/set_and_delete_out-of-order_watched_field_objects_in_simultaneous_transactions" time="2.260"></testcase>
44 <testcase classname="integration_test" name="TestTxRowLockingOutdated/TestTxRowLockingOutdated/set_out-of-order_watched_field_objects_in_simultaneous_transactions" time="2.540"></testcase>
45 <testcase classname="integration_test" name="TestTxRowLockingOutdated/TestTxRowLockingOutdated/set_watched_field" time="0.320"></testcase>
46 <testcase classname="integration_test" name="TestTxRowLockingSequential" time="53.650"></testcase>
47 <testcase classname="integration_test" name="TestTxRowLockingSequential/TestTxRowLockingSequential" time="5.390"></testcase>
48 <testcase classname="integration_test" name="TestTxRowLockingSequential/TestTxRowLockingSequential/set_sequential_watched_field_objects_in_simultaneous_transactions" time="2.580"></testcase>
49 <testcase classname="integration_test" name="TestTxRowLockingSequential/TestTxRowLockingSequential/set_watched_field" time="0.320"></testcase>
50 <testcase classname="integration_test" name="TestTxRowLockingSequential/TestTxRowLockingSequential/set_watched_field_object,_then_delete_it_in_simultaneous_transactions" time="2.290"></testcase>
51 <testcase classname="integration_test" name="TestTxWithoutRowLocking" time="49.590"></testcase>
52 <testcase classname="integration_test" name="TestTxWithoutRowLocking/TestTxWithoutRowLocking" time="1.790"></testcase>
53 <testcase classname="integration_test" name="TestTxWithoutRowLocking/TestTxWithoutRowLocking/set_and_delete_watched_fields_for_different_objects_in_simultaneous_transactions" time="0.450"></testcase>
54 <testcase classname="integration_test" name="TestTxWithoutRowLocking/TestTxWithoutRowLocking/set_watched_field" time="0.510"></testcase>
55 <testcase classname="integration_test" name="TestTxWithoutRowLocking/TestTxWithoutRowLocking/set_watched_fields_for_different_objects_in_simultaneous_transactions" time="0.630"></testcase>
56 </testsuite>
57</testsuites>
View as plain text