-
Notifications
You must be signed in to change notification settings - Fork 435
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
internal/civisibility: intelligent test runner support #2943
internal/civisibility: intelligent test runner support #2943
Conversation
672e27b
to
6ccdc75
Compare
BenchmarksBenchmark execution time: 2024-10-29 10:39:35 Comparing candidate commit 17e359b in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 59 metrics, 0 unstable metrics. |
93d3a97
to
2dcc3fc
Compare
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.
LGTM. I lack context in a lot of the implementation details of this, but the go impl looks ok. I've left some minor Qs/nits
} | ||
|
||
// Create a dummy event to send with the coverage payload. | ||
dummyEvent := FormFile{ |
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.
Q: Why do we need to upload a dummy event?
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.
yeah, that's required, Why? you tell me 😉 documented here: https://datadoghq.atlassian.net/wiki/spaces/SDTEST/pages/3123054226/Per+test+code+coverage#JSON-attachment
} | ||
|
||
restore := setStdOutToTemp() | ||
t.postCoverageFilename = filepath.Join(temporaryDir, fmt.Sprintf("%d-%d-%d-post.out", t.moduleID, t.suiteID, t.testID)) |
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 is this line inside the restore := setStdOutToTemp()
block? isn't it only necessary for the tearDown
fn to be in that block?
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.
True, I did a refactor to remove that method and just create a tearDown wrapper in 1ba2dda
1ba2dda
to
396f778
Compare
…client library. Also adds a new method to send coverage data.
…o start sending payloads to the backend
…interface to get the coverage writer
…pend on the linker (messes with tests running inside the IDE)
17e359b
to
3ccf36e
Compare
What does this PR do?
This PR adds the Test Visibility Intelligent Test Runner feature: https://datadoghq.atlassian.net/wiki/spaces/SDTEST/pages/3123348305/Intelligent+Test+Runner+in+CI+Visibility+Libraries
Motivation
This is one of the most important feature for Test Visibility.
Reviewer's Checklist
Unsure? Have a question? Request a review!