contributing, development setup, error message in tests #1257
-
|
To learn the steps necessary to contribute fixes and improvements, I have now started to work on ticket #1221. What I have done until now, following tinytorch/CONTRIBUTING.md:
then: Now in the last step, I see the following error message: The parameter is set in tinytorch/tito/commands/module/test.py, not sure what is going wrong there. If I run pytest tests/02_activations everything is ok, apart from numerous warnings from integration tests that do not seem to have anything to do with the change I made_ So I am not quite sure what to do for a satisfactory pre-commit test result here, if it is some problem with the local project setup or something missing... Also, the following is probably not completely up to date, shouldn't I prepare a PR instead? Up until now, I have been working completely with a fork as remote push target to avoid spilling over any onboarding mistakes.... Update: The error is independent from the module tested, so it most probably is some tool issue. it is a bit difficult to make out exactly what part is failing there. Maybe some version update issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Thanks @asgalon, and thanks for working on #1221! Your PRs have been really helpful (both #1262 and #1271 are merged). The The integration test warnings about And yes, a PR from your fork is the right workflow. The CONTRIBUTING.md instructions about merging locally are outdated. Fork, branch, PR is the way to go. Really appreciate you taking the initiative to work through the contributor flow and documenting the rough edges. |
Beta Was this translation helpful? Give feedback.
Thanks @asgalon, and thanks for working on #1221! Your PRs have been really helpful (both #1262 and #1271 are merged).
The
--tinytorcherror you hit was a real bug. The flag was being passed bytito module testbut never registered in conftest.py (a plugin that handled it got removed during cleanup and nobody wired it back up). This is now fixed in commit 93de573. After pulling the latest,tito module testshould work.The integration test warnings about
PytestReturnNotNoneWarningare harmless, those tests are returning dicts for reporting purposes and pytest is just being noisy about it. Nothing to worry about for your contribution.And yes, a PR from your fork is the right workflow. The…