Skip to content

Conversation

@prwhelan
Copy link
Member

@prwhelan prwhelan commented May 30, 2025

The tests sometimes pass and then fail to clean up the indices indirectly, so they will now directly delete the indices they created for the test.

Fix #128577

The tests sometimes pass and then fail to clean up the indicies
indirectly, so they will now directly delete the indices they created
for the test.

Fix elastic#128577
@prwhelan prwhelan added >test Issues or PRs that are addressing/adding tests :ml/Transform Transform Team:ML Meta label for the ML team auto-backport Automatically create backport pull requests when merged v8.19.0 v9.1.0 labels May 30, 2025
@prwhelan prwhelan marked this pull request as ready for review May 30, 2025 18:57
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

.sum(),
checkpointSum
);
deleteIndices(indices);
Copy link
Contributor

Choose a reason for hiding this comment

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

If the test fails will the deleteIndices still be called? Would it make sense to move these to an After method. I guess not all tests need to delete the indices, but maybe we could just ignore a failure on a delete attempt in that situation and always try to delete the indices.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah let's ignore the failure from delete - the cleanup code may still pass (this seems to be a rare issue anyway)

@prwhelan prwhelan enabled auto-merge (squash) June 2, 2025 12:51
@prwhelan prwhelan merged commit 09ccd91 into elastic:main Jun 2, 2025
17 of 18 checks passed
prwhelan added a commit to prwhelan/elasticsearch that referenced this pull request Jun 2, 2025
The tests sometimes pass and then fail to clean up the indicies
indirectly, so they will now directly delete the indices they created
for the test.

Fix elastic#128577
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.19

elasticsearchmachine pushed a commit that referenced this pull request Jun 2, 2025
The tests sometimes pass and then fail to clean up the indicies
indirectly, so they will now directly delete the indices they created
for the test.

Fix #128577
mridula-s109 pushed a commit that referenced this pull request Jun 2, 2025
The tests sometimes pass and then fail to clean up the indicies
indirectly, so they will now directly delete the indices they created
for the test.

Fix #128577
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jun 3, 2025
The tests sometimes pass and then fail to clean up the indicies
indirectly, so they will now directly delete the indices they created
for the test.

Fix elastic#128577
joshua-adams-1 pushed a commit to joshua-adams-1/elasticsearch that referenced this pull request Jun 3, 2025
The tests sometimes pass and then fail to clean up the indicies
indirectly, so they will now directly delete the indices they created
for the test.

Fix elastic#128577
Samiul-TheSoccerFan pushed a commit to Samiul-TheSoccerFan/elasticsearch that referenced this pull request Jun 5, 2025
The tests sometimes pass and then fail to clean up the indicies
indirectly, so they will now directly delete the indices they created
for the test.

Fix elastic#128577
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 :ml/Transform Transform Team:ML Meta label for the ML 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] TransformGetCheckpointIT class failing

3 participants