-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix data-science agent deployment failure with None environment varia… #276
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
Fix data-science agent deployment failure with None environment varia… #276
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a deployment failure in the data-science agent caused by None environment variables being passed to the agent engine. The fix filters out None and empty string values from environment variables while maintaining backward compatibility.
- Implements filtering logic to exclude None, empty, and whitespace-only environment variables
- Adds logging for better visibility into which environment variables are being skipped or included
- Includes code formatting improvements for consistency
1c013d3
to
e30ca22
Compare
Yes, please, fix the cod einthe DS project so that it can work well with env variables. It is quite easy, just add somethihng like model=os.getenv("ROOT_AGENT_MODEL", "gemini-2.5-flash") |
This pull request primarily improves code readability and robustness in the Environment variable handling:
Logging and error handling:
Code formatting and style:
Cloud resource setup:
These changes collectively make the deployment script easier to maintain, less error-prone, and more transparent during execution. |
Dear @5Y5TEM, I wanted to kindly remind you to review this pull request at your earliest convenience. Please let me know if you have any questions or require additional information from my side. Thank you for your attention and support. |
- Aggregate skipped env var logging - Clarify comment on None/empty/whitespace - Enforce 80-char line limit - Raise UsageError on missing project_id - Minor formatting cleanups
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
python/agents/data-science/deployment/deploy.py:160
- Line 159 is missing a space between 'Agent' and the resource_id variable, and line 160 duplicates the same error message. Remove the malformed line 159.
print(f"\nAgent{resource_id} not found.")
print(f"\nAgent not found: {resource_id}")
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Hi @mstyer-google @5Y5TEM — followed up on the lingering feedback:
Let me know if anything else looks off. Thanks for another look! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
a03aa66
to
bd88e1a
Compare
This is Fixed now , please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please let me know if i am still missing some changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
385bf5e
to
17b4020
Compare
Signed-off-by: Rajesh Pandhare <[email protected]>
17b4020
to
61e5bb7
Compare
…bles
Fixes #192