test: add multi-server scenarios over a shared database - #1247
Open
mykytanetipa wants to merge 1 commit into
Open
mykytanetipa wants to merge 1 commit into
mykytanetipa wants to merge 1 commit into
Conversation
mykytanetipa
added this pull request to stack #1246
September 17, 2026 08:50
mykytanetipa
force-pushed
the
multiserver/integration-tests
branch
from
September 17, 2026 09:57
d56058a to
8f20966
Compare
🧪 Code Coverage (vs
|
| Base | PR | Delta | |
|---|---|---|---|
| src/a2a/server/agent_execution/active_task.py | 94.18% | 94.63% | 🟢 +0.45% |
| src/a2a/server/cluster/database_event_stream.py | 90.82% | 92.86% | 🟢 +2.04% |
| Total | 92.83% | 92.87% | 🟢 +0.04% |
Generated by coverage-comment.yml
mykytanetipa
force-pushed
the
multiserver/integration-tests
branch
from
September 17, 2026 10:22
8f20966 to
66f6dec
Compare
mykytanetipa
force-pushed
the
multiserver/integration-tests
branch
from
September 17, 2026 10:36
66f6dec to
eee85ac
Compare
mykytanetipa
marked this pull request as ready for review
September 17, 2026 10:51
mykytanetipa
force-pushed
the
multiserver/integration-tests
branch
from
September 22, 2026 22:47
eee85ac to
50f1154
Compare
… test wiring Adds tests/integration/test_multiserver.py: two DefaultRequestHandlerV2 replicas sharing one database (versioned store + DB event stream, each replica on its own engine), exercising cross-replica send, resubscribe, and cancel end to end. Runs only against a real Postgres or MySQL server -- parametrized on POSTGRES_TEST_DSN / MYSQL_TEST_DSN and skipped entirely when neither is set. SQLite is excluded on purpose: its whole-table locking cannot model two simultaneous writers (the lost-update scenario), and the sequential cross-replica behaviours are already covered without a database by tests/server/cluster/test_*_multireplica.py. Wires the DB-requiring cluster tests into scripts/run_db_tests.sh so the local docker-compose helper runs them alongside the existing database tests. CI needs no change: unit-tests.yml already runs the whole tests/ tree with the service- container DSNs exported.
mykytanetipa
force-pushed
the
multiserver/integration-tests
branch
from
September 22, 2026 23:20
50f1154 to
e3f6a13
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds end-to-end coverage for the multi-replica path against a real database.
Key changes:
Design discussion: #1224