Skip to content

[EDR Workflows] Remove flaky skipped tests covered elsewhere#263585

Merged
szwarckonrad merged 4 commits into
elastic:mainfrom
szwarckonrad:unskip-flaky-tests-batch-2
May 8, 2026
Merged

[EDR Workflows] Remove flaky skipped tests covered elsewhere#263585
szwarckonrad merged 4 commits into
elastic:mainfrom
szwarckonrad:unskip-flaky-tests-batch-2

Conversation

@szwarckonrad
Copy link
Copy Markdown
Contributor

Removes skipped flaky integration tests that are already covered by unit tests or were testing external system behavior rather than our code.

#175791 — metadata transforms stats tests

The describe.skip('get metadata transforms') suite was testing that our METADATA_TRANSFORMS_STATUS_INTERNAL_ROUTE API correctly returns transform stats in started/stopped states. The flakiness was a race condition — the previous test stops both transforms then restarts them, but the restart hadn't fully completed before the next test asserted STARTED state (expected 1 to sort of equal 2).

The route handler is a pure pass-through: it calls esClient.transform.getTransformStats() and returns the result. The meaningful coverage (authz check, correct ES call, response forwarding) is already provided by unit tests in metadata.test.ts. The integration tests were only validating that Elasticsearch transform state transitions work — not our responsibility.

Removed: 3 skipped tests + unused imports/variables.

Closes #175791

@szwarckonrad szwarckonrad added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:Defend Workflows “EDR Workflows” sub-team of Security Solution labels Apr 15, 2026
@szwarckonrad szwarckonrad self-assigned this Apr 15, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!
  • Click to trigger kibana-deploy-project-from-pr for this PR!
  • Click to trigger kibana-deploy-cloud-from-pr for this PR!
  • Click to trigger kibana-entity-store-performance-from-pr for this PR!
  • Click to trigger kibana-storybooks-from-pr for this PR!

@szwarckonrad szwarckonrad marked this pull request as ready for review May 4, 2026 20:44
@szwarckonrad szwarckonrad requested a review from a team as a code owner May 4, 2026 20:44
@infra-vault-gh-plugin-prod
Copy link
Copy Markdown

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

Copy link
Copy Markdown
Contributor

@tomsonpl tomsonpl left a comment

Choose a reason for hiding this comment

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

🥇

Copy link
Copy Markdown
Contributor

@gergoabraham gergoabraham left a comment

Choose a reason for hiding this comment

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

🚀

@szwarckonrad szwarckonrad enabled auto-merge (squash) May 8, 2026 16:06
@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

cc @szwarckonrad

@szwarckonrad szwarckonrad merged commit 6e4d6df into elastic:main May 8, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v9.5.0

Projects

None yet

5 participants