Skip to content

Update Thanos and Prometheus#4560

Merged
pracucci merged 5 commits intocortexproject:masterfrom
pstibrany:update-thanos-and-prometheus
Nov 24, 2021
Merged

Update Thanos and Prometheus#4560
pracucci merged 5 commits intocortexproject:masterfrom
pstibrany:update-thanos-and-prometheus

Conversation

@pstibrany
Copy link
Copy Markdown
Contributor

This PR updates Thanos and Prometheus to latest main of the respective projects.

Prometheus has renamed some packages and introduced new types for series and chunk references, which prompted lot of changes across whole codebase.

I haven't yet checked updates in dependencies.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
@pstibrany pstibrany force-pushed the update-thanos-and-prometheus branch from d40f6be to 7afcee6 Compare November 22, 2021 11:04
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
…block in a group, so we added more blocks.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
@pstibrany pstibrany force-pushed the update-thanos-and-prometheus branch from 3323764 to 74b72dd Compare November 23, 2021 14:27
Comment thread pkg/api/handlers.go
logger,
func(context.Context) v1.RulesRetriever { return &querier.DummyRulesRetriever{} },
0, 0, 0, // Remote read samples and concurrency limit.
false,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isAgent parameter

@@ -1,3 +1,4 @@
//go:build requires_docker
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are added by goimport.

bucketClient := &bucket.ClientMock{}
bucketClient.MockIter("", []string{userID}, nil)
bucketClient.MockIter(userID+"/", []string{userID + "/01DTVP434PA9VFXSW2JKB3392D"}, nil)
bucketClient.MockIter(userID+"/", []string{userID + "/01DTVP434PA9VFXSW2JKB3392D", userID + "/01FN6CDF3PNEWWRY5MPGJPE3EX"}, nil)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Group is no longer compacted if it has only single block, so we need more blocks in compactor tests.

Comment thread pkg/ruler/mapper_test.go
return false
}

func TestYamlFormatting(t *testing.T) {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this test to speed up debugging YAML formatting issue.

Copy link
Copy Markdown
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job, LGTM!

@pracucci pracucci merged commit 4e9fc3a into cortexproject:master Nov 24, 2021
srijan55 pushed a commit to srijan55/cortex that referenced this pull request Nov 26, 2021
* Update Thanos and Prometheus

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix imports.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix imports.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix compactor tests. Planning no longer runs if there is only single block in a group, so we added more blocks.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix ruler tests.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
Signed-off-by: Manish Kumar Gupta <manishkg@microsoft.com>
simonswine pushed a commit to grafana/e2e that referenced this pull request Jan 13, 2022
* Update Thanos and Prometheus

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix imports.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix imports.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix compactor tests. Planning no longer runs if there is only single block in a group, so we added more blocks.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix ruler tests.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
alvinlin123 pushed a commit to ac1214/cortex that referenced this pull request Jan 14, 2022
* Update Thanos and Prometheus

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix imports.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix imports.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix compactor tests. Planning no longer runs if there is only single block in a group, so we added more blocks.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>

* Fix ruler tests.

Signed-off-by: Peter Štibraný <pstibrany@gmail.com>
Signed-off-by: Alvin Lin <alvinlin@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants