Skip to content

GH-49531: [CI][Packaging][Python] Ignore cleanup errors trying to remove loaded DLLs from temp dir#49532

Merged
raulcd merged 1 commit into
apache:mainfrom
raulcd:GH-49531
Mar 17, 2026
Merged

GH-49531: [CI][Packaging][Python] Ignore cleanup errors trying to remove loaded DLLs from temp dir#49532
raulcd merged 1 commit into
apache:mainfrom
raulcd:GH-49531

Conversation

@raulcd

@raulcd raulcd commented Mar 17, 2026

Copy link
Copy Markdown
Member

Rationale for this change

Updating docstrings is failing on Windows trying to remove arrow.dll from tempdir because its still loaded in memory.

What changes are included in this PR?

Added ignore_cleanup_errors=True

Are these changes tested?

Yes via archery

Are there any user-facing changes?

No

@raulcd

raulcd commented Mar 17, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit wheel-windows-cp313-cp313-amd64

@github-actions github-actions Bot added the awaiting committer review Awaiting committer review label Mar 17, 2026
@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #49531 has been automatically assigned in GitHub to PR creator.

@github-actions

Copy link
Copy Markdown

Revision: 2b141d8

Submitted crossbow builds: ursacomputing/crossbow @ actions-0ac593c079

Task Status
wheel-windows-cp313-cp313-amd64 GitHub Actions

@raulcd

raulcd commented Mar 17, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit wheel-windows-*

@github-actions

Copy link
Copy Markdown

Revision: 2b141d8

Submitted crossbow builds: ursacomputing/crossbow @ actions-2522b5d0c0

Task Status
wheel-windows-cp310-cp310-amd64 GitHub Actions
wheel-windows-cp311-cp311-amd64 GitHub Actions
wheel-windows-cp312-cp312-amd64 GitHub Actions
wheel-windows-cp313-cp313-amd64 GitHub Actions
wheel-windows-cp313-cp313t-amd64 GitHub Actions
wheel-windows-cp314-cp314-amd64 GitHub Actions
wheel-windows-cp314-cp314t-amd64 GitHub Actions

@raulcd
raulcd marked this pull request as ready for review March 17, 2026 13:21
@raulcd
raulcd requested review from AlenkaF and rok as code owners March 17, 2026 13:21
@raulcd

raulcd commented Mar 17, 2026

Copy link
Copy Markdown
Member Author

cc @rok

@rok rok 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.

Oh dear. Should we unlink (del pyarrow?) in add_docstrings_to_stubs instead?
This seems cleaner though.

@github-actions github-actions Bot added awaiting merge Awaiting merge and removed awaiting committer review Awaiting committer review labels Mar 17, 2026
@raulcd

raulcd commented Mar 17, 2026

Copy link
Copy Markdown
Member Author

Should we unlink (del pyarrow?) in add_docstrings_to_stubs instead?

I think the problem is when we load the DLL on Windows there seems to have problems to remove the file. From what I was reading even trying to manually unload the DLL might not work reliably. As this is only happening on limited scenarios (CI when building wheels for Windows) and we don't expect users to run this locally as often, I think this is fine.

@rok

rok commented Mar 17, 2026

Copy link
Copy Markdown
Member

Yeah, agreed.

@raulcd
raulcd merged commit 7ec459a into apache:main Mar 17, 2026
18 checks passed
@raulcd raulcd removed the awaiting merge Awaiting merge label Mar 17, 2026
@raulcd
raulcd deleted the GH-49531 branch March 17, 2026 16:42
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 7ec459a.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

thisisnic pushed a commit to thisisnic/arrow that referenced this pull request Apr 6, 2026
…to remove loaded DLLs from temp dir (apache#49532)

### Rationale for this change

Updating docstrings is failing on Windows trying to remove arrow.dll from tempdir because its still loaded in memory.

### What changes are included in this PR?

Added `ignore_cleanup_errors=True`

### Are these changes tested?

Yes via archery

### Are there any user-facing changes?

No

* GitHub Issue: apache#49531

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
Mottl pushed a commit to Mottl/arrow that referenced this pull request May 26, 2026
…to remove loaded DLLs from temp dir (apache#49532)

### Rationale for this change

Updating docstrings is failing on Windows trying to remove arrow.dll from tempdir because its still loaded in memory.

### What changes are included in this PR?

Added `ignore_cleanup_errors=True`

### Are these changes tested?

Yes via archery

### Are there any user-facing changes?

No

* GitHub Issue: apache#49531

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
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