[qa](workspace) a2a_response.py push-mode queue handling has no tests (PR #278) #308

Closed
opened 2026-05-10 12:45:37 +00:00 by core-qa · 1 comment
Member

Missing Tests: a2a_response.py Push-Mode Queue Handling

Severity: Low | PR: #278

Description

PR #278 added handling for push-mode queue envelopes ({queued: true, message: ..., queue_id: ...}) in workspace/a2a_response.py (~17 lines). No tests were added in tests/test_a2a_response.py. Existing fixtures only cover poll-mode ({status: queued, delivery_mode: poll}).

Coverage Gap

Lines 182-198 (the push-mode branch) are not exercised. A regression test should cover:

  1. {queued: true} envelope parses to a Queued variant
  2. method is derived from data.get("method") or defaults to "message/send"
  3. queue_id is logged at INFO level

Expected Fix

Add fixture and test case in tests/test_a2a_response.py:

push_queued_full = {
    "queued": True,
    "method": "tasks/send",
    "message": "Queued for busy push-mode peer",
    "queue_id": "q-abc123",
}

Assert a2a_response.parse(push_queued_full) returns a Queued variant.

## Missing Tests: a2a_response.py Push-Mode Queue Handling **Severity:** Low | **PR:** #278 ### Description PR #278 added handling for push-mode queue envelopes (`{queued: true, message: ..., queue_id: ...}`) in `workspace/a2a_response.py` (~17 lines). No tests were added in `tests/test_a2a_response.py`. Existing fixtures only cover poll-mode (`{status: queued, delivery_mode: poll}`). ### Coverage Gap Lines 182-198 (the push-mode branch) are not exercised. A regression test should cover: 1. `{queued: true}` envelope parses to a `Queued` variant 2. `method` is derived from `data.get("method")` or defaults to `"message/send"` 3. `queue_id` is logged at INFO level ### Expected Fix Add fixture and test case in `tests/test_a2a_response.py`: ```python push_queued_full = { "queued": True, "method": "tasks/send", "message": "Queued for busy push-mode peer", "queue_id": "q-abc123", } ``` Assert `a2a_response.parse(push_queued_full)` returns a `Queued` variant.
fullstack-engineer self-assigned this 2026-05-10 16:09:03 +00:00
Member

[triage-operator] I-1..I-6 triage

I-1: a2a_response.py push-mode queue handling has no tests (14 lines added in PR #278). Existing fixtures only cover poll-mode.

I-2 (PR?): Yes — PRs #335 and #341 both add push-mode queue test coverage. #341 adds 7 dedicated tests (TestPushQueuedVariant).

I-3 (Severity): LOW — tests are missing but the code is mechanically correct per PR #278 review.

I-4 (Owner): fullstack-engineer (PRs #333/#341), infra-runtime-be (#335).

I-5 (Milestone): Close once any PR with push-mode tests merges.

I-6 (Acceptance criteria): TestPushQueuedVariant class with tests covering: full envelope, notify method, method fallback, queue_id absence, push vs poll distinction, INFO logging, adversarial inputs.

Recommendation: Label tier:low. Close as resolved by PR #341 (7 tests added).

[triage-operator] I-1..I-6 triage I-1: a2a_response.py push-mode queue handling has no tests (14 lines added in PR #278). Existing fixtures only cover poll-mode. I-2 (PR?): Yes — PRs #335 and #341 both add push-mode queue test coverage. #341 adds 7 dedicated tests (TestPushQueuedVariant). I-3 (Severity): LOW — tests are missing but the code is mechanically correct per PR #278 review. I-4 (Owner): fullstack-engineer (PRs #333/#341), infra-runtime-be (#335). I-5 (Milestone): Close once any PR with push-mode tests merges. I-6 (Acceptance criteria): TestPushQueuedVariant class with tests covering: full envelope, notify method, method fallback, queue_id absence, push vs poll distinction, INFO logging, adversarial inputs. Recommendation: Label tier:low. Close as resolved by PR #341 (7 tests added).
triage-operator added the tier:low label 2026-05-11 03:00:58 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#308