Skip to content

Commit 94dce93

Browse files
authored
update promqlsmith version (#5208)
1 parent b3e49cb commit 94dce93

File tree

7 files changed

+171
-67
lines changed

7 files changed

+171
-67
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/aws/aws-sdk-go v1.44.189
1212
github.com/bradfitz/gomemcache v0.0.0-20190913173617-a41fca850d0b
1313
github.com/cespare/xxhash v1.1.0
14-
github.com/cortexproject/promqlsmith v0.0.0-20230309031733-1c551fa10a5c
14+
github.com/cortexproject/promqlsmith v0.0.0-20230313010502-5c380a3b00b0
1515
github.com/dustin/go-humanize v1.0.1
1616
github.com/efficientgo/core v1.0.0-rc.2
1717
github.com/facette/natsort v0.0.0-20181210072756-2cd4dd1e2dcb

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,8 @@ github.com/coreos/go-systemd/v22 v22.4.0 h1:y9YHcjnjynCd/DVbg5j9L/33jQM3MxJlbj/z
452452
github.com/coreos/go-systemd/v22 v22.4.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
453453
github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
454454
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
455-
github.com/cortexproject/promqlsmith v0.0.0-20230309031733-1c551fa10a5c h1:XdtEYH0mSzTnJhylFjHV5lt57x+MxgWZP7/mfTGHyCQ=
456-
github.com/cortexproject/promqlsmith v0.0.0-20230309031733-1c551fa10a5c/go.mod h1:ngsF8Fu5zfL7q0TufnEd+QvomTblziwTKBRvb9kQ5Ic=
455+
github.com/cortexproject/promqlsmith v0.0.0-20230313010502-5c380a3b00b0 h1:NxAuzQ8oCBUgmBTmhC4GyKk9kBl4IoDymGib+tVdqiQ=
456+
github.com/cortexproject/promqlsmith v0.0.0-20230313010502-5c380a3b00b0/go.mod h1:ngsF8Fu5zfL7q0TufnEd+QvomTblziwTKBRvb9kQ5Ic=
457457
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
458458
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
459459
github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=

integration/query_fuzz_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ func TestVerticalShardingFuzz(t *testing.T) {
112112
require.Equal(t, labelSet1, labelSet2)
113113

114114
rnd := rand.New(rand.NewSource(now.Unix()))
115-
ps := promqlsmith.New(rnd, lbls, false, false)
115+
opts := []promqlsmith.Option{
116+
promqlsmith.WithEnableOffset(true),
117+
promqlsmith.WithEnableAtModifier(true),
118+
}
119+
ps := promqlsmith.New(rnd, lbls, opts...)
116120

117121
type testCase struct {
118122
query string

vendor/github.com/cortexproject/promqlsmith/README.md

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cortexproject/promqlsmith/opts.go

Lines changed: 142 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/cortexproject/promqlsmith/promqlsmith.go

Lines changed: 15 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)