Skip to content

Conversation

@bpintea
Copy link
Contributor

@bpintea bpintea commented Jun 11, 2025

This switches spec-based and YAML integration tests to run with "allow_partial_results": false
to conteract the default, set to true.

Closes #129256

This switches spec-based integration and YAML tests to run with
`"allow_partial_results": false`
to conteract the default, set to `true`.
@bpintea bpintea requested review from alex-spies and nik9000 June 11, 2025 16:17
@bpintea bpintea added >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged :Analytics/ES|QL AKA ESQL v8.19.0 v9.1.0 labels Jun 11, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Jun 11, 2025
var apiCallSection = doSection.getApiCallSection();
if (apiCallSection.getApi().equals("esql.query")) {
if (apiCallSection.getParams().containsKey("allow_partial_results") == false) {
apiCallSection.addParam("allow_partial_results", "false"); // we want any error to fail the test
Copy link
Member

Choose a reason for hiding this comment

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

Should we do this in the other esql yaml subclasses?

I'm a bit worried that this makes our tests unlike production. If we're hacking the yaml files, maybe we should add an assertion that there aren't any partial failures instead of swapping this key.

@dnhatn, you wanted some time for this setting to test, what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we do this in the other esql yaml subclasses?

I've extended the setting to the async tests too, as they're not really fetching chunks of partial results. Thanks.

I'm a bit worried that this makes our tests unlike production. If we're hacking the yaml files, maybe we should add an assertion that there aren't any partial failures instead of swapping this key.

I've opened #129293 as an alternative to this approach. Some of the KNN tests seem to fail with both approaches, will follow up.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the ping. I will take a look at the new PR.

@bpintea
Copy link
Contributor Author

bpintea commented Jun 17, 2025

Superseded by #129293

@bpintea bpintea closed this Jun 17, 2025
@bpintea bpintea deleted the test/allow_partial_results_false branch June 17, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v8.19.0 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESQL: Bugs don't show up in test failures, only in logs

4 participants