Skip to content

Bump 9.5.0 cypress no es docker#263740

Closed
delanni wants to merge 19 commits intoelastic:mainfrom
delanni:bump-9.5.0-cypress-no-es-docker
Closed

Bump 9.5.0 cypress no es docker#263740
delanni wants to merge 19 commits intoelastic:mainfrom
delanni:bump-9.5.0-cypress-no-es-docker

Conversation

@delanni
Copy link
Copy Markdown
Member

@delanni delanni commented Apr 16, 2026

Summary

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Apr 16, 2026

🤖 Jobs for this PR can be triggered through checkboxes. 🚧

ℹ️ To trigger the CI, please tick the checkbox below 👇

  • Click to trigger kibana-pull-request for this PR!
  • Click to trigger kibana-deploy-project-from-pr for this PR!
  • Click to trigger kibana-deploy-cloud-from-pr for this PR!
  • Click to trigger kibana-entity-store-performance-from-pr for this PR!
  • Click to trigger kibana-storybooks-from-pr for this PR!

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Apr 16, 2026

⏳ Build in-progress, with failures

Failed CI Steps

Test Failures

  • [job] [logs] affected Scout: [ security / entity_store ] plugin / local-serverless-security_complete - Entity Store History Snapshot - history snapshot: copies latest to history index and resets behaviors on latest
  • [job] [logs] affected Scout: [ security / entity_store ] plugin / local-serverless-security_complete - Entity Store History Snapshot - history snapshot: copies latest to history index and resets behaviors on latest
  • [job] [logs] affected Scout: [ security / entity_store ] plugin / local-stateful-classic - Entity Store History Snapshot - history snapshot: copies latest to history index and resets behaviors on latest
  • [job] [logs] affected Scout: [ security / entity_store ] plugin / local-stateful-classic - Entity Store History Snapshot - history snapshot: copies latest to history index and resets behaviors on latest
  • [job] [logs] affected Scout: [ platform / streams_app-stateful-classic ] plugin / local-stateful-classic - Stream data routing - AI suggestions interactions - should reject suggestion
  • [job] [logs] affected Scout: [ platform / streams_app-stateful-classic ] plugin / local-stateful-classic - Stream list view - table values - should display correct doc count in the table
  • [job] [logs] affected Scout: [ platform / streams_app-stateful-classic ] plugin / local-stateful-classic - Stream list view - table values - should display correct doc count in the table
  • [job] [logs] Jest Tests #11 / Trusted apps form ConditionBuilder Advanced Mode Process Descendants should retain "process_descendants" tag when switching from advanced mode to basic mode and then back to advanced mode options

History

@delanni delanni added the ci:use-selective-testing Turns on selective testing features for the PR CI run label Apr 17, 2026
@patrykkopycinski
Copy link
Copy Markdown
Contributor

I dug into the CI failures on this branch and pushed a proposed fix to my fork: patrykkopycinski/kibana@6e62c7e39cde97e532122a66a69f9de8b4b8686b.

Root cause (two bugs, triggered by the same circular dependency)

  1. Stateful Cypress failures (latest kibana-ci run): 30d27f8 hard-coded DOCKER_TAG = '9.4.0-SNAPSHOT' and dropped export CYPRESS_ES_FROM=snapshot. Cypress then pulled elasticsearch:9.4.0-SNAPSHOT while Kibana ran 9.5.0-SNAPSHOT, so Kibana refused to start:

    [elasticsearch-service] This version of Kibana (v9.5.0-SNAPSHOT) is incompatible with the following Elasticsearch nodes in your cluster: v9.4.0 ...
    [kibana] failed to match pattern within 900 seconds [pattern=/Kibana is now available/]
    
  2. Why 58d9e42 (set CYPRESS_ES_FROM=snapshot) also failed on Serverless suites: the runner in x-pack/solutions/security/plugins/security_solution/scripts/run_cypress/parallel.ts let CYPRESS_ES_FROM unconditionally override the suite's esTestCluster.from: serverless, so ES booted from a stateful snapshot tar.gz with serverless-only settings and died:

    fatal exception while booting Elasticsearch
      java.lang.IllegalArgumentException: unknown setting [xpack.security.authc.native_roles.enabled]
      java.lang.IllegalArgumentException: unknown setting [serverless.search.enable_replicas_for_instant_failover]
    

Fix (3 files, ~14 lines)

  • Revert 30d27f8: restore DOCKER_TAG = \${pkg.version}-SNAPSHOT`and re-addexport CYPRESS_ES_FROM=snapshotinsetup_job_env.sh`.
  • Narrow CYPRESS_ES_FROM scope in parallel.ts so it only affects the stateful path; serverless configs always win:
    const esFrom = configEsFrom === 'serverless' ? 'serverless' : esFromEnv || 'docker';

This keeps stateful Cypress suites off the 9.5.0 Docker image (which isn't published yet) while leaving the serverless suites on the kibana-ci/elasticsearch-serverless image where they work.

Feel free to cherry-pick the commit or grab the diff directly from the link above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:all-cypress-suites ci:use-selective-testing Turns on selective testing features for the PR CI run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants