Repository navigation
test(cuda.core): don't collect host-callback-ctypes for the wrong-type update test - #3648
Conversation
…e update test test_definition_node_update_rejects_wrong_type skipped every case whose invalid_argument_update is None. Only the ctypes host-callback case has none, so test_definition_node_update_rejects_wrong_type[host-callback-ctypes] never ran. A ctypes callback's update takes any callable; its prototype check is already covered by test_host_callback_ctypes_update_rejects_incompatible_signature. Run this test over definition_update_case_with_typed_argument, which leaves out the ctypes case and shares setup with definition_update_case, and assert instead of skipping. Remove the "not currently run in any CI job" marker. Closes NVIDIA#3571. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Summary
Change: Other · Severity of issue fixed: Low Merge Risk:
|
|
jpascucci-nv
left a comment
There was a problem hiding this comment.
sol 6.1 high finds no problems, this lgtm.
Closes #3571. Part of #2077.
Summary
test_definition_node_update_rejects_wrong_typeskipped everydefinition_update_casewhoseinvalid_argument_updateisNone. Only the ctypes host-callback case has none, so[host-callback-ctypes]never ran anywhere.A ctypes callback's
update()takes any callable. Its own type check (a mismatched ctypes prototype raisesTypeError) is already covered bytest_graph_definition.py::test_host_callback_ctypes_update_rejects_incompatible_signature. So this test no longer collects that case, rather than duplicating that check:The two fixtures share their setup (the CUDA 12.2 driver check and per-call case construction). The "not currently run in any CI job" marker is removed. Every other
definition_update_casetest still runs all 13 cases, includinghost-callback-ctypes.Evidence
CI coverage: on
main, the other 12 cases of this test pass in all 65 CI configurations that run it, and[host-callback-ctypes]skips in all 65. After this change the test collects only those 12, so it skips nowhere.Locally: 12 cases are collected (no ctypes case) and pass, and the whole file passes.
Confirming in CI: in this PR's CI run, no cuda.core job should report
test_definition_node_update_rejects_wrong_type[host-callback-ctypes], and the other 12 cases should report PASSED. For example:Merge Danger
Door: two-way. Test-only change.
Blast Radius: one test in
cuda_core/tests/graph/test_graph_node_update.py. Every case that ran before still runs.Reviewers: please feel free to push commits directly to this PR to improve it.
🤖 Generated with Claude Code