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

Failing test: Security Solution Cypress.x-pack/plugins/security_solution/public/management/cypress/e2e/response_actions/response_console/process_operations·cy·ts - Response console Processes operations: "suspend-process --pid" - should suspend a process "suspend-process --pid" - should suspend a process #170371

Open
kibanamachine opened this issue Nov 1, 2023 · 74 comments · Fixed by #181265
Assignees
Labels
blocker failed-test A test failure on a tracked branch, potentially flaky-test OLM Sprint skipped-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v9.0.0

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Nov 1, 2023

A test failed on a tracked branch

AssertionError: Timed out retrying after 60000ms: Expected to find content: 'Action pending.' but never did.
    at waitForCommandToBeExecuted (webpack:///./tasks/response_console.ts:58:36)
    at Context.eval (webpack:///./e2e/response_actions/response_console/process_operations.cy.ts:123:33)

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Nov 1, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label Nov 1, 2023
@kibanamachine kibanamachine added the Team:Defend Workflows “EDR Workflows” sub-team of Security Solution label Nov 1, 2023
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot removed the needs-team Issues missing a team label label Nov 1, 2023
@kevinlog
Copy link
Contributor

kevinlog commented Nov 2, 2023

Related: #170369

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@ashokaditya
Copy link
Member

The reason for flakiness in process actions (process, kill and suspend) is

  1. sometimes the cron jobs are not running right away or at VM boot, thus the process test fails looking for usr/sbin/cron
  2. The other two tests (kill and suspend) depend on the processes test to provide the pid for the cron job (usr/sbin/cron), which may or may not be running.

The way to avoid this is to

  1. Find 2 processes that always run and are okay to suspend/kill. Either we start/create these processes after agent install or VM boot or pick ones that are sure to be running.
  2. Make the kill/suspend processes use these processes for separate pids, so that the tests are independent.

ashokaditya added a commit to ashokaditya/kibana that referenced this issue Nov 15, 2023
adds additional test subject ids to help with selecting dom elements

closes elastic/issues/170370
closes elastic/issues/170369
closes elastic/issues/170371
@ashokaditya
Copy link
Member

PR /pull/171319

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine kibanamachine reopened this Apr 20, 2024
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 8.14

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 8.14

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@tomsonpl
Copy link
Contributor

Should be already fixed by: #181265

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 8.14

1 similar comment
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 8.14

@kibanamachine
Copy link
Contributor Author

Skipped

main: ebeea05
8.14: fe4620f

@tomsonpl
Copy link
Contributor

Revert skipped tests #181372

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

mistic added a commit that referenced this issue Oct 8, 2024
@mistic
Copy link
Member

mistic commented Oct 8, 2024

Skipped.

main: 2dfd8f1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker failed-test A test failure on a tracked branch, potentially flaky-test OLM Sprint skipped-test Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v9.0.0
Projects
None yet
6 participants