Skip to content

[Detection Engine][Telemetry] Update test#225937

Merged
yctercero merged 2 commits intoelastic:mainfrom
yctercero:telemetry_test
Jul 2, 2025
Merged

[Detection Engine][Telemetry] Update test#225937
yctercero merged 2 commits intoelastic:mainfrom
yctercero:telemetry_test

Conversation

@yctercero
Copy link
Copy Markdown
Contributor

@yctercero yctercero commented Jul 1, 2025

Summary

Updated a test to check that the value of has_exceptions is greater than 0 instead of checking for 1 specifically. Found that in MKI alone, the prebuilt rules utilities don't seem to clean up. Prebuilt rule installation gets called 8 times in these tests, each time installing one rule with exceptions. Then in my test I add an exception to one of the prebuilt rules without exceptions so it shows a total of has_exceptions: 9.

@yctercero yctercero requested a review from a team as a code owner July 1, 2025 04:07
@yctercero yctercero added release_note:skip Skip the PR/issue when compiling release notes Team:Detection Engine Security Solution Detection Engine Area backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 labels Jul 1, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/security-detection-engine (Team:Detection Engine)

@yctercero yctercero self-assigned this Jul 1, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @yctercero

@yctercero yctercero requested review from a team and dhurley14 July 1, 2025 15:48
@yctercero yctercero merged commit e974006 into elastic:main Jul 2, 2025
24 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16027465873

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 2, 2025
## Summary

Updated a test to check that the value of `has_exceptions` is greater
than 0 instead of checking for `1` specifically. Found that in MKI
alone, the prebuilt rules utilities don't seem to clean up. Prebuilt
rule installation gets called 8 times in these tests, each time
installing one rule with exceptions. Then in my test I add an exception
to one of the prebuilt rules without exceptions so it shows a total of
`has_exceptions: 9`.

(cherry picked from commit e974006)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 2, 2025
## Summary

Updated a test to check that the value of `has_exceptions` is greater
than 0 instead of checking for `1` specifically. Found that in MKI
alone, the prebuilt rules utilities don't seem to clean up. Prebuilt
rule installation gets called 8 times in these tests, each time
installing one rule with exceptions. Then in my test I add an exception
to one of the prebuilt rules without exceptions so it shows a total of
`has_exceptions: 9`.

(cherry picked from commit e974006)
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.19
9.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 2, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[Detection Engine][Telemetry] Update test
(#225937)](#225937)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Yara
Tercero","email":"yctercero@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-02T14:09:37Z","message":"[Detection
Engine][Telemetry] Update test (#225937)\n\n## Summary\n\nUpdated a test
to check that the value of `has_exceptions` is greater\nthan 0 instead
of checking for `1` specifically. Found that in MKI\nalone, the prebuilt
rules utilities don't seem to clean up. Prebuilt\nrule installation gets
called 8 times in these tests, each time\ninstalling one rule with
exceptions. Then in my test I add an exception\nto one of the prebuilt
rules without exceptions so it shows a total of\n`has_exceptions:
9`.","sha":"e974006285c9bd43c20d55007631eb662398a120","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detection
Engine","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Detection
Engine][Telemetry] Update
test","number":225937,"url":"https://github.com/elastic/kibana/pull/225937","mergeCommit":{"message":"[Detection
Engine][Telemetry] Update test (#225937)\n\n## Summary\n\nUpdated a test
to check that the value of `has_exceptions` is greater\nthan 0 instead
of checking for `1` specifically. Found that in MKI\nalone, the prebuilt
rules utilities don't seem to clean up. Prebuilt\nrule installation gets
called 8 times in these tests, each time\ninstalling one rule with
exceptions. Then in my test I add an exception\nto one of the prebuilt
rules without exceptions so it shows a total of\n`has_exceptions:
9`.","sha":"e974006285c9bd43c20d55007631eb662398a120"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225937","number":225937,"mergeCommit":{"message":"[Detection
Engine][Telemetry] Update test (#225937)\n\n## Summary\n\nUpdated a test
to check that the value of `has_exceptions` is greater\nthan 0 instead
of checking for `1` specifically. Found that in MKI\nalone, the prebuilt
rules utilities don't seem to clean up. Prebuilt\nrule installation gets
called 8 times in these tests, each time\ninstalling one rule with
exceptions. Then in my test I add an exception\nto one of the prebuilt
rules without exceptions so it shows a total of\n`has_exceptions:
9`.","sha":"e974006285c9bd43c20d55007631eb662398a120"}}]}] BACKPORT-->

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Jul 2, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [[Detection Engine][Telemetry] Update test
(#225937)](#225937)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Yara
Tercero","email":"yctercero@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-07-02T14:09:37Z","message":"[Detection
Engine][Telemetry] Update test (#225937)\n\n## Summary\n\nUpdated a test
to check that the value of `has_exceptions` is greater\nthan 0 instead
of checking for `1` specifically. Found that in MKI\nalone, the prebuilt
rules utilities don't seem to clean up. Prebuilt\nrule installation gets
called 8 times in these tests, each time\ninstalling one rule with
exceptions. Then in my test I add an exception\nto one of the prebuilt
rules without exceptions so it shows a total of\n`has_exceptions:
9`.","sha":"e974006285c9bd43c20d55007631eb662398a120","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Detection
Engine","backport:version","v9.1.0","v8.19.0","v9.2.0"],"title":"[Detection
Engine][Telemetry] Update
test","number":225937,"url":"https://github.com/elastic/kibana/pull/225937","mergeCommit":{"message":"[Detection
Engine][Telemetry] Update test (#225937)\n\n## Summary\n\nUpdated a test
to check that the value of `has_exceptions` is greater\nthan 0 instead
of checking for `1` specifically. Found that in MKI\nalone, the prebuilt
rules utilities don't seem to clean up. Prebuilt\nrule installation gets
called 8 times in these tests, each time\ninstalling one rule with
exceptions. Then in my test I add an exception\nto one of the prebuilt
rules without exceptions so it shows a total of\n`has_exceptions:
9`.","sha":"e974006285c9bd43c20d55007631eb662398a120"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/225937","number":225937,"mergeCommit":{"message":"[Detection
Engine][Telemetry] Update test (#225937)\n\n## Summary\n\nUpdated a test
to check that the value of `has_exceptions` is greater\nthan 0 instead
of checking for `1` specifically. Found that in MKI\nalone, the prebuilt
rules utilities don't seem to clean up. Prebuilt\nrule installation gets
called 8 times in these tests, each time\ninstalling one rule with
exceptions. Then in my test I add an exception\nto one of the prebuilt
rules without exceptions so it shows a total of\n`has_exceptions:
9`.","sha":"e974006285c9bd43c20d55007631eb662398a120"}}]}] BACKPORT-->

Co-authored-by: Yara Tercero <yctercero@users.noreply.github.com>
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
## Summary

Updated a test to check that the value of `has_exceptions` is greater
than 0 instead of checking for `1` specifically. Found that in MKI
alone, the prebuilt rules utilities don't seem to clean up. Prebuilt
rule installation gets called 8 times in these tests, each time
installing one rule with exceptions. Then in my test I add an exception
to one of the prebuilt rules without exceptions so it shows a total of
`has_exceptions: 9`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Detection Engine Security Solution Detection Engine Area v8.19.0 v9.1.0 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants