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

[Cypress] Hardcode fleet server 8.13.0 version in tests #180879

Merged
merged 3 commits into from
Apr 16, 2024

Conversation

tomsonpl
Copy link
Contributor

@tomsonpl tomsonpl commented Apr 16, 2024

We've identified all Cypress tests using fleet-server in 8.14.0 version have started to fail recently therefore blocking other PRs from merging.

Together with @szwarckonrad we came up with this PR as a quick fix that hardcodes our tests to use FS 8.13.0 in order to unblock other PRs.

@elastic/fleet I believe this should be investigated on your side too as to understand what changed in 8.14.0 that FS is unable to register within ES. I am wondering if this is just our tests not being aligned with new changes, or is it a real bug in production?

cc: @dasansol92
Zrzut ekranu 2024-04-16 o 11 31 43

   │ERROR Error: Timed out waiting for host [dev-fleet-server.8212.1n5b] to show up in Fleet. Waited 120 seconds
2024-04-16 05:56:03	       │          at waitForHostToEnroll (fleet_services.ts:221:7)
2024-04-16 05:56:03	       │          at fleet_server_services.ts:330:11
2024-04-16 05:56:03	       │          at tooling_log.ts:84:18
2024-04-16 05:56:03	       │          at startFleetServerWithDocker (fleet_server_services.ts:395:35)
2024-04-16 05:56:03	       │          at fleet_server_services.ts:142:32
2024-04-16 05:56:03	       │          at tooling_log.ts:84:18
2024-04-16 05:56:03	       │          at parallel.ts:344:31
2024-04-16 05:56:03	       │          at withProcRunner (with_proc_runner.ts:29:5)
2024-04-16 05:56:03	       │          at concurrency (parallel.ts:217:13)
2024-04-16 05:56:03	       │          at /opt/local-ssd/buildkite/builds/kb-n2-4-virt-c91969ffbad5cc2b/elastic/kibana-on-merge/kibana/node_modules/p-map/index.js:57:22 {
2024-04-16 05:56:03	       │        agentId: '732018e1-53f1-4d41-84a8-bf92127abb57',
2024-04-16 05:56:03	       │        hostname: 'dev-fleet-server.8212.1n5b'
2024-04-16 05:56:03	       │      }
2024-04-16 05:56:03	 info [kibana] exited with null after 189.0 seconds
2024-04-16 05:56:03	ERROR UNHANDLED ERROR

@tomsonpl tomsonpl added release_note:skip Skip the PR/issue when compiling release notes ci:all-cypress-suites labels Apr 16, 2024
@tomsonpl tomsonpl self-assigned this Apr 16, 2024
@tomsonpl
Copy link
Contributor Author

/ci

@tomsonpl tomsonpl changed the title [TEST do not merge] Change fs to 8.13.0 in osquery and parallel [Cypress] Hardcode fleet server 8.13.0 version in tests Apr 16, 2024
@tomsonpl tomsonpl marked this pull request as ready for review April 16, 2024 09:23
Copy link
Contributor

@maximpn maximpn left a comment

Choose a reason for hiding this comment

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

LGTM

It should unblock my PR as well.

@@ -12,7 +12,7 @@ import {
startFleetServer,
} from '@kbn/security-solution-plugin/scripts/endpoint/common/fleet_server/fleet_server_services';
import { Manager } from './resource_manager';
import { getLatestAvailableAgentVersion } from './utils';
// import { getLatestAvailableAgentVersion } from './utils';
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: It's better to remove code instead of commenting it. Even when you plan to uncomment it in a next PR it may never happen.

Copy link
Contributor Author

@tomsonpl tomsonpl Apr 16, 2024

Choose a reason for hiding this comment

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

Thank you Maxim, in general I agree, but I really hope that this will get back in place ASAP, we don't want a hardcoded version here forever ;p
But anyway: I hope you don't mind if we keep it this way this time, I want to get this merged asap since it's FF day.

Copy link
Member

@MadameSheema MadameSheema left a comment

Choose a reason for hiding this comment

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

LGTM!

@delanni
Copy link
Contributor

delanni commented Apr 16, 2024

Proven to work in a separate PR: #180871 - admin-merging to get main unblocked

@delanni delanni merged commit 501837a into elastic:main Apr 16, 2024
4 of 7 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Apr 16, 2024
@kibana-ci
Copy link
Collaborator

kibana-ci commented Apr 16, 2024

💔 Build Failed

Failed CI Steps

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @tomsonpl

tomsonpl added a commit to tomsonpl/kibana that referenced this pull request Apr 17, 2024
tomsonpl added a commit to tomsonpl/kibana that referenced this pull request Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting ci:all-cypress-suites release_note:skip Skip the PR/issue when compiling release notes v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants