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

[Entity Analytics] Allow task status to be "claiming" in disable/enable test #196172

Merged
merged 5 commits into from
Oct 15, 2024

Conversation

hop-dev
Copy link
Contributor

@hop-dev hop-dev commented Oct 14, 2024

Summary

Closes #196166

The test is checking that when we disable the risk engine, the risk ewngine task is registered but not actively running.

This check originally checked if the task status was "idle".

We have had a failure where the task status is "claiming", reading the docs about this task status (below) this is also an acceptable "non-running" status

  // idle: Task Instance isn't being worked on
  // claiming: A Kibana instance has claimed ownership but hasn't started running
  //           the Task Instance yet

@hop-dev hop-dev added release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) Team:Entity Analytics Security Entity Analytics Team labels Oct 14, 2024
@hop-dev hop-dev self-assigned this Oct 14, 2024
@hop-dev hop-dev requested a review from a team as a code owner October 14, 2024 15:48
@hop-dev hop-dev requested a review from tiansivive October 14, 2024 15:48
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-entity-analytics (Team:Entity Analytics)

Copy link
Contributor

@jaredburgettelastic jaredburgettelastic left a comment

Choose a reason for hiding this comment

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

LGTM

@hop-dev hop-dev enabled auto-merge (squash) October 14, 2024 16:00
@elasticmachine
Copy link
Contributor

elasticmachine commented Oct 15, 2024

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #19 / AttackDiscovery page layout renders the expected page title
  • [job] [logs] Jest Tests #19 / AttackDiscovery page layout renders the expected page title
  • [job] [logs] Jest Tests #19 / AttackDiscovery page layout renders the header
  • [job] [logs] Jest Tests #19 / AttackDiscovery page layout renders the header
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false does NOT render attack discoveries
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false does NOT render attack discoveries
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false does NOT render the empty prompt
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false does NOT render the empty prompt
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false does NOT render the loading callout
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false does NOT render the loading callout
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false does NOT render the summary
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false does NOT render the summary
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false does NOT render the upgrade call to action
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false does NOT render the upgrade call to action
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false renders the animated logo, because connectors are configured and the initial fetch is pending
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured and didInitialFetch is false renders the animated logo, because connectors are configured and the initial fetch is pending
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false does NOT render attack discoveries
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false does NOT render attack discoveries
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false does NOT render the animated logo, because connectorId is undefined
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false does NOT render the animated logo, because connectorId is undefined
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false does NOT render the loading callout
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false does NOT render the loading callout
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false does NOT render the summary
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false does NOT render the summary
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false does NOT render the upgrade call to action
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false does NOT render the upgrade call to action
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false renders the empty prompt
  • [job] [logs] Jest Tests #19 / AttackDiscovery when connectors are configured, connectorId is undefined, and didInitialFetch is false renders the empty prompt
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries does NOT render attack discoveries
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries does NOT render attack discoveries
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries does NOT render the animated logo
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries does NOT render the animated logo
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries does NOT render the loading callout
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries does NOT render the loading callout
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries does NOT render the summary
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries does NOT render the summary
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries does NOT render the upgrade call to action
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries does NOT render the upgrade call to action
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries renders the empty prompt
  • [job] [logs] Jest Tests #19 / AttackDiscovery when there are no attack discoveries renders the empty prompt

Metrics [docs]

✅ unchanged

History

cc @hop-dev

@jaredburgettelastic
Copy link
Contributor

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 15, 2024
…le test (elastic#196172)

## Summary

Closes elastic#196166

The test is checking that when we disable the risk engine, the risk
ewngine task is registered but not actively running.

This check originally checked if the task status was "idle".

We have had a failure where the task status is "claiming", reading the
docs about this task status (below) this is also an acceptable
"non-running" status

```
  // idle: Task Instance isn't being worked on
  // claiming: A Kibana instance has claimed ownership but hasn't started running
  //           the Task Instance yet
```

(cherry picked from commit 40bfd12)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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 Oct 16, 2024
… in disable/enable test (#196172) (#196454)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Entity Analytics] Allow task status to be "claiming" in
disable/enable test
(#196172)](#196172)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Mark
Hopkin","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-15T22:27:50Z","message":"[Entity
Analytics] Allow task status to be \"claiming\" in disable/enable test
(#196172)\n\n## Summary\r\n\r\nCloses
#196166 \r\n\r\nThe test is
checking that when we disable the risk engine, the risk\r\newngine task
is registered but not actively running.\r\n\r\nThis check originally
checked if the task status was \"idle\".\r\n\r\nWe have had a failure
where the task status is \"claiming\", reading the\r\ndocs about this
task status (below) this is also an acceptable\r\n\"non-running\"
status\r\n\r\n```\r\n // idle: Task Instance isn't being worked on\r\n
// claiming: A Kibana instance has claimed ownership but hasn't started
running\r\n // the Task Instance
yet\r\n```","sha":"40bfd12cc55ebfb1641ef21133fb009c23b0106f","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:
SecuritySolution","backport:prev-minor","Team:Entity
Analytics"],"title":"[Entity Analytics] Allow task status to be
\"claiming\" in disable/enable
test","number":196172,"url":"https://github.com/elastic/kibana/pull/196172","mergeCommit":{"message":"[Entity
Analytics] Allow task status to be \"claiming\" in disable/enable test
(#196172)\n\n## Summary\r\n\r\nCloses
#196166 \r\n\r\nThe test is
checking that when we disable the risk engine, the risk\r\newngine task
is registered but not actively running.\r\n\r\nThis check originally
checked if the task status was \"idle\".\r\n\r\nWe have had a failure
where the task status is \"claiming\", reading the\r\ndocs about this
task status (below) this is also an acceptable\r\n\"non-running\"
status\r\n\r\n```\r\n // idle: Task Instance isn't being worked on\r\n
// claiming: A Kibana instance has claimed ownership but hasn't started
running\r\n // the Task Instance
yet\r\n```","sha":"40bfd12cc55ebfb1641ef21133fb009c23b0106f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/196172","number":196172,"mergeCommit":{"message":"[Entity
Analytics] Allow task status to be \"claiming\" in disable/enable test
(#196172)\n\n## Summary\r\n\r\nCloses
#196166 \r\n\r\nThe test is
checking that when we disable the risk engine, the risk\r\newngine task
is registered but not actively running.\r\n\r\nThis check originally
checked if the task status was \"idle\".\r\n\r\nWe have had a failure
where the task status is \"claiming\", reading the\r\ndocs about this
task status (below) this is also an acceptable\r\n\"non-running\"
status\r\n\r\n```\r\n // idle: Task Instance isn't being worked on\r\n
// claiming: A Kibana instance has claimed ownership but hasn't started
running\r\n // the Task Instance
yet\r\n```","sha":"40bfd12cc55ebfb1641ef21133fb009c23b0106f"}}]}]
BACKPORT-->

Co-authored-by: Mark Hopkin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Entity Analytics Security Entity Analytics Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.16.0 v9.0.0
Projects
None yet
4 participants