Skip to content

GH-51096: [CI][C++] Remove useless test-file-cleanup and retry logic from run-test.sh - #51110

Merged
kou merged 1 commit into
apache:mainfrom
Diveyam-Mishra:gh-51096-remove-test-cleanup
Sep 1, 2026
Merged

GH-51096: [CI][C++] Remove useless test-file-cleanup and retry logic from run-test.sh#51110
kou merged 1 commit into
apache:mainfrom
Diveyam-Mishra:gh-51096-remove-test-cleanup

Conversation

@Diveyam-Mishra

@Diveyam-Mishra Diveyam-Mishra commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

As noted in GH-51096, the test-file-cleanup code in run-test.sh calls find twice back-to-back with the same parameters, computes the difference, and tries to delete files only in the second result. But nothing happens between the two find calls, so the results are always identical and no files are ever deleted. Additionally, $TEST_TMPDIR was never defined anywhere in the codebase.

What changes are included in this PR?

Removed the TEST_EXECUTION_ATTEMPTS variable.
Removed the entire retry for loop and TEST_TMPDIR cleanup logic (the two find calls, comm diff, and directory deletion).

Are these changes tested?

Yes.

Are there any user-facing changes?

No.

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

@kou
kou merged commit f1c0558 into apache:main Sep 1, 2026
2 checks passed
@kou kou removed the awaiting review Awaiting review label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants