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

[FLAKY ON MKI] x-pack/test_serverless/functional/test_suites/security/ftr/cloud_security_posture/agentless_api/create_agent.ts` #199091

Closed
wayneseymour opened this issue Nov 6, 2024 · 2 comments · Fixed by #199247
Assignees
Labels
8.17 candidate automation impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:Cloud Security Cloud Security team related test-failure-flaky

Comments

@wayneseymour
Copy link
Member

Summary

Test failing identically on three consecutive test runs against MKI security project

Test

serverless security UI cloud_security_posture Agentless API Serverless should create agentless-agent

Config

x-pack/test_serverless/functional/test_suites/security/config.ts

Error message

TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="integrationNameLink"])
Wait timed out after 10006ms
    at /root/.qaf/data/git/kibana/node_modules/selenium-webdriver/lib/webdriver.js:923:22
    at processTicksAndRejections (node:internal/process/task_queues:95:5) {
  remoteStacktrace: ''
}

Screenshot

Image

@wayneseymour wayneseymour added impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:Cloud Security Cloud Security team related test-failure-flaky labels Nov 6, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security)

wayneseymour added a commit to wayneseymour/kibana that referenced this issue Nov 6, 2024
…ftr/cloud_security_posture/agentless_api/create_agent.ts`

See details: elastic#199091
@maxcold maxcold self-assigned this Nov 6, 2024
wayneseymour added a commit that referenced this issue Nov 6, 2024
…/ftr/cloud_security_posture/agentless_api/create_agent.ts` (#199094)

See details: #199091

---------

Co-authored-by: Robert Oskamp <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
@maxcold maxcold removed their assignment Nov 6, 2024
@opauloh
Copy link
Contributor

opauloh commented Nov 7, 2024

I pushed a PR to fix that issue here.

Unfortunately, the root cause took a long time to be discovered because the Screenshot didn't help to spot an error that happened on the previous screen, also we only have access to browser logs and not server logs. The only clue I had was a 400 request to /api/fleet/agent_policies?sys_monitoring=true which eventually helped to correlate the issue with this PR changes.

[00:09:21] │ debg Find.findByCssSelector('[data-test-subj="createPackagePolicySaveButton"]') with timeout=10000
[00:09:21] │ debg isGlobalLoadingIndicatorVisible
[00:09:21] │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:21] │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:21] │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:21] │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:36] │ debg navigateToActualUrl https://REDACTED:443/app/integrations#/detail/cloud_security_posture/policies
[00:09:36] │ warn browser[SEVERE] https://REDACTED:443/api/fleet/agent_policies?sys_monitoring=true - Failed to load resource: the server responded with a status of 400 ()
[00:09:37] │ debg isGlobalLoadingIndicatorVisible
[00:09:37] │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:37] │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:37] │ debg browser[WARNING] security - Error with Permissions-Policy header: Unrecognized feature: 'web-share'.
[00:09:37] │ debg browser[INFO] https://REDACTED/app/integrations?_t=1730874103625#/detail/cloud_security_posture/policies

mgadewoll pushed a commit to mgadewoll/kibana that referenced this issue Nov 7, 2024
…/ftr/cloud_security_posture/agentless_api/create_agent.ts` (elastic#199094)

See details: elastic#199091

---------

Co-authored-by: Robert Oskamp <[email protected]>
Co-authored-by: kibanamachine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.17 candidate automation impact:high Addressing this issue will have a high level of impact on the quality/strength of our product. Team:Cloud Security Cloud Security team related test-failure-flaky
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants