Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Reduce cache size in E2E tests b/c of GH runner memory constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
niksajakovljevic authored and alejandrodnm committed Jan 10, 2023
1 parent 85c784e commit 675ebd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/tests/end_to_end_tests/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"github.com/timescale/promscale/pkg/internal/testhelpers"
"github.com/timescale/promscale/pkg/log"
"github.com/timescale/promscale/pkg/pgmodel"
"github.com/timescale/promscale/pkg/pgmodel/cache"
"github.com/timescale/promscale/pkg/pgmodel/common/extension"
ingstr "github.com/timescale/promscale/pkg/pgmodel/ingestor"
"github.com/timescale/promscale/pkg/prompb"
Expand Down Expand Up @@ -66,6 +67,7 @@ var (

func init() {
tput.InitWatcher(time.Second)
cache.DefaultConfig.SeriesCacheInitialSize = 100000 // we need to reduce cache size due to GH memory limitations
if err := os.Setenv("IS_TEST", "true"); err != nil {
// Test dependent behaviours call initializing a module more than once.
// An example of this is duplicate metrics registry in createAndRegister.
Expand Down

0 comments on commit 675ebd0

Please sign in to comment.