Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

tests(langchain-sdk): Update conftest to be able to run tests in local#18

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
Yuan325 wants to merge3 commits intomain
base:main
Choose a base branch
Loading
fromauth-test-local

Conversation

@Yuan325
Copy link
Contributor

Getting an id token from metadata server does not work on local systems. This causes test failures for auth tests locally. This PR fixes the issue.

This unblockshttps://b.corp.google.com/issues/385051620

@Yuan325Yuan325 requested a review froma team as acode ownerFebruary 5, 2025 21:57
credentials.refresh(request)
returncredentials.token
try:
# Try getting the token using gcloud (for local development)
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Kurtis' comment from the other PR:

I'm not sure I agree with this flow. I think ideally it should be trying the metadata server first, and falling back to gcloud if it's unable to reach. An alternative would be use an env var to signal which to use.

Ideally, we should not rely on "gcloud auth" as it's not semantically versioned (and I've personally been bit by it changing int the past)

@anubhav756anubhav756 marked this pull request as draftMarch 13, 2025 09:35
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@Yuan325@twishabansal

[8]ページ先頭

©2009-2025 Movatter.jp