Revert "fix(tests): five rfdetr-seg static-crop tests shadow each other by name" - #2971
Conversation
… after t…" This reverts commit 8bb0c62.
|
Reverting due to no CLA |
|
👋 Thanks for the pull request! Here is how automated Claude review works here, so you spend credits (and reviewer time) wisely. 🚦 This PR is marked Ready for review, so automated Claude review will run — and every pass spends real credits. Warning 💸 The Claude reviewer bills in credits, not vibesAutomated review spins up a real agent that reads real code and spends real credits on every pass. It is glad to help — but it is not a rubber duck, a linter you poke in a loop, or a substitute for reading the contributing guide. Treat it like an expensive senior reviewer whose time you booked, and show up prepared. Draft when unsure, Ready when you mean it:
However you get there, arrive prepared:
Reviews are not free. A draft costs nothing to review; a Ready PR is a promise that it is worth reviewing.
|
|
🤖 Claude review started at commit New commits are not auto-reviewed. Add the |
| @pytest.mark.slow | ||
| @pytest.mark.onnx_extras | ||
| def test_package_with_static_crop_center_crop_against_numpy_input( | ||
| def test_package_with_static_crop_letterbox_against_numpy_input( |
There was a problem hiding this comment.
Medium — this revert reintroduces the name shadowing that #2948 fixed.
After this revert, five test names each appear twice in this module:
test_package_with_static_crop_letterbox_against_numpy_input— line 938 (uses..._static_crop_letterbox_package) and line 1088 (uses..._static_crop_center_crop_package)test_package_with_static_crop_letterbox_against_numpy_list_input— lines 965 / 1121test_package_with_static_crop_letterbox_against_torch_input— lines 996 / 1164test_package_with_static_crop_letterbox_against_torch_list_input— lines 1023 / 1197test_package_with_static_crop_letterbox_against_torch_batch_input— lines 1054 / 1240
Because these are module-level defs with identical names, Python keeps only the last definition. pytest collects only the second occurrence of each (the center_crop-fixture versions at 1088–1240); the five genuine letterbox static-crop tests at 938–1084 are silently dropped from collection — never run, no failure, no skip. That is the exact regression #2948 was renaming these functions to fix.
I understand this is a deliberate revert for CLA reasons (per your "Reverting due to no CLA" comment) rather than a technical disagreement with the fix. Flagging only so the coverage loss is on record: the letterbox static-crop ONNX path loses its five tests until the rename is re-applied under proper attribution.
Reviewed at HEAD: 624a10f
Review summarySkills: review-inference-models-pkg, review-topic-test-hygiene This PR reverts #2948 (a test-name fix), stated as "Reverting due to no CLA" — a process decision, not a technical one. It touches only test function names in One Medium finding (inline): the revert reintroduces the name shadowing #2948 fixed. Five No blocking action requested if the revert is intentional for CLA/attribution reasons — this is on record so the coverage loss is visible and the rename can be re-applied under proper attribution. Reviewed at HEAD: 624a10f |
Reverts #2948