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/test/security_solution_cypress/cypress/e2e/detection_response/detection_alerts/assignments/assignments_serverless_essentials·cy·ts - Alert user assignment - Serverless Essentials Authorization / RBAC users with editing privileges should be able to update assignees users with editing privileges should be able to update assignees #172520

Closed
kibanamachine opened this issue Dec 4, 2023 · 5 comments
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Detection Engine Security Solution Detection Engine Area Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. triage_needed

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Dec 4, 2023

A test failed on a tracked branch

CypressError: Timed out retrying after 150000ms: The command was expected to run against origin `http://localhost:5665` but the application is at origin `https://auth.elastic.co`.

This commonly happens when you have either not navigated to the expected origin or have navigated away unexpectedly.

Using `cy.origin()` to wrap the commands run on `https://auth.elastic.co` will likely fix this issue.

`cy.origin('https://auth.elastic.co', () => {`
`  <commands targeting https://auth.elastic.co go here>`
`})`

https://on.cypress.io/cy-visit-succeeded-but-commands-fail
    at cypressErr (http://localhost:5665/__cypress/runner/cypress_runner.js:75008:18)
    at Object.errByPath (http://localhost:5665/__cypress/runner/cypress_runner.js:75063:10)
    at Object.commandCanCommunicateWithAUT (http://localhost:5665/__cypress/runner/cypress_runner.js:145193:90)
    at <unknown> (http://localhost:5665/__cypress/runner/cypress_runner.js:132145:22)
    at Object.subjectFn (http://localhost:5665/__cypress/runner/cypress_runner.js:144030:16)
    at $Cy.verifyUpcomingAssertions (http://localhost:5665/__cypress/runner/cypress_runner.js:143374:31)
    at onRetry (http://localhost:5665/__cypress/runner/cypress_runner.js:144021:15)
    at tryCatcher (http://localhost:5665/__cypress/runner/cypress_runner.js:1807:23)
    at Promise.attempt.Promise.try (http://localhost:5665/__cypress/runner/cypress_runner.js:4315:29)
    at whenStable (http://localhost:5665/__cypress/runner/cypress_runner.js:143908:68)
    at <unknown> (http://localhost:5665/__cypress/runner/cypress_runner.js:143849:14)
    at tryCatcher (http://localhost:5665/__cypress/runner/cypress_runner.js:1807:23)
    at Promise._settlePromiseFromHandler (http://localhost:5665/__cypress/runner/cypress_runner.js:1519:31)
    at Promise._settlePromise (http://localhost:5665/__cypress/runner/cypress_runner.js:1576:18)
    at Promise._settlePromise0 (http://localhost:5665/__cypress/runner/cypress_runner.js:1621:10)
    at Promise._settlePromises (http://localhost:5665/__cypress/runner/cypress_runner.js:1701:18)
    at Promise._fulfill (http://localhost:5665/__cypress/runner/cypress_runner.js:1645:18)
    at <unknown> (http://localhost:5665/__cypress/runner/cypress_runner.js:5450:46)
From Your Spec Code:
    at waitForPageTitleToBeShown (webpack:///./tasks/alert_assignments.ts:50:21)
    at loadPageAs (webpack:///./tasks/alert_assignments.ts:56:2)
    at eval (webpack:///./e2e/detection_response/detection_alerts/assignments/assignments_serverless_essentials.cy.ts:72:21)
at Array.forEach (<anonymous>)
    at Context.eval (webpack:///./e2e/detection_response/detection_alerts/assignments/assignments_serverless_essentials.cy.ts:71:16)

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Dec 4, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label Dec 4, 2023
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@mistic mistic added the Team:Detections and Resp Security Detection Response Team label Dec 4, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detections-response (Team:Detections and Resp)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 4, 2023
@mistic mistic added needs-team Issues missing a team label Team:Detection Alerts Security Detection Alerts Area Team and removed Team:Detections and Resp Security Detection Response Team labels Dec 4, 2023
@botelastic botelastic bot removed the needs-team Issues missing a team label label Dec 4, 2023
mistic added a commit that referenced this issue Dec 4, 2023
@mistic
Copy link
Member

mistic commented Dec 4, 2023

Skipped.

main: f600794

@banderror banderror added triage_needed Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Engine Security Solution Detection Engine Area and removed Team:Detection Alerts Security Detection Alerts Area Team labels Dec 15, 2023
@elasticmachine
Copy link
Contributor

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

@yctercero yctercero assigned e40pud and unassigned yctercero Jan 2, 2024
e40pud added a commit to e40pud/kibana that referenced this issue Jan 31, 2024
@e40pud e40pud mentioned this issue Jan 31, 2024
1 task
e40pud added a commit that referenced this issue Feb 7, 2024
## Summary

These changes fix flaky alert assignments cypress tests:
- #173429
- #172520
- #172557

@MadameSheema mentioned that there were a lot of changes around login
functionality recently which could have fixed original issues. We agreed
that we will run a flaky test runner and if everything works fine we
would un-skip tests and monitor them after the merge.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ESS 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5064)
- [Serverless 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5052)
@e40pud
Copy link
Contributor

e40pud commented Feb 7, 2024

We enabled these tests in #175965 and will be monitoring for new flakes.

@e40pud e40pud closed this as completed Feb 7, 2024
fkanout pushed a commit to fkanout/kibana that referenced this issue Feb 7, 2024
## Summary

These changes fix flaky alert assignments cypress tests:
- elastic#173429
- elastic#172520
- elastic#172557

@MadameSheema mentioned that there were a lot of changes around login
functionality recently which could have fixed original issues. We agreed
that we will run a flaky test runner and if everything works fine we
would un-skip tests and monitor them after the merge.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ESS 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5064)
- [Serverless 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5052)
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this issue Feb 15, 2024
## Summary

These changes fix flaky alert assignments cypress tests:
- elastic#173429
- elastic#172520
- elastic#172557

@MadameSheema mentioned that there were a lot of changes around login
functionality recently which could have fixed original issues. We agreed
that we will run a flaky test runner and if everything works fine we
would un-skip tests and monitor them after the merge.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ESS 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5064)
- [Serverless 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5052)
fkanout pushed a commit to fkanout/kibana that referenced this issue Mar 4, 2024
## Summary

These changes fix flaky alert assignments cypress tests:
- elastic#173429
- elastic#172520
- elastic#172557

@MadameSheema mentioned that there were a lot of changes around login
functionality recently which could have fixed original issues. We agreed
that we will run a flaky test runner and if everything works fine we
would un-skip tests and monitor them after the merge.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ESS 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5064)
- [Serverless 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5052)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Team:Detection Engine Security Solution Detection Engine Area Team:Detections and Resp Security Detection Response Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. triage_needed
Projects
None yet
Development

No branches or pull requests

6 participants