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

Replace Go version 1.18+1.19 with 1.19+1.22.0 #2572

Merged
merged 3 commits into from Feb 26, 2024

Conversation

ddyurchenko
Copy link
Collaborator

What does this PR do?

Updates Go version for macrobenchmark runs from 1.18 + 1.19 to 1.19 + 1.22.0.

Tracer and profiler both work correctly after the change.

AppSec doesn't work in 1.22.0
image

For macrobenchmark 1.19 all 3 products work correctly.

Motivation

Since 9th of January we have a broken macrobenchmark for Go tracer 1.18. The analysis of error has shown that some dependencies now require Go version 1.19 to compile the latest dd-trace-agent.

We need to fix macrobenchmark runs, so they continue to report relevant information.

Reviewer's Checklist

  • Changed code has unit tests for its functionality at or near 100% coverage.
  • System-Tests covering this feature have been added and enabled with the va.b.c-dev version tag.
  • There is a benchmark for any new code, or changes to existing code.
  • If this interacts with the agent in a new way, a system test has been added.
  • Add an appropriate team label so this PR gets put in the right place for the release notes.
  • Non-trivial go.mod changes, e.g. adding new modules, are reviewed by @DataDog/dd-trace-go-guild.

For Datadog employees:

  • If this PR touches code that handles credentials of any kind, such as Datadog API keys, I've requested a review from @DataDog/security-design-and-guidance.
  • This PR doesn't touch any of that.

Unsure? Have a question? Request a review!

@ddyurchenko ddyurchenko requested a review from a team as a code owner February 23, 2024 15:57
Copy link
Contributor

@eliottness eliottness 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 the fix 🙏 . Could you use 1.22 instead of 1.22.0 following the pattern from before? If possible of course. By default it should make it use the last patch version of 1.22 instead of strictly using 1.22.0 which is beneficial for us .

@eliottness
Copy link
Contributor

The issue you are seeing with appsec was fixed in 2.3.1 of go-libddwaf and it was updated upstream (upstream being dd-trace-go) last week so updating your branch should fix your issue

@ddyurchenko
Copy link
Collaborator Author

Hi Eliott,

It is nice to meet you!

Could you use 1.22 instead of 1.22.0 following the pattern from before? If possible of course

I checked https://go.dev/dl/, and I think we actually need to update 1.19 to 1.19.13, as it seems that till 1.21.0 Google published releases like 1.19.0 as 1.19 (so 1.19 means 1.19.0 rather than 1.19.*; quite confusing). Will do it and also check if AppSec now works correctly.

@pr-commenter
Copy link

pr-commenter bot commented Feb 26, 2024

Benchmarks

Benchmark execution time: 2024-02-26 14:39:34

Comparing candidate commit 0557088 in PR branch ddyurchenko/update-go-macrobenchmark with baseline commit 5b310de in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 40 metrics, 1 unstable metrics.

@ddyurchenko
Copy link
Collaborator Author

All good after rebasing, no more AppSec errors! 🎉

Copy link
Contributor

@eliottness eliottness left a comment

Choose a reason for hiding this comment

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

Thanks 💯

@eliottness eliottness merged commit 6a6746f into main Feb 26, 2024
157 checks passed
@eliottness eliottness deleted the ddyurchenko/update-go-macrobenchmark branch February 26, 2024 15:41
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