Skip to content

pre-commit check frequently fails on Copybara pushes to main, blocking external contributors #5963

@primenko-v

Description

@primenko-v

The pre-commit CI check frequently fails on commits pushed to main by copybara-service. Filtering the Actions tab by is:failure branch:main shows 90+ failures, all from the internal pipeline.

Since pre-commit/action runs --all-files, any external PR that touches .py files inherits these pre-existing failures and cannot pass CI — even when the PR's own changes are correctly formatted.

Example: commit e5af12c2 introduced formatting issues in:

  • src/google/adk/flows/llm_flows/base_llm_flow.py
  • src/google/adk/flows/llm_flows/basic.py
  • src/google/adk/models/gemini_llm_connection.py
  • tests/unittests/flows/llm_flows/test_base_llm_flow.py
  • tests/unittests/models/test_gemini_llm_connection.py

The check ran and failed, but since the changes were pushed directly, the check is just informational. As a result, contributor branches are now also failing — see here.

Ask: Could the internal pipeline run isort and pyink before syncing to GitHub, to match the public pre-commit checks?

Metadata

Metadata

Assignees

Labels

core[Component] This issue is related to the core interface and implementation

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions