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

[Security Solution] Fix flaky tests: Detection and Response team 8.11-8.12 #165359

Closed
9 tasks done
Tracked by #153633
banderror opened this issue Aug 31, 2023 · 6 comments
Closed
9 tasks done
Tracked by #153633
Assignees
Labels
8.12 candidate Meta Team:Detection Engine Security Solution Detection Engine Area Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. technical debt Improvement of the software architecture and operational architecture test_ui_functional test test-api-integration v8.11.0 v8.12.0

Comments

@banderror
Copy link
Contributor

banderror commented Aug 31, 2023

Epic: #153633

Summary

Fix flaky tests and unskip tests that belong to the Rule Management or the Detection Engine teams.

Our "inbox" of failed and skipped tests:

FTR tests: #165780

Sub-tasks

Prebuilt rules

  1. 8.11 candidate Feature:Prebuilt Detection Rules Team: SecuritySolution Team:Detection Rule Management Team:Detections and Resp failed-test
    jpdjere
  2. 8.12 candidate Feature:Prebuilt Detection Rules Team: SecuritySolution Team:Detection Rule Management Team:Detections and Resp failed-test
    jpdjere
  3. 8.12 candidate Feature:Prebuilt Detection Rules Team: SecuritySolution Team:Detection Rule Management Team:Detections and Resp failed-test
    jpdjere
  4. 8.12 candidate Feature:Prebuilt Detection Rules Team: SecuritySolution Team:Detection Rule Management Team:Detections and Resp failed-test
    jpdjere
  5. 8.12 candidate Feature:Prebuilt Detection Rules Team: SecuritySolution Team:Detection Rule Management Team:Detections and Resp failed-test
    jpdjere

Rule management and monitoring

  1. 8.11 candidate Feature:Rule Management Team: SecuritySolution Team:Detection Rule Management Team:Detections and Resp bug v8.11.0
    maximpn
  2. 8.12 candidate Feature:Rule Monitoring Team: SecuritySolution Team:Detection Rule Management Team:Detections and Resp failed-test
    jpdjere
  3. 8.12 candidate Feature:Rule Management Team: SecuritySolution Team:Detection Rule Management Team:Detections and Resp failed-test
    jpdjere

Related integrations

  1. 8.11 candidate Feature:Related Integrations Team: SecuritySolution Team:Detection Rule Management Team:Detections and Resp test test-failure-flaky
    maximpn
@banderror banderror added test Meta test_ui_functional technical debt Improvement of the software architecture and operational architecture test-api-integration Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Rule Management Security Detection Rule Management Team Team:Detection Engine Security Solution Detection Engine Area 8.11 candidate v8.11.0 labels Aug 31, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

maximpn added a commit that referenced this issue Sep 22, 2023
…166659)

**Related to: #165359
**Resolves: #165504

## Summary

This PR unskips skipped rule integrations ESS tests.

## Details

Besides just unskipping ESS tests this PR simplifies the test by fetching alert data from the ES directly instead of using multiple steps in UI to validate an expected field has an expected value.

## Flaky test runner

ESS [related_integrations.cy.ts 100 runs](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3199) 🟢
@banderror banderror changed the title [Security Solution] Fix flaky tests: Detection and Response team 8.11 [Security Solution] Fix flaky tests: Detection and Response team 8.11-8.12 Oct 13, 2023
@banderror banderror assigned jpdjere and unassigned yctercero and WafaaNasr Oct 16, 2023
@banderror
Copy link
Contributor Author

The tickets related to true flakes will be assigned to the corresponding teams.

@jpdjere
Copy link
Contributor

jpdjere commented Oct 19, 2023

PRs used to triage Detection Engine tests reported in this list, plus their backports (indented):

@jpdjere
Copy link
Contributor

jpdjere commented Oct 30, 2023

Rules management flaky test fix PRs plus their backports (indented):

@banderror
Copy link
Contributor Author

banderror commented Nov 15, 2023

We have eliminated test flakiness in the Rule Management area almost entirely, and have greatly reduced it in the Detection Engine area. At the time of writing, there's some leftover flakiness you can track using these links:

@maximpn and @jpdjere: you've done an amazing job, thank you so much for all your efforts made during the last 3 release cycles fighting the flakiness, unskipping tests, and enabling them in Serverless!

I consider the 8.11 and 8.12 goals of this ticket accomplished, and so I'm closing it. Both teams will handle the leftover flakiness as part of separate tickets. cc @yctercero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.12 candidate Meta Team:Detection Engine Security Solution Detection Engine Area Team:Detection Rule Management Security Detection Rule Management Team Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. technical debt Improvement of the software architecture and operational architecture test_ui_functional test test-api-integration v8.11.0 v8.12.0
Projects
None yet
Development

No branches or pull requests

6 participants