-
Notifications
You must be signed in to change notification settings - Fork 137
OpenShift Support: Product Telemetry #4038
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
Open
shaun-nx
wants to merge
19
commits into
main
Choose a base branch
from
feat/buildos-telemetry
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+22
−1
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
4103612
Add BuilOS to telemetry
shaun-nx 06c853d
Run `make generate` to update data.avdl and generated attributes
shaun-nx aeb9042
Merge branch 'main' into feat/buildos-telemetry
shaun-nx 4bc9935
Update module google.golang.org/grpc to v1.76.0 (#4029)
renovate[bot] 014b64b
Update module github.com/prometheus/common to v0.67.1 (#4042)
renovate[bot] 1d9dd4a
Update github/codeql-action action to v4 (#4043)
renovate[bot] 3d58eb3
Update nginx Docker tag to v1.29.2 (#4041)
renovate[bot] db96078
Update ghcr.io/nginx/dependencies/nginx-ubi:ubi9 Docker digest to 46e…
renovate[bot] b7d7dd9
Pass os.Getenv("BUILD_OS") directly to manager
shaun-nx 5e5a3c5
Fix failing unit tests
shaun-nx a3d5a8e
Revert data struct and add nolint
shaun-nx 2d34749
Merge branch 'main' into feat/buildos-telemetry
shaun-nx 00b418d
Fix //nolint lint error
shaun-nx 8022051
Add comment about //nolint
shaun-nx c9b7a7d
Merge branch 'main' into feat/buildos-telemetry
shaun-nx e0110cb
Merge branch 'main' into feat/buildos-telemetry
shaun-nx 75f6de7
Add buildOs to normal test case
shaun-nx f56e9f2
Update buildOS comment and run `make generate`
shaun-nx 3f0b3f3
Merge branch 'main' into feat/buildos-telemetry
shaun-nx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bjee19 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need nolint here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The golangci linter sets a limit on the number of characters allowed in a struct. I can't remember what the exact error was, but it was related to fieldalignment. If I remember correctly the linter errored as we could have had less pointer bytes overall (not 100% sure what that means)
It resolved it by remving the comments around the fields in the struct. The issue with that those comments are required as part of the
go generate
command when we are generating thedata.avdl
file for telemetryThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not quite right. The
fieldalignment
linter helps to optimize Go structs so that they take up less memory in the binary at compilation. The linter automatically fixes these issues by reorganizing the struct to fit the most optimal order, but there's a bug that causes the comments to be removed.We don't want to
nolint
here. The solution is either let the linter reorganize, and then manually add the comments back in, or in this case you can probably satisfy the linter by manually putting the BuildOS string alongside the other strings in the struct, because having the same types next to each other helps with the optimization. But we should not ignore these with anolint
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sjberman the issue is that the data.avdl file is auto-generated by this Data struct from the telemetry-exporter. And we can't change the order of the data.avdl elements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, thanks for the clarification.