[Security Solution][Detections] Fixes nondeterminism in integration tests#93350
[Security Solution][Detections] Fixes nondeterminism in integration tests#93350rylnd merged 1 commit intoelastic:masterfrom
Conversation
The threat intel data that we are loading for these tests was previously copy/pasted, resulting in all docs having the same @timestamp value. This resulted in nondeterministic ordering which manifested as test failures. This fixes the issue by giving a unique timestamp to each indicator document, and then unskips/updates tests according to this new ordering.
|
Pinging @elastic/security-detections-response (Team:Detections and Resp) |
|
Pinging @elastic/security-solution (Team: SecuritySolution) |
💚 Build SucceededMetrics [docs]Async chunks
Page load bundle
To update your PR or re-run it, just comment with: cc @rylnd |
The threat intel data that we are loading for these tests was previously copy/pasted, resulting in all docs having the same @timestamp value. This resulted in nondeterministic ordering which manifested as test failures. This fixes the issue by giving a unique timestamp to each indicator document, and then unskips/updates tests according to this new ordering.
The threat intel data that we are loading for these tests was previously copy/pasted, resulting in all docs having the same @timestamp value. This resulted in nondeterministic ordering which manifested as test failures. This fixes the issue by giving a unique timestamp to each indicator document, and then unskips/updates tests according to this new ordering.
…)" This reverts commit 3ce614f.
* master: (48 commits) Fix wrong import in data plugin causing 100kB bundle increase (elastic#93448) [Fleet] Correctly track install status of an integration (elastic#93464) Reviews data frame analytics UI text (elastic#93033) Display multiple copyable fields for process.args in resolver node detail panel (elastic#93280) [Security Solution][Detections] ML Popover overflow fix (elastic#93525) chore(NA): do not use execa on bazel workspace status update script (elastic#93532) Bump dependencies (elastic#93511) [dev/build_ts_refs] support disabling the ts-refs build completely (elastic#93529) [Security Solution] fix data provider cypress test (elastic#93465) Fix service map for All environment single service (elastic#93517) [Fleet] Fix package version comparaison in the UI (elastic#93498) [alerting] adds doc on JSON-expanded action variables and task manager max_workers (elastic#92720) [dev/build_ts_refs] ignore type checking failures when building ts refs (elastic#93473) [core-new-docs] Adds a dev-doc for core documentation (elastic#92976) remove opacity from maps legacy style (elastic#93456) [Security Solution][Lists] Escape quotes in list ids and quote the id in KQL query (elastic#93176) Revert "Make tests deterministic by providing unique timestamps (elastic#93350)" [Discover] Fix link from dashboard saved search to Discover (elastic#92937) update public api docs App Search - Polishing Analytics Views (elastic#92939) ...
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
Friendly reminder: Looks like this PR hasn’t been backported yet. |
|
skipping backport notifications as this was reverted. |
Summary
Addresses #93152.
The threat intel data that we load for these tests was copy/pasted, resulting in all docs having the same @timestamp value.
This resulted in nondeterministic ordering which manifested as test failures.
This fixes the issue by giving a unique timestamp to each indicator document, and then unskips/updates tests according to this new ordering.
Checklist
Delete any items that are not applicable to this PR.
For maintainers