-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop using pytest to run our hub health checks #1232
Labels
allocation:internal-eng
nominated-to-be-resolved-during-q4-2023
Nomination to be resolved during q4 goal of reducing the technical debt
Comments
3 tasks
Fully support! |
sgibson91
added
nominated-to-be-resolved-during-q4-2023
Nomination to be resolved during q4 goal of reducing the technical debt
and removed
nominated-to-be-resolved-during-q4-2023
Nomination to be resolved during q4 goal of reducing the technical debt
labels
Oct 18, 2023
Issue is specifically referencing this section: infrastructure/deployer/deployer.py Lines 390 to 413 in 75119bf
Note that we do use pytest to verify the deployer code itself, which is fine. This is only regarding running the hub health check. |
sgibson91
added
the
nominated-to-be-resolved-during-q4-2023
Nomination to be resolved during q4 goal of reducing the technical debt
label
Oct 18, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
allocation:internal-eng
nominated-to-be-resolved-during-q4-2023
Nomination to be resolved during q4 goal of reducing the technical debt
Context
We currently use pytest to run our hub health checks. Upon failure, pytest's output includes the parameters that were passed to the function. For us, this includes a JupyerHub API token which is secret. In order to prevent this from being leaked via CI logs, we currently do not print output when we run in CI environments. However, this adds extra toil to the engineering team since they would need to rerun the hub health check locally in order to see logs and hope that the problem can be reproduced using the deployer locally.
Proposal
Since we don't actually use any functionality pytest offers, we should remove the pytest dependency and call the functions as normal functions. This will allow diagnostic logs to be available in CI/CD without leaking the secret API token or requiring an engineer to do another run of the checks locally.
Updates and actions
No response
Related
The text was updated successfully, but these errors were encountered: