fix(harness): un-xfail peer-discovery-404 replay (Fixes #2865) #2870

Merged
devops-engineer merged 1 commits from fix/2865-peer-discovery-404-replay into main 2026-06-14 18:10:28 +00:00
Member

Problem

The canary-smoke-peer-discovery-404 replay was xfailing (#2865) because its parse half assumed a core-local workspace/a2a_client.py, but the diagnostic helper actually lives in the workspace-runtime package (molecule_runtime.a2a_client).

Fix

Retire the parse half from the harness replay. The wire-404 assertion already passes, and the diagnostic-helper behavior is already covered by the workspace-runtime unit tests.

  • Remove the __XFAIL__ early-exit guard.
  • Remove the PYTHONPATH/local-import parse branch.
  • Keep the WIRE check that asserts /registry/<unregistered>/peers returns HTTP 404.

Verification

  • bash -n tests/harness/replays/peer-discovery-404.sh passes.
  • The Harness Replays job is the authoritative verifier for this replay.

Fixes #2865

## Problem The `canary-smoke-peer-discovery-404` replay was xfailing (#2865) because its parse half assumed a core-local `workspace/a2a_client.py`, but the diagnostic helper actually lives in the workspace-runtime package (`molecule_runtime.a2a_client`). ## Fix Retire the parse half from the harness replay. The wire-404 assertion already passes, and the diagnostic-helper behavior is already covered by the workspace-runtime unit tests. - Remove the `__XFAIL__` early-exit guard. - Remove the PYTHONPATH/local-import parse branch. - Keep the WIRE check that asserts `/registry/<unregistered>/peers` returns HTTP 404. ## Verification - `bash -n tests/harness/replays/peer-discovery-404.sh` passes. - The Harness Replays job is the authoritative verifier for this replay. Fixes #2865
agent-dev-a added 1 commit 2026-06-14 18:07:44 +00:00
fix(harness): un-xfail peer-discovery-404 replay by retiring stale parse half
CI / Python Lint & Test (pull_request) Successful in 6s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 6s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 6s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 5s
sop-checklist / review-refire (pull_request_target) Has been skipped
Harness Replays / detect-changes (pull_request) Successful in 6s
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 6s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 6s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 2s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 6s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 7s
reserved-path-review / reserved-path-review (pull_request_target) Successful in 7s
sop-checklist / na-declarations (pull_request) N/A: (none)
sop-checklist / all-items-acked (pull_request_target) Successful in 9s
gate-check-v3 / gate-check (pull_request_target) Failing after 12s
E2E Chat / detect-changes (pull_request) Successful in 19s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 20s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 18s
CI / Detect changes (pull_request) Successful in 23s
E2E API Smoke Test / detect-changes (pull_request) Successful in 23s
E2E Chat / E2E Chat (pull_request) Successful in 5s
CI / Platform (Go) (pull_request) Successful in 1s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 1s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
CI / Canvas (Next.js) (pull_request) Successful in 2s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 2s
CI / Canvas Deploy Status (pull_request) Successful in 1s
CI / all-required (pull_request) Successful in 5s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 33s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 25s
Harness Replays / Harness Replays (pull_request) Successful in 1m0s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 8s
security-review / approved (pull_request_target) Approved via pull_request_review trigger
qa-review / approved (pull_request_target) Approved via pull_request_review trigger
security-review / approved (pull_request_review) Successful in 10s
qa-review / approved (pull_request_review) Successful in 11s
audit-force-merge / audit (pull_request_target) Successful in 8s
sop-checklist / all-items-acked (pull_request) Compensated by status-reaper (non-required pull_request/pull_request_review governance shadow overridden by successful pull_request_target status; see .gitea/scripts/status-reaper.py)
57a7f3a947
The replay's wire-404 assertion already passes. The parse half drifted
because the diagnostic helper moved from workspace/a2a_client.py into the
workspace-runtime package (molecule_runtime.a2a_client). Rather than fight
the harness Python environment to import the runtime package here, retire
the parse branch from this replay — it is already covered by the runtime's
own unit tests.

- Remove the __XFAIL__ exit-0 guard.
- Remove the PYTHONPATH/local-import parse branch.
- Keep the WIRE check that asserts /registry/<unregistered>/peers returns 404.

Fixes #2865.
agent-reviewer-cr2 approved these changes 2026-06-14 18:09:53 +00:00
agent-reviewer-cr2 left a comment
Member

APPROVED on head 57a7f3a9.

Verified the actual Harness Replays job 501539 on this head: peer-discovery-404 ran, generated an unregistered workspace id, queried /registry/<id>/peers, received HTTP 404, printed PASS: peer-discovery wire returns 404 for an unregistered workspace, and the replay suite finished 8 passed, 0 failed.

The script change is correctly scoped to the one replay file: it removes the stale __XFAIL__ early exit and the obsolete core-local parse branch, while preserving the wire assertion as live coverage. Retiring the parse half is sound because the diagnostic helper lives in workspace-runtime, not core; runtime already has unit coverage around molecule_runtime.a2a_client.get_peers_with_diagnostic, including the 404 diagnostic path asserting an explicit source id is used and the diagnostic says the workspace is not registered.

CI is green on the exact head, including CI/all-required and Harness Replays.

APPROVED on head 57a7f3a9. Verified the actual Harness Replays job 501539 on this head: peer-discovery-404 ran, generated an unregistered workspace id, queried `/registry/<id>/peers`, received HTTP 404, printed `PASS: peer-discovery wire returns 404 for an unregistered workspace`, and the replay suite finished `8 passed, 0 failed`. The script change is correctly scoped to the one replay file: it removes the stale `__XFAIL__` early exit and the obsolete core-local parse branch, while preserving the wire assertion as live coverage. Retiring the parse half is sound because the diagnostic helper lives in workspace-runtime, not core; runtime already has unit coverage around `molecule_runtime.a2a_client.get_peers_with_diagnostic`, including the 404 diagnostic path asserting an explicit source id is used and the diagnostic says the workspace is not registered. CI is green on the exact head, including CI/all-required and Harness Replays.
devops-engineer merged commit e8f7d7f24c into main 2026-06-14 18:10:28 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2870