-
Notifications
You must be signed in to change notification settings - Fork 75
Description
Description of problem and opportunity to address it
The deployer
CLI rely on pytest
as a production dependency - not just development dependency. This is because it use pytest
and the tests in deployer/tests
as a way to verify that hub's are functional.
From a glance, I would assume that those tests would be tests associated with testing the deployer
CLI itself, because that is a pattern I've seen across the python ecosystem repeated. This is the first time I see pytest
being used a real requirement for a project. Due to that, I suggest we are more explicit about this somehow.
Implementation guide and constraints
Should pytest be used at all?
@sgibson91 mentioned to me that @yuvipanda wants to avoid using pytest
as a production dependency. That sounds reasonable to me and would solve this issue as well.
Pytest and logging
@sgibson91 also noted that there has been issues with a hub health-check test that fails could lead to pytest
's verbosity exposes sensitive credentials. By doing a test manually, we would also avoid such complexity. This is related to:
- Safely providing logging output from failed hub health checks #585
- Redirecting the test output (to prevent the CI from leaking secrets) is preventing us to get the actual error locally #694.
Updates and ongoing work
- 2023-10-11, this issue is still relevant but low prio.