-
Notifications
You must be signed in to change notification settings - Fork 97
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
[BUG] - Python tests (CLI, deployment) are failing locally and on forks #2446
Comments
Even after defining the test user and passing
|
It looks like that can be changed by undocumented |
Still the tests are failing for me on setup when getting the JupyterHub token (
The response itself is:
|
Ok, the token issue was a genuine problem on my branch. But the, running the ssh tests results in a prompt to unlock ssh agent, which I think should not be the case: Declining leads to:
|
Just for visibility, I opened nebari-dev/nebari-docs#449 to update documentation on running tests which solves some of the issues mentioned above, but many remain. |
Based on what was discussed last week, this is not expected behavior, and as you just suggested, the docs for those tests env variables are lacking, I would recommend to not only addressing those in our docs, but also having an extra check for the current available credentials to at least give the user more visibility on whats happening |
@krassowski do you think we can close this or is there anything that we need to address? |
A similar control variable has been introduced: #2632, though I agree that's still not the best scenario. Those tests, in particular, should not run from a fork. |
Describe the bug
The developer experience for adding tests is not great.
KEYCLOAK_USERNAME
is undefined. It is not mentioned in the documentationand one for deployment tests
Both are incorrect. The first command will invoke not only CLI tests but also the deployment tests because these are in
tests/tests_deployment
. The CLI tests are in fact intests/tests_unit
. The second command will just error out withERROR: file or directory not found: tests_deployment/
Expected behavior
Tests work not only on main branch but also on forks and can be run locally.
OS and architecture in which you are running Nebari
Yes
How to Reproduce the problem?
As per https://www.nebari.dev/docs/community/nebari-tests/#test-cli-with-pytest run:
See
Command output
No response
Versions and dependencies used.
No response
Compute environment
None
Integrations
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: