Skip to content

Work around testFilterByTags failure #125109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

DaveCTurner
Copy link
Contributor

@DaveCTurner DaveCTurner commented Mar 18, 2025

A SDK bug1 means that these values sometimes don't parse as an
integer. We don't need them to do so in order to pass the test, so this
commit relaxes the test to accept any string.

Closes #125090
Closes #125166

Footnotes

  1. https://github.com/aws/aws-sdk-java-v2/issues/5968

A SDK bug[^1] means that these values sometimes don't parse as an
integer. We don't need them to do so in order to pass the test, so this
commit relaxes the test to accept any string.

[^1]: aws/aws-sdk-java-v2#5968
@DaveCTurner DaveCTurner added >test Issues or PRs that are addressing/adding tests :Distributed Coordination/Discovery-Plugins Anything related to our integration plugins with EC2, GCP and Azure v8.19.0 v9.1.0 labels Mar 18, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Distributed Coordination Meta label for Distributed Coordination team label Mar 18, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-distributed-coordination (Team:Distributed Coordination)

@DaveCTurner DaveCTurner added the auto-backport Automatically create backport pull requests when merged label Mar 18, 2025
@nicktindall
Copy link
Contributor

There was another failure which I think is related. Do you mind unmuting this one also, assuming it fixes the problem too? #125166

@DaveCTurner DaveCTurner requested a review from nicktindall March 19, 2025 08:32
@DaveCTurner
Copy link
Contributor Author

Yep, tho that mute is in 8.x only right now, I will fix that up on the backport.

Copy link
Contributor

@DiannaHohensee DiannaHohensee left a comment

Choose a reason for hiding this comment

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

LGTM.

Do you know why Integer.parseInt didn't throw an exception and end the test in the try-catch block?

@DaveCTurner
Copy link
Contributor Author

It does throw an exception, but HttpServer catches and swallows everything (see #68967) so you don't get to see it. IMO that's a bug, we should fix every usage of HttpServer not to do this, but that's a bigger question.

@DaveCTurner DaveCTurner added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Mar 19, 2025
@elasticsearchmachine elasticsearchmachine merged commit 23769da into elastic:main Mar 19, 2025
17 checks passed
@DaveCTurner DaveCTurner deleted the 2025/03/18/workaround-testFilterByTags-failure branch March 19, 2025 15:50
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 125109

DaveCTurner added a commit that referenced this pull request Mar 19, 2025
A SDK bug[^1] means that these values sometimes don't parse as an
integer. We don't need them to do so in order to pass the test, so this
commit relaxes the test to accept any string.

Closes #125090 Closes #125166

[^1]: aws/aws-sdk-java-v2#5968
smalyshev pushed a commit to smalyshev/elasticsearch that referenced this pull request Mar 21, 2025
A SDK bug[^1] means that these values sometimes don't parse as an
integer. We don't need them to do so in order to pass the test, so this
commit relaxes the test to accept any string.

Closes elastic#125090 Closes elastic#125166

[^1]: aws/aws-sdk-java-v2#5968
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
A SDK bug[^1] means that these values sometimes don't parse as an
integer. We don't need them to do so in order to pass the test, so this
commit relaxes the test to accept any string.

Closes elastic#125090 Closes elastic#125166

[^1]: aws/aws-sdk-java-v2#5968
ldematte added a commit to ldematte/elasticsearch that referenced this pull request Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Distributed Coordination/Discovery-Plugins Anything related to our integration plugins with EC2, GCP and Azure Team:Distributed Coordination Meta label for Distributed Coordination team >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.

[CI] Ec2DiscoveryTests testFilterByMultipleTags failing [CI] Ec2DiscoveryTests testFilterByTags failing
4 participants