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

Update supported go versions to 1.21+1.22 #643

Merged
merged 1 commit into from
Feb 7, 2024
Merged

Update supported go versions to 1.21+1.22 #643

merged 1 commit into from
Feb 7, 2024

Conversation

fishy
Copy link
Member

@fishy fishy commented Feb 7, 2024

Split from #641 to fix 1.22 specific problems.

Split from #641 to fix 1.22
specific problems.
@fishy fishy requested a review from a team as a code owner February 7, 2024 19:24
@fishy fishy requested review from kylelemons, konradreiche and pacejackson and removed request for a team February 7, 2024 19:24
@@ -50,12 +49,14 @@ func TestMetrics(t *testing.T) {
t.Fatal(err)
}

got := []string{}
got := make(map[string]bool)
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

why did this become an issue in 1.22?

Copy link
Member Author

Choose a reason for hiding this comment

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

1.22 exposes more metrics and we were testing that they match exactly.

Copy link
Contributor

@kylelemons kylelemons Feb 7, 2024

Choose a reason for hiding this comment

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

you could steal what we do in baseplate/v2:

https://sourcegraph.build.ue1.snooguts.net/github.snooguts.net/reddit-go/baseplate/-/tree/internal/baseint

(and add a few 1.22 metrics, which we haven't yet)

Copy link
Member Author

Choose a reason for hiding this comment

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

yea but I don't think it's worth it to keep updating this list with every go release.

this is basically just testing

var baseplateGoCollectors = collectors.WithGoCollectorRuntimeMetrics(
collectors.MetricsScheduler,
)
, which basically delegates to prometheus lib code, making sure it exactly matches a list doesn't really gives us more confidence compare to making sure it contains a given subset.

@@ -50,12 +49,14 @@ func TestMetrics(t *testing.T) {
t.Fatal(err)
}

got := []string{}
got := make(map[string]bool)
Copy link
Contributor

Choose a reason for hiding this comment

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

why did this become an issue in 1.22?

@@ -50,12 +49,14 @@ func TestMetrics(t *testing.T) {
t.Fatal(err)
}

got := []string{}
got := make(map[string]bool)
Copy link
Contributor

@kylelemons kylelemons Feb 7, 2024

Choose a reason for hiding this comment

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

you could steal what we do in baseplate/v2:

https://sourcegraph.build.ue1.snooguts.net/github.snooguts.net/reddit-go/baseplate/-/tree/internal/baseint

(and add a few 1.22 metrics, which we haven't yet)

@fishy fishy merged commit 10874c7 into master Feb 7, 2024
2 checks passed
@fishy fishy deleted the go-1.22 branch February 7, 2024 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants