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

fix(logp): TestConfigureWithCore fails with Go 1.24 #233

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

mauri870
Copy link
Member

@mauri870 mauri870 commented Oct 1, 2024

What does this PR do?

The cmd/vet in Go 1.24 reports printf calls with non-const format and no args, causing one test in logp to fail.

See golang/go#60529.

$ go install golang.org/dl/gotip@latest
$ gotip download
$ gotip test ./logp -count=1
logp/core_test.go:714:7: non-constant format string in call to github.com/elastic/elastic-agent-libs/logp.Info
FAIL    github.com/elastic/elastic-agent-libs/logp [build failed]

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works

The cmd/vet in Go 1.24 reports printf calls with non-const format and no
args, causing one test in logp to fail.

See golang/go#60529.

```
$ go install golang.org/dl/gotip@latest
$ gotip download
$ gotip test ./logp -count=1
logp/core_test.go:714:7: non-constant format string in call to github.com/elastic/elastic-agent-libs/logp.Info
FAIL    github.com/elastic/elastic-agent-libs/logp [build failed]
```
@mauri870 mauri870 added Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team cleanup labels Oct 1, 2024
@mauri870 mauri870 self-assigned this Oct 1, 2024
@mauri870 mauri870 requested a review from a team as a code owner October 1, 2024 16:08
@mauri870 mauri870 requested review from AndersonQ and VihasMakwana and removed request for a team October 1, 2024 16:08
Copy link
Contributor

@leehinman leehinman left a comment

Choose a reason for hiding this comment

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

Thanks for fixing.

@mauri870
Copy link
Member Author

mauri870 commented Oct 1, 2024

Thanks for fixing.

Appreciate the review, Lee. I'll open follow ups on elastic-agent and beats as needed since they also have similar failures.

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mauri870

@mauri870 mauri870 merged commit d95aa61 into elastic:main Oct 2, 2024
6 checks passed
VihasMakwana pushed a commit to VihasMakwana/elastic-agent-libs that referenced this pull request Oct 4, 2024
The cmd/vet in Go 1.24 reports printf calls with non-const format and no
args, causing one test in logp to fail.

See golang/go#60529.

```
$ go install golang.org/dl/gotip@latest
$ gotip download
$ gotip test ./logp -count=1
logp/core_test.go:714:7: non-constant format string in call to github.com/elastic/elastic-agent-libs/logp.Info
FAIL    github.com/elastic/elastic-agent-libs/logp [build failed]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Team:Elastic-Agent-Data-Plane Label for the Agent Data Plane team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants