Skip to content

ci: retry build dir cleanup on Windows#807

Open
abnobdoss wants to merge 2 commits into
apache:mainfrom
abnobdoss:ci/retry-build-cleanup
Open

ci: retry build dir cleanup on Windows#807
abnobdoss wants to merge 2 commits into
apache:mainfrom
abnobdoss:ci/retry-build-cleanup

Conversation

@abnobdoss

Copy link
Copy Markdown
Contributor

What

Retry rm -rf cleanup in the CMake CI helper scripts. Windows can briefly keep a just-built executable or DLL open, which can make cleanup fail even after the build and tests have passed.

build_example.sh retries before configuring and still lets mkdir fail if the directory remains, so it will not build in a half-deleted tree. build_iceberg.sh retries after the build and does not fail an otherwise successful job if final cleanup is still blocked.

Comment thread ci/scripts/build_example.sh
Comment thread ci/scripts/build_iceberg.sh
@abnobdoss

Copy link
Copy Markdown
Contributor Author

Thank you for reviewing @evindj; I've added the failure message as suggested!

@abnobdoss abnobdoss requested a review from evindj July 5, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants