Skip to content

Test everything - #2240

Merged
happyhuman merged 18 commits into
mainfrom
test-everything
Jul 17, 2026
Merged

Test everything#2240
happyhuman merged 18 commits into
mainfrom
test-everything

Conversation

@happyhuman

Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Correctness PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Maintainability PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Security PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Correctness PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Security PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Maintainability PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Security PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Correctness PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Maintainability PR review. Please check the action logs for details.

@happyhuman happyhuman closed this Jul 16, 2026
@happyhuman happyhuman reopened this Jul 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Security PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Maintainability PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Correctness PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Maintainability PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Correctness PR review. Please check the action logs for details.

@github-actions

Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI Security PR review. Please check the action logs for details.

_, project_id = google.auth.default()
os.environ.setdefault("GOOGLE_CLOUD_PROJECT", project_id)
os.environ["GOOGLE_CLOUD_LOCATION"] = "global"
os.environ.setdefault("GOOGLE_GENAI_USE_VERTEXAI", "True")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If no default GCP project is configured, google.auth.default() returns None for project_id, causing os.environ.setdefault to crash with a TypeError. Add a null-check on project_id before calling setdefault to prevent import-time crashes.

)
return "DAG conversion failed: Missing environment configuration."
try:
storage_client = storage.Client()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The RAG data store path is constructed using the module-level variable PROJECT_ID instead of the function parameter project_id. Update this to use project_id to avoid using an empty or incorrect project ID at runtime.

)
return []

try:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If gcs_folder_uri contains no trailing path (e.g., gs://my-bucket), split('/', 1) will fail with a ValueError. Handle URIs that do not contain a path component gracefully before splitting.

storage_client = storage.Client()

# Hardcode "default_collection" here. It is the required standard for Vertex Search.
vertex_ai_search_data_store_path = (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The function uses the global variable PROJECT_ID to build the data store path, but initializes the client using the project_id parameter. Please consistently use the project_id parameter throughout the function to avoid scoping bugs.

@happyhuman
happyhuman merged commit cbcfe56 into main Jul 17, 2026
18 of 19 checks passed
@happyhuman
happyhuman deleted the test-everything branch July 17, 2026 04:38
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.

1 participant