Skip to content

Update Thanos and Prometheus #4560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 24, 2021

Conversation

pstibrany
Copy link
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
@@ -209,6 +209,7 @@ func NewQuerierHandler(
logger,
func(context.Context) v1.RulesRetriever { return &querier.DummyRulesRetriever{} },
0, 0, 0, // Remote read samples and concurrency limit.
false,
Copy link
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
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.

@@ -421,11 +420,13 @@ func TestCompactor_ShouldIncrementCompactionErrorIfFailedToCompactASingleTenant(
userID := "test-user"
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
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.

@@ -395,3 +395,37 @@ func sliceContains(t *testing.T, find string, in []string) bool {

return false
}

func TestYamlFormatting(t *testing.T) {
Copy link
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
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