Skip to content

Disable ndjson datasource QA tests in release-tests#143992

Merged
costin merged 6 commits intoelastic:mainfrom
costin:fix/ndjson-qa-default-distribution
Mar 12, 2026
Merged

Disable ndjson datasource QA tests in release-tests#143992
costin merged 6 commits intoelastic:mainfrom
costin:fix/ndjson-qa-default-distribution

Conversation

@costin
Copy link
Copy Markdown
Member

@costin costin commented Mar 11, 2026

Summary

The release-tests CI pipeline (.buildkite/scripts/release-tests.sh) runs with -Dbuild.snapshot=false, simulating a release build. This causes Build.current().isSnapshot() to return false, which makes EsqlConfig.isDevVersion() return false, disabling the EXTERNAL command in the ESQL ANTLR grammar ({this.isDevVersion()}? externalCommand).

The ndjson QA module was missing the enabled = buildParams.snapshotBuild guard that all other datasource QA modules already had, so its EXTERNAL-based tests ran in release-tests and failed with mismatched input 'EXTERNAL'.

This PR adds the snapshot guard, consistent with csv, parquet, orc, iceberg, grpc, and gcs.

Also fixes StoragePathTests.testFileUriFunction to be platform-agnostic by dynamically constructing expected URIs instead of hardcoding Unix paths (fixes #143979).

Changes

  • esql-datasource-ndjson/qa/build.gradle: add enabled = buildParams.snapshotBuild
  • StoragePathTests.java: make testFileUriFunction platform-agnostic

Closes #143979

@elasticsearchmachine elasticsearchmachine added v9.4.0 needs:triage Requires assignment of a team area label labels Mar 11, 2026
@costin costin force-pushed the fix/ndjson-qa-default-distribution branch from 7cf4864 to a871584 Compare March 11, 2026 09:08
@costin costin added >test Issues or PRs that are addressing/adding tests :Analytics/ES|QL AKA ESQL ES|QL|DS ES|QL datasources and removed needs:triage Requires assignment of a team area label labels Mar 11, 2026
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Mar 11, 2026
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@costin costin enabled auto-merge (squash) March 11, 2026 09:10
@costin costin disabled auto-merge March 11, 2026 09:38
@costin costin force-pushed the fix/ndjson-qa-default-distribution branch from a871584 to 4073ef1 Compare March 11, 2026 09:47
@costin costin changed the title Remove usesDefaultDistribution from datasource QA tests Disable datasource QA and multi-node tests in release-tests Mar 11, 2026
The release-tests CI pipeline runs with -Dbuild.snapshot=false, which
makes isDevVersion() return false and disables the EXTERNAL command in
the ESQL grammar. The ndjson QA module was missing the snapshotBuild
guard that other datasource modules already had.

Also fix StoragePathTests.testFileUriFunction to be platform-agnostic
by dynamically constructing expected URIs instead of hardcoding Unix
paths.

Closes elastic#143979
@costin costin force-pushed the fix/ndjson-qa-default-distribution branch from 4073ef1 to 454be31 Compare March 11, 2026 09:51
@costin costin changed the title Disable datasource QA and multi-node tests in release-tests Disable ndjson datasource QA tests in release-tests Mar 11, 2026
@costin costin added the test-release Trigger CI checks against release build label Mar 11, 2026
@costin costin enabled auto-merge (squash) March 11, 2026 09:59
@costin
Copy link
Copy Markdown
Member Author

costin commented Mar 12, 2026

The CI keeps failing due to unrelated tests, I've raised #144086 and will merge this PR.

@costin costin disabled auto-merge March 12, 2026 08:10
@costin costin merged commit e2e6a84 into elastic:main Mar 12, 2026
35 of 39 checks passed
@costin costin deleted the fix/ndjson-qa-default-distribution branch March 12, 2026 11:04
szybia added a commit to szybia/elasticsearch that referenced this pull request Mar 12, 2026
…elocations

* upstream/main: (49 commits)
  CCS logging fixes (elastic#144070)
  Improve CPS cluster exclusion handling (elastic#143488)
  Remove snapshot condition now that node_reduce phase is in non-snapshot builds (elastic#144090)
  Drop deprecation warnings when updating a mapping in the cluster state applier (elastic#143884) (elastic#144040)
  Add ensureGreenAndNoInitializingShards helper (elastic#144044)
  Removed unnecessary applies_to blocks from deprecated query (elastic#144096)
  [CPS] Use single CrossProjectModeDecider instance (elastic#144030)
  Fix ESQL TS requests with LIMIT 0 (elastic#144031)
  ESQL: Remove `create` methods in aggs (elastic#144098)
  ES|QL: Refactor ChangeLimitOperator (elastic#144017)
  Add Paginated Hit Source Tests (elastic#142592)
  Fix test failure not preferred (elastic#144019)
  Remove serialization logic from EIS authorization response (elastic#144021)
  ESQL: CSV schema inference and parsing enhancements (elastic#144050)
  ESQL: Fix incorrectly optimized fork with nullify unmapped_fields (elastic#143030)
  Fix MMR release test using subqueries (elastic#144087)
  Refactoring `UserAgentPlugin` (elastic#140712)
  Drop non-finite samples in Prometheus remote write (elastic#144055)
  [TEST] Wait for internal inference indices to be created in authorization IT (elastic#143885)
  Disable ndjson datasource QA tests in release-tests (elastic#143992)
  ...
michalborek pushed a commit to michalborek/elasticsearch that referenced this pull request Mar 23, 2026
The release-tests CI pipeline (`.buildkite/scripts/release-tests.sh`) runs with `-Dbuild.snapshot=false`, simulating a release build. This causes `Build.current().isSnapshot()` to return `false`, which makes `EsqlConfig.isDevVersion()` return `false`, disabling the `EXTERNAL` command in the ESQL ANTLR grammar (`{this.isDevVersion()}? externalCommand`).

The **ndjson** QA module was missing the `enabled = buildParams.snapshotBuild` guard that all other datasource QA modules already had, so its `EXTERNAL`-based tests ran in release-tests and failed with `mismatched input 'EXTERNAL'`.

This PR adds the snapshot guard, consistent with csv, parquet, orc, iceberg, grpc, and gcs.

Also fixes `StoragePathTests.testFileUriFunction` to be platform-agnostic by dynamically constructing expected URIs instead of hardcoding Unix paths (fixes elastic#143979).


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

Labels

:Analytics/ES|QL AKA ESQL ES|QL|DS ES|QL datasources Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests test-release Trigger CI checks against release build v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] StoragePathTests testFileUriFunctionOnUnix failing

3 participants