-
Notifications
You must be signed in to change notification settings - Fork 5k
Make Go linter happy #47106
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
base: main
Are you sure you want to change the base?
Make Go linter happy #47106
Conversation
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
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.
It seems you need to run mage check on heartbeat and one file is missing an import.
args.Tags = append(args.Tags, "integration") | ||
|
||
synth := exec.Command("npx", "@elastic/synthetics", "-h") | ||
cmdCtx, cmdCancel := context.WithTimeout(context.Background(), 5*time.Second) |
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.
Is 5s really enough to run a NodeJS command? Maybe 30s is safer?
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.
Probably not. I was going to try and find the breaking point and then double it until it doesn't break.
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.
Maybe we could pass in the parent context, adding a ctx
argument to DefaultGoTestIntegrationArgs()
instead of a new context?
Pinging @elastic/obs-ds-hosted-services (Team:obs-ds-hosted-services) |
This PR fixes some of the warnings from golangci-lint that show up in unrelated PRs.