-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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(ci): Change test washer logic to mark as flake all parents of a flake test #25504
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
03e0e16
fix(ci): Change test washer logic to mark as flake all parents of a f…
chouetz 05d2cbd
codereview: merge all flakes and update matching logic to mark as fla…
chouetz e490d46
Improve logic to detect parents of flaky test + a lot of unit tests
KevinFairise2 5b98c7c
Revert random change
KevinFairise2 999b281
Revert random change
KevinFairise2 536e207
Update tasks/testwasher.py
KevinFairise2 4ee0a7a
Update tasks/testwasher.py
KevinFairise2 eb12926
Apply suggestions
KevinFairise2 346d70b
Apply suggestions
KevinFairise2 667962d
Remove typing import
KevinFairise2 b0b650d
Merge branch 'main' of github.com:DataDog/datadog-agent into nschweit…
KevinFairise2 bb40214
Update flakes.yml
KevinFairise2 fa28e06
Fix unit test
KevinFairise2 e105fe9
Merge branch 'main' of github.com:DataDog/datadog-agent into nschweit…
KevinFairise2 a36c381
Update tasks/testwasher.py
KevinFairise2 477d69b
Merge branch 'nschweitzer/test_washer_parent' of github.com:DataDog/d…
KevinFairise2 d761519
Parents -> family
KevinFairise2 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{"Time":"2024-04-25T19:35:40.868296+02:00","Action":"run","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite/TestCPU/metric___container.cpu.usage{^kube_deployment:stress-ng$,^kube_namespace:workload-cpustress$}"} | ||
{"Time":"2024-04-25T19:35:40.870728+02:00","Action":"output","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite/TestCPU/metric___container.cpu.usage{^kube_deployment:stress-ng$,^kube_namespace:workload-cpustress$}","Output":" Messages: No value of `container.cpu.usage{kube_deployment:stress-ng,kube_namespace:workload-cpustress}` is in the range [145000000.000000;155000000.000000]: [1.2720585182086919e+08] base_test.go:143: \n"} | ||
{"Time":"2024-04-25T19:35:40.870757+02:00","Action":"fail","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite/TestCPU/metric___container.cpu.usage{^kube_deployment:stress-ng$,^kube_namespace:workload-cpustress$}","Elapsed":0} | ||
{"Time":"2024-04-25T19:35:40.870768+02:00","Action":"run","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite/TestCPU"} | ||
{"Time":"2024-04-25T19:35:40.870772+02:00","Action":"output","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite/TestCPU","Output":" k8s_test.go:452: flakytest: this is a known flaky test\n"} | ||
{"Time":"2024-04-25T19:35:40.871439+02:00","Action":"fail","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite/TestCPU","Elapsed":0} | ||
{"Time":"2024-04-25T19:35:40.870768+02:00","Action":"run","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite/TestMemory"} | ||
{"Time":"2024-04-25T19:35:40.871439+02:00","Action":"fail","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite/TestMemory","Elapsed":0} | ||
{"Time":"2024-04-25T19:35:40.871444+02:00","Action":"run","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite"} | ||
{"Time":"2024-04-25T19:35:40.871448+02:00","Action":"output","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite","Output":"=== RUN TestGetPayloadContainerizedWithDocker0\n"} | ||
{"Time":"2024-04-25T19:35:40.873652+02:00","Action":"fail","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Test":"TestEKSSuite","Elapsed":0} | ||
{"Time":"2024-04-25T19:35:40.874579+02:00","Action":"fail","Package":"github.com/DataDog/datadog-agent/test/new-e2e/tests/containers","Elapsed":0.494} |
This file contains 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.
Technically we could compute
known_flaky_tests_parents
fromknown_flaky_tests
. I did not do it to avoid computing it on very test name. We can compute it once for each package. We could say that we do not care about the performance here and compute theknown_flaky_tests_parents
every time the method is called, to make this function call way simplerThere 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.
I find it cleaner to have the ancestors as an input to this function, building it per package seems fine