Skip to content

Fix coredump tests on free-threaded builds - #3226

Merged
leofang merged 1 commit into
NVIDIA:mainfrom
mdboom:freethreading-flaky
Oct 27, 2026
Merged

leofang merged 1 commit into
NVIDIA:mainfrom
mdboom:freethreading-flaky

Conversation

@mdboom

@mdboom mdboom commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

The coredump APIs are not threadsafe, since they have global state. Therefore the /occasionally/ fail on in CI on free-threaded Python builds where we run tests in parallel. This just marks these tests as thread-unsafe so pytest will do the right thing.

@github-actions github-actions Bot added the cuda.bindings Everything related to the cuda.bindings module label Oct 26, 2026
@mdboom mdboom self-assigned this Oct 26, 2026
@mdboom mdboom added bug Something isn't working CI/CD CI/CD infrastructure BLOCKING CI labels Oct 26, 2026
@mdboom mdboom added this to the cuda.bindings 13.5.0 & 12.9.10 milestone Oct 26, 2026
@mdboom
mdboom requested a review from juenglin October 26, 2026 17:28
@coderabbitai

coderabbitai Bot commented Oct 26, 2026

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between a2fb804 and 5f93b1a.

Files selected for processing: 1
  • cuda_bindings_13/tests/test_cuda.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

📝 Summary

Summary by CodeRabbit

  • Tests
    • Marked three coredump-related tests as unsafe to run concurrently; their test logic is unchanged.

Three coredump tests are marked thread_unsafe because they use process-global settings. Their test logic is unchanged.

Changes: Coredump test markers

Layer / File(s) Summary
Mark coredump tests thread-unsafe
cuda_bindings_13/tests/test_cuda.py
The coredump attribute round-trip test, bool-storage test, and generation-flags test are marked thread_unsafe. Their test logic is unchanged.

Possibly related issues

Possibly related PRs

Suggested labels: cuda.bindings, test

Suggested reviewers: rwgk

Priority: Normal

Change: Bug fix · Severity of issue fixed: Medium

Merge Risk: Minimal · up to 5f93b

The coredump tests are marked to avoid concurrent execution, with no identified issue blocking merge after normal checks.

Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor
Doc Preview CI
Preview removed because the pull request was closed or merged.

@leofang
leofang merged commit 590a8bf into NVIDIA:main Oct 27, 2026
325 of 335 checks passed
github-actions Bot pushed a commit that referenced this pull request Oct 27, 2026
Removed preview folders for the following PRs:
- PR #3226
- PR #3228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BLOCKING CI bug Something isn't working CI/CD CI/CD infrastructure cuda.bindings Everything related to the cuda.bindings module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants