elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.58k stars 8.21k forks source link

Failing test: Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/infra/hosts_view·ts - InfraOps App Metrics UI Hosts View #With data "before all" hook for "should be accessible from the Inventory page" #190195

Closed kibanamachine closed 2 weeks ago

kibanamachine commented 2 months ago

A test failed on a tracked branch

Error: Failed to fetch latest APM package version, received HTTP 500 and message: '503 Service Temporarily Unavailable' error response from package registry at https://epr.elastic.co/package/apm/8.16.0-SNAPSHOT/
    at ApmSynthtraceKibanaClient.fetchLatestApmPackageVersion (apm_synthtrace_kibana_client.ts:42:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at ApmSynthtraceKibanaClient.installApmPackage (apm_synthtrace_kibana_client.ts:55:24)
    at Context.<anonymous> (hosts_view.ts:224:26)
    at Object.apply (wrap_function.js:73:16)

First failure: kibana-on-merge - main

elasticmachine commented 2 months ago

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

crespocarlos commented 2 months ago

We've had this error on APM tests in the past. @cauemarcondes do you remember if we implemented a fix for that?

cauemarcondes commented 2 months ago

Before the problem was on Synthtrace. But @neptunian fixed it here.

This is the cause of the problem:

info Saving page source to: /opt/buildkite-agent/builds/bk-agent-prod-gcp-1723151641798118823/elastic/kibana-on-merge/kibana/x-pack/test/functional/failure_debug/html/InfraOps App Metrics UI Hosts View With data before all hook for should be acces-463b133e34fd84cf41f307b940e4c2113ccc4fa613d5e04687471d9a9fd31a52.html
[00:14:11]             └- ✖ fail: InfraOps App Metrics UI Hosts View #With data "before all" hook for "should be accessible from the Inventory page"
[00:14:11]             │       Error: Failed to fetch latest APM package version, received HTTP 500 and message: '503 Service Temporarily Unavailable' error response frompackage registry at https://epr.elastic.co/package/apm/8.16.0-SNAPSHOT/

https://epr.elastic.co/package/apm/8.16.0-SNAPSHOT does exist.

cauemarcondes commented 2 months ago

The problem happens on this before function https://github.com/elastic/kibana/blob/main/x-pack/test/functional/apps/infra/hosts_view.ts#L224-L228

cauemarcondes commented 2 months ago

@crespocarlos APM does this a bit different https://github.com/elastic/kibana/blob/main/x-pack/plugins/observability_solution/apm/ftr_e2e/setup_cypress_node_events.ts#L28 than infra.

crespocarlos commented 2 months ago

There are some tests in APM using the same synthtrace Kibana client https://github.com/elastic/kibana/blob/main/x-pack/test/apm_api_integration/tests/diagnostics/index_pattern_settings.ts#L49. I wonder if they also failed.

MiriamAparicio commented 2 months ago

This test has the same problem as APM tests when trying to install apm package

MiriamAparicio commented 2 weeks ago

This PR hopefully will fix this issue