8000 fix(deploy,examples): pin googleapis-common-protos below 1.75.4 by janzak-dev · Pull Request #985 · google/xmc · GitHub
[go: up one dir, main page]

Skip to content

fix(deploy,examples): pin googleapis-common-protos below 1.75.4 - #985

Merged
janzak-dev merged 2 commits into
mainfrom
fix/pin-googleapis-common-protos
Sep 25, 2026
Merged

janzak-dev merged 2 commits into
mainfrom
fix/pin-googleapis-common-protos

Conversation

@janzak-dev
@janzak-dev janzak-dev commented Sep 25, 2026 •
Copy link
Copy Markdown
Collaborator

Summary

Pins googleapis-common-protos to <1.75.4 across deployment scripts, example virtual environment scripts/requirements, and SDK configs to prevent breaking changes in upstream protobuf descriptor pool registrations.

Motivation & Context

Nightly run #36084831609 failed due to the release of googleapis-common-protos 1.75.4 on PyPI (released 2026-09-24 23:19:57 UTC). Upstream 1.75.4 regenerated operations_proto_pb2.py from operations_proto.proto instead of operations.proto, breaking descriptor pool lookup for google/longrunning/operations.proto when importing longrunning operations protos. Pinning googleapis-common-protos<1.75.4 restores stability across runtime deployment and example job execution.

Successful run

https://github.com/google/xmc/actions/runs/36109137545/job/107988362447

Key Changes

  • Deploy CLI (deploy/cli/install_xmanager.py): Constrain googleapis-common-protos<1.75.4.
  • SDKs (sdks/python/xdash/pyproject.toml): Pin googleapis-common-protos>=1.50.0,<1.75.4.
  • Examples:
    • Constrain googleapis-common-protos<1.75.4 in examples/*/install_venv.sh scripts (chart_artifact_job, clickhouse_metrics_job, xdash_dashboard).
    • Constrain googleapis-common-protos>=1.63.0,<1.75.4 across all 13 example requirements.txt files.

Assumptions

None — requirements were fully specified.

Verification & Testing

  • Commands Executed:
    • export PATH="...:$PATH" && ./.githooks/pre-commit (all pre-commit hooks passed: Buildifier, gofmt, golangci-lint, determinism, addlicense, Trivy)
    • ./tools/analyze_diff_size.py --base-ref origin/main... (diff size check passed: 0 prod lines, 0 test lines)
    • bazel test //deploy/cli:install_xmanager_test //sdks/python/xdash/... (5/5 tests passed)
  • Coverage & Test Status: All affected unit tests and formatting hooks passed cleanly locally.

Related Issues / Bugs

N/A (Resolves failure in nightly run #36084831609)

TAG=agy
CONV=df3c1c34-924a-42d3-81dc-9755d79b93f5

…solve proto descriptor pool breakage

Pin googleapis-common-protos to <1.75.4 across deployment scripts, example
requirements, and SDK configs. Upstream 1.75.4 regenerated
operations_proto_pb2.py from operations_proto.proto instead of operations.proto,
breaking descriptor pool lookup for google/longrunning/operations.proto.

TAG=agy
CONV=df3c1c34-924a-42d3-81dc-9755d79b93f5
@gemini-code-assist gemini-code-assist Bot left a comment
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the googleapis-common-protos dependency across multiple project files to include a version constraint of <1.75.4. The reviewer suggests standardizing dependency installation by using requirements.txt files instead of manually listing packages in shell scripts to ensure consistency and maintainability.

…tall_venv scripts

Install example dependencies directly from requirements.txt across
chart_artifact_job, clickhouse_metrics_job, and xdash_dashboard install_venv.sh scripts.

Comment link: #985 (comment)
Comment link: #985 (comment)
Comment link: #985 (comment)

TAG=agy
CONV=df3c1c34-924a-42d3-81dc-9755d79b93f5
@janzak-dev
janzak-dev marked this pull request as ready for review September 25, 2026 07:49
@janzak-dev janzak-dev added the priority::2-high top of mind. should not wait. label Sep 25, 2026
@janzak-dev
janzak-dev added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 9e42f28 Sep 25, 2026
14 checks passed
@janzak-dev
janzak-dev deleted the fix/pin-googleapis-common-protos branch September 25, 2026 10:58

This branch was previously deployed

1 inactive deployment
xmc-nightly — c19bc85b Deployed Sep 25, 2026 by janzak-dev via Run & Verify Demo Workload #58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority::2-high top of mind. should not wait.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0