-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Defend Workflows] Fix artifact entries list FTR (#189961)
## Summary **tl;wr;** - instead of selecting from dropdown, values are entered for Event Filters - artifacts for update/delete test cases are created via API call instead of UI interaction > [!note] > FTRs needs to be re-enabled before merge, revert this e0858a5 - done ✅ --- This PR attempts to decrease flakiness in `artifact_entries_list` FTR. Looks like the reason for flakiness was the dropdown for the field to be filtered. After spending a bit of a time looking at the code, couldn't find any quick solution why it can be flaky, so instead just tried to improve the tests. For that, added a 'special' (aka hack) test case to just try to set event filter 100 times, and also a failing test case just to receive logs (77455d7) - that's why all flaky runners are red, you need to see the logs. It didn't work to add some waits to let React re-render and let the API call for suggestions be finished, didn't work to select from dropdown by text instead of test id, didn't work to add even more wait in between multiple user actions. See logs here and search for `results are in` inside the logs: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6744#019145e0-445d-4978-89c8-701908e14e3f <img width="388" alt="image" src="https://github.com/user-attachments/assets/be45d549-8902-4e8d-926e-2e575eca0971"> In the end, looks like the solution is simply `input` the values instead of selecting them from the dropdown. In the last hacky-flaky run, it passed all 100 times: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6756 <img width="360" alt="image" src="https://github.com/user-attachments/assets/b46b7405-0621-4bf7-af88-a39309298b6b"> And a last flaky run without the hack, with the official flaky runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/6772 100/100 ✅ Also, entries for the update/delete test cases are created via API call instead of UI interaction, so those cases overlap less with the create test case. --------- Co-authored-by: Elastic Machine <[email protected]>
- Loading branch information
1 parent
51e76d8
commit 8e9b827
Showing
3 changed files
with
106 additions
and
20 deletions.
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