[ci] Bump 9.5.0: route serverless Cypress to serverless ES (fix for #263740)#264100
[ci] Bump 9.5.0: route serverless Cypress to serverless ES (fix for #263740)#264100patrykkopycinski wants to merge 23 commits intoelastic:mainfrom
Conversation
…ES_FROM=snapshot
The 9.5.0 ES Docker image isn't published yet (circular dep with the
unified release), so Cypress must fall back to the snapshot tar.gz.
Re-adds `CYPRESS_ES_FROM=snapshot` in setup_job_env.sh and restores the
dynamic `${pkg.version}-SNAPSHOT` DOCKER_TAG (reverting 30d27f8). That
alone breaks *serverless* Cypress suites because parallel.ts let the env
var unconditionally override `esTestCluster.from: serverless`, so ES
booted from a stateful snapshot with serverless-only settings and
crashed with:
unknown setting [xpack.security.authc.native_roles.enabled]
unknown setting [serverless.search.enable_replicas_for_instant_failover]
Flip the precedence so a serverless config always wins, and
CYPRESS_ES_FROM only influences stateful runs.
|
/ci |
|
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
|
/ci |
Build 429856 — fix validated, 2 unrelated flakes blocking greenFix-validated signals (all green on this build):
Failures (2, both unrelated to this PR):
Retrying via |
|
/ci |
Build 430018 — core fix validated, 2 tracked-flake failuresAll failures on this build are pre-existing, tracked Scout flakes unrelated to this PR's diff (
The ES provisioning fix itself is validated — every Security Solution Cypress job on this build has passed. Retrying to let the flakes pass on retry. /ci |
|
/ci |
1 similar comment
|
/ci |
|
/ci |
2 similar comments
|
/ci |
|
/ci |
|
/ci |
1 similar comment
|
/ci |
Build 430124 — ✅ fully greenAll 408 jobs passed on the merged-with-main HEAD ( Follow-up / long-term solution: #264218 auto-detects when the matching ES Docker image isn't yet published (so the same scenario doesn't block future 9.6.0 / 9.7.0 / ... bumps). Already green on its own CI. |
💚 Build Succeeded
Metrics [docs]
History
|
Summary
Parallel draft of #263740 with the CI fix applied so I can babysit the build while the main PR stays in place.
The 9.5.0 ES Docker image isn't published yet (circular dep with the unified release), so Cypress must fall back to the snapshot tar.gz. This PR:
DOCKER_TAG = \${pkg.version}-SNAPSHOT`and re-addsexport CYPRESS_ES_FROM=snapshotinsetup_job_env.sh. Without this, stateful Cypress pulled ES 9.4.0 against Kibana 9.5.0 and crashed withThis version of Kibana (v9.5.0-SNAPSHOT) is incompatible with the following Elasticsearch nodes in your cluster: v9.4.0`.CYPRESS_ES_FROMscope inx-pack/solutions/security/plugins/security_solution/scripts/run_cypress/parallel.tsso it only overrides the stateful path. Without this, 58d9e42's earlier snapshot attempt broke serverless Cypress suites because a stateful tar.gz rejectedxpack.security.authc.native_roles.enabledandserverless.search.enable_replicas_for_instant_failoverasunknown setting.Net effect: stateful Cypress uses the snapshot tar.gz, serverless Cypress keeps using
kibana-ci/elasticsearch-serverless, and the Kibana/ES version match is restored.Diff (3 files, +14/−3)
.buildkite/scripts/common/setup_job_env.shsrc/platform/packages/shared/kbn-es/src/utils/docker.tsx-pack/solutions/security/plugins/security_solution/scripts/run_cypress/parallel.tsTest plan
/ci— wait for green build on stateful + serverless Cypress jobs (Defend Workflows, Security Solution, Osquery, etc.)[elasticsearch-service]no longer reports a version mismatchkibana-ci/elasticsearch-serverlessMade with Cursor