Repository navigation
fix(wren): make test-unit run the whole unit tree like CI does - #2768
Conversation
The recipe filtered on '-m "unit and not slow"'. The marker is opt-in, so 33 of the 72 files under tests/unit/ contribute no test at all and the recipe still exits successfully on them. .github/workflows/wren-ci.yml already made the opposite choice for the same reason in its 'unit tests' job; this brings the developer entry point in step with it.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. WalkthroughThe ChangesUnit Test Selection
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to No actionable merge-blocking risk remains. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the test list twice Comment |
goldmedal
left a comment
There was a problem hiding this comment.
Thanks @lihongyuan99, make sense to me 👍
Summary
just test-unitfiltered the unit tree with-m "unit and not slow". Theunitmarker is opt-in, so a file that never marks its tests contributes nothing to that
run — and the recipe still exits 0 on it. This makes the recipe run the same
selection the
unit testsjob in.github/workflows/wren-ci.ymlalready runs,which documents the identical reasoning ("the marker is opt-in, so any unmarked
file ... was silently skipped"). The CI job was fixed; the developer entry point
was not.
What it actually runs today (measured on
main@d26ab6a, fromcore/wren/)uv run --no-sync pytest tests/unit/ -v -m "unit and not slow"7 failed, 842 passed, 81 skipped, 727 deselected in 20.83s1 failed, 1498 passed, 2 skipped in 33.51sone. 33 files run zero tests today — e.g.
test_context_cli.py,test_convert_mdl.py,test_coerce_limit.py,test_athena_semicolon.py,test_check_descriptions_guards.py. Verified by diffingpytest tests/unit/ --collect-only -qwith and without the marker filter.mainunder this exactselection:
tests/unit/test_cloud.py::test_create_refuses_without_a_git_identity_before_creating_anything,which needs a git identity in the environment. It is not caused by this change.
test_memory.pyonnx cases. CI runsthose in the dedicated
memory tests (onnx, torch-free)job; the new selectionleaves them to that job instead of running them here without the
memoryextra.No test or source file is touched — this changes only which tests the documented
entry point executes.
Summary by CodeRabbit
tests/unit/except tests covered by dedicated jobs for optional extras.