11import { ClickHouse } from "@internal/clickhouse" ;
22import { containerTest } from "@internal/testcontainers" ;
3- import { Logger } from "@trigger.dev/core/logger" ;
43import { setTimeout } from "node:timers/promises" ;
54import { z } from "zod" ;
65import { TaskRunStatus } from "~/database-types" ;
@@ -22,6 +21,7 @@ describe("RunsReplicationService (part 1/2)", () => {
2221 compression : {
2322 request : true ,
2423 } ,
24+ logLevel : "warn" ,
2525 } ) ;
2626
2727 const { tracer, exporter } = createInMemoryTracing ( ) ;
@@ -40,6 +40,7 @@ describe("RunsReplicationService (part 1/2)", () => {
4040 leaderLockExtendIntervalMs : 1000 ,
4141 ackIntervalSeconds : 5 ,
4242 tracer,
43+ logLevel : "warn" ,
4344 } ) ;
4445
4546 await runsReplicationService . start ( ) ;
@@ -135,6 +136,7 @@ describe("RunsReplicationService (part 1/2)", () => {
135136 compression : {
136137 request : true ,
137138 } ,
139+ logLevel : "warn" ,
138140 } ) ;
139141
140142 const { tracer, exporter } = createInMemoryTracing ( ) ;
@@ -153,6 +155,7 @@ describe("RunsReplicationService (part 1/2)", () => {
153155 leaderLockExtendIntervalMs : 1000 ,
154156 ackIntervalSeconds : 5 ,
155157 tracer,
158+ logLevel : "warn" ,
156159 } ) ;
157160
158161 await runsReplicationService . start ( ) ;
@@ -271,6 +274,7 @@ describe("RunsReplicationService (part 1/2)", () => {
271274 const clickhouse = new ClickHouse ( {
272275 url : clickhouseContainer . getConnectionUrl ( ) ,
273276 name : "runs-replication" ,
277+ logLevel : "warn" ,
274278 } ) ;
275279
276280 const { tracer, exporter } = createInMemoryTracing ( ) ;
@@ -289,6 +293,7 @@ describe("RunsReplicationService (part 1/2)", () => {
289293 leaderLockExtendIntervalMs : 1000 ,
290294 ackIntervalSeconds : 5 ,
291295 tracer,
296+ logLevel : "warn" ,
292297 } ) ;
293298
294299 await runsReplicationService . start ( ) ;
@@ -341,6 +346,7 @@ describe("RunsReplicationService (part 1/2)", () => {
341346 const clickhouse = new ClickHouse ( {
342347 url : clickhouseContainer . getConnectionUrl ( ) ,
343348 name : "runs-replication-batching" ,
349+ logLevel : "warn" ,
344350 } ) ;
345351
346352 const runsReplicationService = new RunsReplicationService ( {
@@ -356,6 +362,7 @@ describe("RunsReplicationService (part 1/2)", () => {
356362 leaderLockTimeoutMs : 5000 ,
357363 leaderLockExtendIntervalMs : 1000 ,
358364 ackIntervalSeconds : 5 ,
365+ logLevel : "warn" ,
359366 } ) ;
360367
361368 await runsReplicationService . start ( ) ;
@@ -443,6 +450,7 @@ describe("RunsReplicationService (part 1/2)", () => {
443450 const clickhouse = new ClickHouse ( {
444451 url : clickhouseContainer . getConnectionUrl ( ) ,
445452 name : "runs-replication-payload" ,
453+ logLevel : "warn" ,
446454 } ) ;
447455
448456 const runsReplicationService = new RunsReplicationService ( {
@@ -458,6 +466,7 @@ describe("RunsReplicationService (part 1/2)", () => {
458466 leaderLockTimeoutMs : 5000 ,
459467 leaderLockExtendIntervalMs : 1000 ,
460468 ackIntervalSeconds : 5 ,
469+ logLevel : "warn" ,
461470 } ) ;
462471
463472 await runsReplicationService . start ( ) ;
@@ -542,6 +551,7 @@ describe("RunsReplicationService (part 1/2)", () => {
542551 const clickhouse = new ClickHouse ( {
543552 url : clickhouseContainer . getConnectionUrl ( ) ,
544553 name : "runs-replication-payload" ,
554+ logLevel : "warn" ,
545555 } ) ;
546556
547557 const runsReplicationService = new RunsReplicationService ( {
@@ -557,6 +567,7 @@ describe("RunsReplicationService (part 1/2)", () => {
557567 leaderLockTimeoutMs : 5000 ,
558568 leaderLockExtendIntervalMs : 1000 ,
559569 ackIntervalSeconds : 5 ,
570+ logLevel : "warn" ,
560571 } ) ;
561572
562573 await runsReplicationService . start ( ) ;
@@ -646,6 +657,7 @@ describe("RunsReplicationService (part 1/2)", () => {
646657 const clickhouse = new ClickHouse ( {
647658 url : clickhouseContainer . getConnectionUrl ( ) ,
648659 name : "runs-replication-update" ,
660+ logLevel : "warn" ,
649661 } ) ;
650662
651663 const runsReplicationService = new RunsReplicationService ( {
@@ -661,6 +673,7 @@ describe("RunsReplicationService (part 1/2)", () => {
661673 leaderLockTimeoutMs : 5000 ,
662674 leaderLockExtendIntervalMs : 1000 ,
663675 ackIntervalSeconds : 5 ,
676+ logLevel : "warn" ,
664677 } ) ;
665678
666679 await runsReplicationService . start ( ) ;
@@ -751,6 +764,7 @@ describe("RunsReplicationService (part 1/2)", () => {
751764 const clickhouse = new ClickHouse ( {
752765 url : clickhouseContainer . getConnectionUrl ( ) ,
753766 name : "runs-replication-delete" ,
767+ logLevel : "warn" ,
754768 } ) ;
755769
756770 const runsReplicationService = new RunsReplicationService ( {
@@ -766,6 +780,7 @@ describe("RunsReplicationService (part 1/2)", () => {
766780 leaderLockTimeoutMs : 5000 ,
767781 leaderLockExtendIntervalMs : 1000 ,
768782 ackIntervalSeconds : 5 ,
783+ logLevel : "warn" ,
769784 } ) ;
770785
771786 await runsReplicationService . start ( ) ;
@@ -849,6 +864,7 @@ describe("RunsReplicationService (part 1/2)", () => {
849864 const clickhouse = new ClickHouse ( {
850865 url : clickhouseContainer . getConnectionUrl ( ) ,
851866 name : "runs-replication-shutdown-handover" ,
867+ logLevel : "warn" ,
852868 } ) ;
853869
854870 // Service A
@@ -865,6 +881,7 @@ describe("RunsReplicationService (part 1/2)", () => {
865881 leaderLockTimeoutMs : 5000 ,
866882 leaderLockExtendIntervalMs : 1000 ,
867883 ackIntervalSeconds : 5 ,
884+ logLevel : "warn" ,
868885 } ) ;
869886
870887 await runsReplicationServiceA . start ( ) ;
@@ -968,6 +985,7 @@ describe("RunsReplicationService (part 1/2)", () => {
968985 leaderLockTimeoutMs : 5000 ,
969986 leaderLockExtendIntervalMs : 1000 ,
970987 ackIntervalSeconds : 5 ,
988+ logLevel : "warn" ,
971989 } ) ;
972990
973991 await runsReplicationServiceB . start ( ) ;
@@ -997,6 +1015,7 @@ describe("RunsReplicationService (part 1/2)", () => {
9971015 const clickhouse = new ClickHouse ( {
9981016 url : clickhouseContainer . getConnectionUrl ( ) ,
9991017 name : "runs-replication-shutdown-after-processed" ,
1018+ logLevel : "warn" ,
10001019 } ) ;
10011020
10021021 // Service A
@@ -1013,6 +1032,7 @@ describe("RunsReplicationService (part 1/2)", () => {
10131032 leaderLockTimeoutMs : 5000 ,
10141033 leaderLockExtendIntervalMs : 1000 ,
10151034 ackIntervalSeconds : 5 ,
1035+ logLevel : "warn" ,
10161036 } ) ;
10171037
10181038 await runsReplicationServiceA . start ( ) ;
@@ -1114,6 +1134,7 @@ describe("RunsReplicationService (part 1/2)", () => {
11141134 leaderLockTimeoutMs : 5000 ,
11151135 leaderLockExtendIntervalMs : 1000 ,
11161136 ackIntervalSeconds : 5 ,
1137+ logLevel : "warn" ,
11171138 } ) ;
11181139
11191140 await runsReplicationServiceB . start ( ) ;
@@ -1137,6 +1158,7 @@ describe("RunsReplicationService (part 1/2)", () => {
11371158 const clickhouse = new ClickHouse ( {
11381159 url : clickhouseContainer . getConnectionUrl ( ) ,
11391160 name : "runs-replication-metrics" ,
1161+ logLevel : "warn" ,
11401162 } ) ;
11411163
11421164 const { tracer } = createInMemoryTracing ( ) ;
@@ -1157,6 +1179,7 @@ describe("RunsReplicationService (part 1/2)", () => {
11571179 ackIntervalSeconds : 5 ,
11581180 tracer,
11591181 meter : metricsHelper . meter ,
1182+ logLevel : "warn" ,
11601183 } ) ;
11611184
11621185 await runsReplicationService . start ( ) ;
0 commit comments