Skip to content

Refactor for clarity that deployer/tests aren't just developer tests #971

@consideRatio

Description

@consideRatio

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:

Updates and ongoing work

  • 2023-10-11, this issue is still relevant but low prio.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions