Repository navigation
fix(skills): set PYTHON_CMD in run_unittests_python.sh - #50
Conversation
The script used $PYTHON_CMD without setting it, so creating the venv failed with "-m: command not found" (exit 69) before any test ran. Set it the same way run_conformance_tests_python.sh does.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
NejcS
left a comment
There was a problem hiding this comment.
@Khunjua thanks for contributing!
I agree, the python interpreter check should be in this asset script as well.
And you are right about the timeout, it's not needed in the script since the codeplain renderer limits the test scripts run already. You can add that change if you want otherwise I'll update the assets scripts.
|
I opened a separate PR #51 for that |
run_unittests_python.sh uses $PYTHON_CMD to create the venv but never sets it, so on every OS it fails with "-m: command not found" (exit 69) before any test runs. This sets it the same way run_conformance_tests_python.sh does.
One more thing I hit on macOS: the script calls
timeout, which macOS doesn't ship, so it then fails with exit 127. The copy in Codeplain-ai/codeplain/test_scripts has no timeout, since the renderer already limits the run with test-script-timeout. Happy to send a follow-up either dropping it or falling back to gtimeout, whichever you prefer.npm test: 82/82 pass.
Summary by CodeRabbit