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

Use a new KAGGLE_GRPC_DATA_PROXY_URL env variable for gRPC proxying #1337

Merged
merged 5 commits into from
Dec 6, 2023

Conversation

Philmod
Copy link
Contributor

@Philmod Philmod commented Dec 5, 2023

@Philmod Philmod requested review from psbang and rosbo December 5, 2023 19:58
patches/sitecustomize.py Outdated Show resolved Hide resolved
@Philmod Philmod merged commit 2ac180a into main Dec 6, 2023
4 checks passed
@Philmod Philmod deleted the grpc-data-proxy-url branch December 6, 2023 11:18
@@ -29,7 +30,6 @@ def test_disabled(self):
env.set("KAGGLE_DATA_PROXY_TOKEN", "foobar")
env.set("KAGGLE_DATA_PROXY_URL", self.http_endpoint)
env.set("KAGGLE_GRPC_DATA_PROXY_URL", self.grpc_endpoint)
env.set("KAGGLE_GOOGLE_GENERATIVE_AI_USE_REST_ONLY", "True")
Copy link
Contributor

Choose a reason for hiding this comment

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

@Philmod I set this env variable because the test is creating the HTTP server endpoint. Without this, palm.list_models() is actually calling the gRPC endpoint, which is not being spun up in this test, so this will always pass and isn't testing what we want it to test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That was the goal: this test file is named *_disabled, I wanted to check it wasn't hitting the http server.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@psbang Unless I'm missing something?

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.

3 participants