Skip to content
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

Replace internal thanos fork with latest thanos #3205

Merged
merged 4 commits into from
Oct 14, 2022

Conversation

jesusvazquez
Copy link
Member

@jesusvazquez jesusvazquez commented Oct 13, 2022

Due to the out-of-order implementation and Mimir's dependency with Thanos's code, we had to fork thanos due to an interface change in the TSDB.

Since out-of-order has been upstreamed to Prometheus and Thanos has already updated its dependency, we can now get rid of our internal fork usage.

Please note that Thanos has extracted its objstore implementation to its own repository so we had to update a few references throughout the codebase.

Note: Before merge we need grafana/e2e#5 merged and update e2e commit dependency.

@jesusvazquez jesusvazquez self-assigned this Oct 13, 2022
@jesusvazquez jesusvazquez changed the title Replace internal thanos fork with thanos v0.28.1 Replace internal thanos fork with latest thanos Oct 13, 2022
@jesusvazquez jesusvazquez force-pushed the jvp/replace-thanos-dependency branch 3 times, most recently from 3a250ad to afdb2e0 Compare October 13, 2022 15:00
@jesusvazquez jesusvazquez marked this pull request as ready for review October 13, 2022 16:23
@jesusvazquez jesusvazquez requested review from osg-grafana and a team as code owners October 13, 2022 16:23
@pracucci pracucci marked this pull request as draft October 13, 2022 16:39
@pracucci
Copy link
Collaborator

@jesusvazquez I moved this PR to draft because I want to get #2682 in first. @bboreham will try to rebase it soon. If there's any issue, we'll ask you if you could give an hand.

@pracucci
Copy link
Collaborator

@jesusvazquez We merged #2682. Is there anything else we want to get from this PR? If so, could you rebase it, please?

Due to the out-of-order implementation and Mimir's dependency with
Thanos's code, we had to fork thanos due to an interface change in the
TSDB.

Since out-of-order has been upstreamed to Prometheus and Thanos has
already updated its dependency, we can now get rid of our internal fork
usage.

Please note that Thanos has extracted its objstore implementation to its
own repository so we had to update a few references throughout the
codebase.

Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
Also replace PrometheusIssue5372Err with OutOfOrderLabelsErr due to thanos-io/thanos#5508

Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
Also replace CAS with CompareAndSwap
Signed-off-by: Jesus Vazquez <jesus.vazquez@grafana.com>
@jesusvazquez
Copy link
Member Author

@pracucci Yes this PR removes the need of the grafana thanos fork. I just rebased and made sure CI was 🆗 Please review.

@pracucci pracucci self-requested a review October 14, 2022 12:40
@pracucci pracucci marked this pull request as ready for review October 14, 2022 12:46
Copy link
Collaborator

@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 @jesusvazquez ! I reviewed the Mimir changes and Thanos one. I can't see any issue, so 👍

@pracucci pracucci merged commit 28d9c9f into main Oct 14, 2022
@pracucci pracucci deleted the jvp/replace-thanos-dependency branch October 14, 2022 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants