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

chore: update loki modules for 3.0 release #12433

Merged
merged 4 commits into from
Apr 2, 2024
Merged

Conversation

slim-bean
Copy link
Collaborator

@slim-bean slim-bean commented Apr 2, 2024

What this PR does / why we need it:

My apologies to anyone with outstanding PR's, but there is no easy way to do this.

This will address the problems we introduced with v2.0 described here when we release 3.0 soon.

This was done using this tool

And this command

mod upgrade -t=3

Also manually updated the pkg/push/go.mod file to have a module:

module github.com/grafana/loki/v3/pkg/push

Then updated the go.mod to import the push package at v3

Then manually updated all the protos to have v3 package generation as well as use v3 imports

Update for posterity:

It was incorrect to update the submodule (nested module) in the fashion I did, so this PR #12438 reverts that change.

Currently that submodule is untagged, which is not necessarily a problem but something we can solve separately.

To actually make that tagged 3.0 my understanding is we would need to:

  • change the module to module github.com/grafana/loki/pkg/push/v3
  • tag the repo with a tag pkg/push/v3.0.0 (to publish the module)

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • CHANGELOG.md updated
    • If the change is worth mentioning in the release notes, add add-to-release-notes label
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • For Helm chart changes bump the Helm chart version in production/helm/loki/Chart.yaml and update production/helm/loki/CHANGELOG.md and production/helm/loki/README.md. Example PR
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR

Signed-off-by: Edward Welch <edward.welch@grafana.com>
@slim-bean slim-bean requested a review from a team as a code owner April 2, 2024 13:30
Comment on lines 23 to 24
lokiring "github.com/grafana/loki/v3/v3/pkg/util/ring"
util_ring "github.com/grafana/loki/v3/v3/pkg/util/ring"
Copy link
Contributor

Choose a reason for hiding this comment

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

That import looks wrong

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yup, there were a few of these, fixed them, not sure what happened here with that tool

Signed-off-by: Edward Welch <edward.welch@grafana.com>
updated all protos to use v3 packages as well as import v3 in their deps
updated all the integration test files to use v3 imports (missed by the auto tool)
fixed a few more v3/v3 errors

Signed-off-by: Edward Welch <edward.welch@grafana.com>
@slim-bean slim-bean requested a review from a team as a code owner April 2, 2024 16:07
Signed-off-by: Edward Welch <edward.welch@grafana.com>
Copy link
Collaborator

@kavirajk kavirajk left a comment

Choose a reason for hiding this comment

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

🚀

@slim-bean slim-bean merged commit 4c88be0 into main Apr 2, 2024
10 checks passed
@slim-bean slim-bean deleted the 3.0-modules-update branch April 2, 2024 17:00
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
Signed-off-by: Edward Welch <edward.welch@grafana.com>
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.

None yet

4 participants