Skip to content

Commit 4bb8c19

Browse files
committed
e2e: tweak flaky test parameters
- Do not wait 10 full minutes - Write more often Maybe this will help reduce flakiness. Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
1 parent 519da47 commit 4bb8c19

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/e2e/receive_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -901,11 +901,11 @@ test_metric{a="2", b="2"} 1`)
901901
MetricCount: "10",
902902
SeriesCount: "1",
903903
MetricInterval: "3600",
904-
SeriesInterval: "30",
905-
ValueInterval: "30",
904+
SeriesInterval: "5",
905+
ValueInterval: "5",
906906

907907
RemoteURL: e2ethanos.RemoteWriteEndpoint(ingestor1.InternalEndpoint("remote-write")),
908-
RemoteWriteInterval: "30s",
908+
RemoteWriteInterval: "5s",
909909
RemoteBatchSize: "10",
910910
RemoteRequestCount: "5",
911911

@@ -923,7 +923,7 @@ test_metric{a="2", b="2"} 1`)
923923
ValueInterval: "3600",
924924

925925
RemoteURL: e2ethanos.RemoteWriteEndpoint(ingestor1.InternalEndpoint("remote-write")),
926-
RemoteWriteInterval: "30s",
926+
RemoteWriteInterval: "5s",
927927
RemoteBatchSize: "5",
928928
RemoteRequestCount: "5",
929929

@@ -937,11 +937,11 @@ test_metric{a="2", b="2"} 1`)
937937
MetricCount: "10",
938938
SeriesCount: "1",
939939
MetricInterval: "3600",
940-
SeriesInterval: "30",
941-
ValueInterval: "30",
940+
SeriesInterval: "5",
941+
ValueInterval: "5",
942942

943943
RemoteURL: e2ethanos.RemoteWriteEndpoint(ingestor1.InternalEndpoint("remote-write")),
944-
RemoteWriteInterval: "30s",
944+
RemoteWriteInterval: "5s",
945945
RemoteBatchSize: "10",
946946
RemoteRequestCount: "5",
947947

@@ -952,7 +952,7 @@ test_metric{a="2", b="2"} 1`)
952952

953953
// Here, 4/5 requests are failed due to limiting as we ingest one initial request.
954954
// 4 limited requests belong to the exceed-tenant.
955-
testutil.Ok(t, i1Runnable.WaitSumMetricsWithOptions(e2emon.Equals(4), []string{"thanos_receive_head_series_limited_requests_total"}, e2emon.WithWaitBackoff(&backoff.Config{Min: 1 * time.Second, Max: 10 * time.Minute, MaxRetries: 200}), e2emon.WaitMissingMetrics()))
955+
testutil.Ok(t, i1Runnable.WaitSumMetricsWithOptions(e2emon.Equals(4), []string{"thanos_receive_head_series_limited_requests_total"}, e2emon.WithWaitBackoff(&backoff.Config{Min: 1 * time.Second, Max: 30 * time.Second, MaxRetries: 200}), e2emon.WaitMissingMetrics()))
956956

957957
ctx, cancel := context.WithTimeout(context.Background(), 3*time.Minute)
958958
t.Cleanup(cancel)

0 commit comments

Comments
 (0)