Local deployment template requires ADC and Cloud Logging at import time
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 72/100
Hướng nghiên cứu
Tạo một dự án ADK với deployment_target: none, sau đó kiểm tra app/fast_api_app.py và import nó trong một môi trường cô lập không có Application Default Credentials. Theo dõi entry point --otel-to-cloud và cách xử lý môi trường con, rồi chạy bộ kiểm thử hồi quy được báo cáo; được xem là hoàn tất khi việc khởi động cục bộ không cần ADC hoặc Cloud Logging, đồng thời việc truyền chính xác opt-in và hành vi fallback hiện có vẫn được bao phủ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Baseline
Reproduced from v1.3.1 at 5a306f8956cb1eeae69f9709de0e4d61b44e11e7.
Reproduction
- Generate an ADK project with
deployment_target: none. - Use an isolated local environment without Application Default Credentials.
- Import or start the generated
app/fast_api_app.py.
The generated module unconditionally calls google.auth.default(), constructs google.cloud.logging.Client(), and always sets otel_to_cloud=True.
Actual behavior
A local-only template needs cloud credentials and a Cloud Logging dependency merely to import/start. This makes the none target fail in a normal offline/no-ADC development environment.
Expected behavior
The local target should use Python stdlib logging and start without ADC. Existing cloud OTEL behavior should remain opt-in through the public --otel-to-cloud flag only.
Minimal fix
- use
logging.getLogger(__name__)in the local template and remove its Cloud Logging dependency; - pass a private child-only
AGENTS_CLI_OTEL_TO_CLOUD=1value only when--otel-to-cloudis explicitly set; - remove any inherited copy of that private variable when the option is off;
- read the private flag before loading project
.envfiles, accepting only the exact value1.
Reference implementation: https://github.com/benagentai93-dot/agents-cli/commit/d888f8db85d05e7bb4ed92c711045a246c00b537
Test evidence
Runnable regressions cover dependency output, import without ADC, exact opt-in behavior, inherited-environment removal, explicit child propagation, and the existing ADK fallback flag.
Fork verification on Python 3.11/3.13:
- focused Batch 1 suite: 17 passed
- full root suite: 19 passed
- lint, type check, build, and installed-wheel smoke: passed
- Ngôn ngữ chính
- Python
- Star
- 6k
- Fork
- 686
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của google/agents-cli
-
documentation needs review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 92/100
google/agents-cli#86 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
google/agents-cli#95 ·
-
deploy in agents cli doesn't accept ingress and egress gateway option.Có thể đã có người làm @asrujana-44 đã nhận 1 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
google/agents-cli#94 · 1 người được giao ·
-
needs review
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
google/agents-cli#92 · 2 bình luận ·
-
scaffold: dependency reconciliation is silent — no diff shown, unlike enhance/upgradeCó thể đã có người làm @asrujana-44 đã nhận 7 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
google/agents-cli#85 · 1 bình luận · 1 người được giao ·
Tất cả issue của google/agents-cli
Issue tương tự
-
area/install reliability
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
FluidNumerics/fluid-walk-blocker#191 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
TransformerLensOrg/TransformerLens#1868 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
climate-analytics-lab/jax-gcm#1057 ·
Maintainer thường phản hồi trong vòng 1 ngày