Skip to content

refactor(server)!: add build_user function to DefaultContextBuilder to allow A2A user creation customization #3254

refactor(server)!: add build_user function to DefaultContextBuilder to allow A2A user creation customization

refactor(server)!: add build_user function to DefaultContextBuilder to allow A2A user creation customization #3254

Triggered via pull request April 3, 2026 14:23
Status Failure
Total duration 1m 12s
Artifacts

linter.yaml

on: pull_request
Lint Code Base
1m 8s
Lint Code Base
Fit to window
Zoom out
Zoom in

Annotations

14 errors, 1 warning, and 6 notices
Lint Code Base
Process completed with exit code 1.
Lint Code Base
Process completed with exit code 1.
Lint Code Base
Process completed with exit code 1.
Lint Code Base
Process completed with exit code 1.
ruff (F822): src/a2a/server/routes/__init__.py#L10
src/a2a/server/routes/__init__.py:10:5: F822 Undefined name `ContextBuilder` in `__all__`
ruff (I001): src/a2a/server/routes/__init__.py#L3
src/a2a/server/routes/__init__.py:3:1: I001 Import block is un-sorted or un-formatted help: Organize imports
ruff (RUF022): src/a2a/server/request_handlers/__init__.py#L43
src/a2a/server/request_handlers/__init__.py:43:11: RUF022 `__all__` is not sorted help: Apply an isort-style sorting to `__all__`
ruff (I001): src/a2a/server/request_handlers/__init__.py#L21
src/a2a/server/request_handlers/__init__.py:21:5: I001 Import block is un-sorted or un-formatted help: Organize imports
ruff (F821): src/a2a/compat/v0_3/rest_adapter.py#L66
src/a2a/compat/v0_3/rest_adapter.py:66:27: F821 Undefined name `ContextBuilder`
ruff (F401): src/a2a/compat/v0_3/rest_adapter.py#L38
src/a2a/compat/v0_3/rest_adapter.py:38:5: F401 `a2a.server.routes.common.ServerCallContextBuilder` imported but unused help: Remove unused import: `a2a.server.routes.common.ServerCallContextBuilder`
ruff (I001): src/a2a/compat/v0_3/rest_adapter.py#L34
src/a2a/compat/v0_3/rest_adapter.py:34:1: I001 Import block is un-sorted or un-formatted help: Organize imports
ruff (F821): src/a2a/compat/v0_3/jsonrpc_adapter.py#L73
src/a2a/compat/v0_3/jsonrpc_adapter.py:73:27: F821 Undefined name `ContextBuilder`
ruff (F401): src/a2a/compat/v0_3/jsonrpc_adapter.py#L41
src/a2a/compat/v0_3/jsonrpc_adapter.py:41:5: F401 `a2a.server.routes.common.ServerCallContextBuilder` imported but unused help: Remove unused import: `a2a.server.routes.common.ServerCallContextBuilder`
ruff (I001): src/a2a/compat/v0_3/jsonrpc_adapter.py#L27
src/a2a/compat/v0_3/jsonrpc_adapter.py:27:1: I001 Import block is un-sorted or un-formatted help: Organize imports
Lint Code Base
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: getunlatch/jscpd-github-action@v1.3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Lint Code Base
repository contains 31 duplications. 5 duplications were part of this PR and were annotated
Copy/pasted code: src/a2a/server/routes/jsonrpc_dispatcher.py#L142
see src/a2a/server/routes/rest_dispatcher.py (69-40)
Copy/pasted code: src/a2a/server/routes/rest_routes.py#L47
see src/a2a/server/routes/jsonrpc_routes.py (30-40)
Copy/pasted code: src/a2a/server/routes/jsonrpc_routes.py#L30
see src/a2a/server/routes/rest_routes.py (47-57)
Copy/pasted code: src/a2a/server/routes/rest_routes.py#L46
see src/a2a/server/routes/rest_dispatcher.py (71-81)
Copy/pasted code: src/a2a/server/routes/rest_dispatcher.py#L71
see src/a2a/server/routes/rest_routes.py (46-56)