Skip to content
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

adding real auth to integration tests #352

Merged
merged 8 commits into from
Oct 26, 2023
Merged

Conversation

ian-scale
Copy link
Collaborator

No description provided.

@ian-scale ian-scale requested a review from a team October 25, 2023 22:55
@ian-scale ian-scale enabled auto-merge (squash) October 25, 2023 23:00
@yunfeng-scale
Copy link
Collaborator

we should remove SKIP_AUTH in justfile/_integration_test?

@ian-scale
Copy link
Collaborator Author

we should remove SKIP_AUTH in justfile/_integration_test?

yes once the other changes I'm adding work, but still waiting to make sure integration tests pass locally

@yunfeng-scale
Copy link
Collaborator

we should remove SKIP_AUTH in justfile/_integration_test?

yes once the other changes I'm adding work, but still waiting to make sure integration tests pass locally

are we skipping auth for circleci integration tests?

@@ -1,7 +1,10 @@
"""
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test was already not functioning so I commented everything out - todo later is come through and fix it so that it works.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind creating a follow-up ticket for this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah sounds good!

@@ -1,7 +1,10 @@
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind creating a follow-up ticket for this?

@ian-scale ian-scale enabled auto-merge (squash) October 26, 2023 01:12
USER_ID_1,
)
# Use the scale-launch-integration-tests id
USER_ID_0 = os.getenv("TEST_USER_ID") # type: ignore
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set some default value

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and i think None USER_ID_0 caused integration test to fail

Copy link
Collaborator Author

@ian-scale ian-scale Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, I set a default value of "fakeuser", this should pass CI since we don't use the auth repo in CI currently


# cancel_response = cancel_fine_tune_by_id(fine_tune_id, USER_ID_0)
# assert cancel_response["success"]
# list_response_1 = list_fine_tunes(USER_ID_0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there should be some @pytest.skip(reason="test doesn't work") thing that you can do to skip the test (as opposed to commenting it out)

Copy link
Collaborator Author

@ian-scale ian-scale Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah let me add this too - although I will say the test was already doing nothing, just asserting that the list of fine tunes for the user was empty

@ian-scale ian-scale enabled auto-merge (squash) October 26, 2023 20:21
@ian-scale ian-scale merged commit 0b8a817 into main Oct 26, 2023
5 checks passed
@ian-scale ian-scale deleted the ianmacleod/use_real_auth branch October 26, 2023 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants