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

connectivity/check: store metrics by pointer in TestMetricsIncrease #1679

Merged
merged 1 commit into from
May 31, 2023

Conversation

tklauser
Copy link
Member

Avoid the following erroneous govet warning:

copylocks: literal copies lock value from ciliumForwardCountTotalBefore: github.com/prometheus/client_model/go.MetricFamily contains google.golang.org/protobuf/internal/impl.MessageState contains sync.Mutex (govet)

Ref. https://github.com/cilium/cilium-cli/pull/1661/files#annotation_11568423750

Avoid the following erroneous govet warning:

> copylocks: literal copies lock value from ciliumForwardCountTotalBefore: github.com/prometheus/client_model/go.MetricFamily contains google.golang.org/protobuf/internal/impl.MessageState contains sync.Mutex (govet)

Ref. https://github.com/cilium/cilium-cli/pull/1661/files#annotation_11568423750

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser requested a review from a team as a code owner May 31, 2023 11:35
@tklauser tklauser requested a review from squeed May 31, 2023 11:35
@tklauser tklauser temporarily deployed to ci May 31, 2023 11:35 — with GitHub Actions Inactive
@tklauser tklauser mentioned this pull request May 31, 2023
1 task
@tklauser tklauser merged commit 11d30c3 into main May 31, 2023
17 of 19 checks passed
@tklauser tklauser deleted the pr/tklauser/metrics-govet-fix-pt2 branch May 31, 2023 13:22
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

2 participants