Skip to content

Commit

Permalink
continuous-test: make debugging easier in docker compose env (#9759)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoposa authored Oct 28, 2024
1 parent 570b13a commit 59cbf28
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions development/mimir-microservices-mode/config/mimir.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ limits:
query_sharding_total_shards: 16
query_sharding_max_sharded_queries: 32
ingestion_rate: 50000
# expanded OOO window makes it easier to run continuous-test
# otherwise catch-up writes are rejected when metamonitoring is on
out_of_order_time_window: 1h
native_histograms_ingestion_enabled: true
cardinality_analysis_enabled: true
query_ingesters_within: 20m
Expand Down
6 changes: 3 additions & 3 deletions pkg/continuoustest/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (m *Manager) AddTest(t Test) {
func (m *Manager) Run(ctx context.Context) error {
// Initialize all tests.
for _, t := range m.tests {
if err := t.Init(ctx, time.Now()); err != nil {
if err := t.Init(ctx, time.Now().UTC()); err != nil {
return err
}
}
Expand All @@ -68,7 +68,7 @@ func (m *Manager) Run(ctx context.Context) error {
group.Go(func() error {

// Run it immediately, and then every configured period.
err := t.Run(ctx, time.Now())
err := t.Run(ctx, time.Now().UTC())
if m.cfg.SmokeTest {
if err != nil {
level.Info(m.logger).Log("msg", "Test failed", "test", t.Name(), "err", err)
Expand All @@ -85,7 +85,7 @@ func (m *Manager) Run(ctx context.Context) error {
case <-ticker.C:
// This error is intentionally ignored because we want to
// continue running the tests forever.
_ = t.Run(ctx, time.Now())
_ = t.Run(ctx, time.Now().UTC())
case <-ctx.Done():
return nil
}
Expand Down

0 comments on commit 59cbf28

Please sign in to comment.