Skip to content

adk deploy agent_engine does not fail when provided with invalid argument to --agent_engine_config_file  #5127

@rei-arifi

Description

@rei-arifi

🔴 Required Information

Please ensure all items in this section are completed to allow for efficient
triaging. Requests without complete information may be rejected / deprioritized.
If an item is not applicable to you - please mark it as N/A

Describe the Bug:
A clear and concise description of what the bug is.

Steps to Reproduce:
Please provide a numbered list of steps to reproduce the behavior:

  1. Install adk, version 1.26.0
  2. Run adk deploy agent_engine --display_name my_agent --agent_engine_config_file ./bogus/path/to/.agent_engine_config.json my_agent

Expected Behavior:
The command should fail and notify the user the file does not exist.

Observed Behavior:
The cli completes the deployment without any error or warning using default config values.

Environment Details:

  • ADK Library Version (pip show google-adk): 1.26.0
  • Desktop OS:** macOS, Linux
  • Python Version (python -V): python3.11

How often has this issue occurred?:

  • Always (100%)

This issue is made worse by the fact that the cli changes the current directory silently resulting in relative paths from repository root being wrong when executed from the parent of the agent directory.

Metadata

Metadata

Assignees

Labels

agent engine[Component] This issue is related to Vertex AI Agent Engine

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions