Skip to content

test(cuda.bindings): restore thread_unsafe marker for cuFile stats level - #2812

Merged
rwgk merged 2 commits into
NVIDIA:mainfrom
rwgk:restore-cufile-thread-unsafe-marker
Sep 11, 2026
Merged

rwgk merged 2 commits into
NVIDIA:mainfrom
rwgk:restore-cufile-thread-unsafe-marker

Conversation

@rwgk

@rwgk rwgk commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Description

Restore @pytest.mark.thread_unsafe(reason="cuFile stats level is process-global") on test_set_stats_level.

#2782 added the marker because cuFile's stats level is process-global, but it was unintentionally dropped while reconciling the 13.4.x release branch into main in #2789. Without it, this test can race with other cuFile stats tests under parallel execution.

This restores the exact marker from #2782; no production code changes.

To keep CI viable while #2809 is awaiting merge, this branch also cherry-picks its exact cuTENSOR 2.8 test fix. Once #2809 lands, updating this branch from main will absorb those changes.

Testing

Checklist

@copy-pr-bot

copy-pr-bot Bot commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the cuda.bindings Everything related to the cuda.bindings module label Sep 11, 2026
@rwgk rwgk self-assigned this Sep 11, 2026

rwgk commented Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test f77b79f

@rwgk rwgk added bug Something isn't working test Improvements or additions to tests labels Sep 11, 2026 — with ChatGPT Codex Connector
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the cuda.pathfinder Everything related to the cuda.pathfinder module label Sep 11, 2026

rwgk commented Sep 11, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test aac6277

@rwgk
rwgk marked this pull request as ready for review September 11, 2026 07:22
@rwgk
rwgk requested review from mdboom and seberg September 11, 2026 07:22

@seberg seberg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, LGTM. The test feels redundant, I might be tempted to even drop it; but also nothing wrong with keeping it.

([SimpleNamespace(metadata={"Name": "unrelated-package"}, version="2.8.0")], False),
],
)
@pytest.mark.agent_authored(model="gpt-5.6-sol")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This test feels a bit redundant, but maybe some small value for have_distribution getting this logic wrong.

(It might make sense to check on successful load that _is_expected_load_nvidia_dynamic_lib_failure isn't True. But I think the function isn't strict it just says if a failure is acceptable).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This came from #2809, which I had to include here for the CI to pass, but it was merged before this PR. The net change in this PR is only the one-line addition of the marker (git show 51ec66b after this PR was merged).

I agree the test is more defensive than what a human would write, but it's not wrong, and trimming back the defensiveness takes time, so I often/usually leave it as-is; it's clearly marked as agent-generated.

@rwgk
rwgk merged commit 51ec66b into NVIDIA:main Sep 11, 2026
117 checks passed
@rwgk
rwgk deleted the restore-cufile-thread-unsafe-marker branch September 11, 2026 14:29
@github-actions

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cuda.bindings Everything related to the cuda.bindings module cuda.pathfinder Everything related to the cuda.pathfinder module test Improvements or additions to tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants