-
Notifications
You must be signed in to change notification settings - Fork 204
Attempt to make test more reliable by querying ES directly #8422
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
Attempt to make test more reliable by querying ES directly #8422
Conversation
Attempt to make the TestFIPSAgentConnectingToFIPSFleetServerInECHFRH test more reliable by querying ES for agents running the cloud policy instead of gathering agents from Kibana.
|
I don't love that we are reaching into ES docs to determine whether the Agent is FIPS-capable. I would prefer to instead use the Kibana Fleet API and check its response to determine whether the Agent is FIPS-capable. I'm trying this out in #8421 with a |
|
I like the solution in Shaunak's PR more as well. The FIPS agent should eventually be accessible via Kibana's API. Going around it to ES itself feels unnecessarily hacky. |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
Closing as the other solution seems to work well enough for the moment |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
As discussed in the FIPS sync, i've fixed this PR to work with the eventually loop so that we can eliminate calls to Kibana as it is a component that is only introduced for testing. |
ycombinator
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Let's run this in CI at least 10 times to make sure there's no flakiness.
|
buildkite test this |
094c116 to
bb0f434
Compare
|
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
|
I have unassigned my teams from the review. It seems that the issue is not related to the CI itself. Please let me know if we can assist with anything else. Thanka |
|
buildkite test this |
swiatekm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this actually fixes the flakiness, I'd be interested to find out why going through Kibana introduces it in the first place.
|
buildkite test this |
2 similar comments
|
buildkite test this |
|
buildkite test this |
|
This pull request is now in conflicts. Could you fix it? 🙏 |
|
💛 Build succeeded, but was flaky
Failed CI StepsHistory
|
Attempt to make the TestFIPSAgentConnectingToFIPSFleetServerInECHFRH test more reliable by querying ES for agents running the cloud policy instead of gathering agents from Kibana. (cherry picked from commit d1d9e16)
…-hosted * feature/hosted-stack-using-oblt-cli: (26 commits) Use the current official docker image for oblt-cli Mark the elasticinframetrics processor as deprecated and schedule for removal (#8659) [main][Automation] Update versions (#8668) chore: Update create_deployment_csp_configuration.yaml (#8669) Attempt to make test more reliable by querying ES directly (#8422) [test] split up ess and beats serverless integration tests (#8551) Remove resource/k8s processor and use k8sattributes processor for service attributes (#8599) fix: use --force-confold for deb tests in TestUpgradeAgentWithTamperProtectedEndpoint_DEB (#8649) [main][Automation] Bump stack images versions to 9.1.0-ea0b7542 (#8612) chore: Update to elastic/beats@f6594fb72670 (#8640) [deb/rpm] restart endpoint with tamper protection after elastic-agent (#8637) ci: don't preinstall fleet packages on retried CI steps (#8636) chore: Update to elastic/beats@6b6941eed496 (#8619) [main][Automation] Bump VM Image version to 1750467641 (#8617) flaky: skip TestUpgradeAgentWithTamperProtectedEndpoint_RPM (#8626) Add skip-changelog PR label for bump VM PRs (#8627) build(deps): bump github.com/elastic/go-seccomp-bpf from 1.5.0 to 1.6.0 (#8611) [ci] fix k8s integration tests flakiness (#8575) bump apmconfig Otel extension to v0.3.0 (#8600) Enhancement/6394 allow deb rpm to upgrade with endpoint tamper protection (#6907) ...
…8662) Attempt to make the TestFIPSAgentConnectingToFIPSFleetServerInECHFRH test more reliable by querying ES for agents running the cloud policy instead of gathering agents from Kibana. (cherry picked from commit d1d9e16) Co-authored-by: Michel Laterman <82832767+michel-laterman@users.noreply.github.com> Co-authored-by: michel-laterman <michel.laterman@elastic.co>





What does this PR do?
Attempt to make the TestFIPSAgentConnectingToFIPSFleetServerInECHFRH test more reliable by querying ES for agents running the cloud policy instead of gathering agents from Kibana.
Related issues