Skip to content

test(broker): prove serve negotiates a v2 .servicedef.v2 end-to-end (soldr#2364) - #907

Merged
zackees merged 1 commit into
mainfrom
test/2364-v2-servicedef-e2e
Aug 9, 2026
Merged

zackees merged 1 commit into
mainfrom
test/2364-v2-servicedef-e2e

Conversation

@zackees

@zackees zackees commented Aug 9, 2026

Copy link
Copy Markdown
Owner

What

Adds serve_launching_backends_negotiates_with_a_v2_servicedef to
tests/broker/serve.rs: the integration-level acceptance proof for Phase 2
of soldr#2361 / soldr#2364.

A cold Hello against a real serve_launching_backends broker whose service is
installed as a .servicedef.v2 file — the format soldr and every other v2
consumer writes via write_service_definition_v2 — now negotiates a backend
(Negotiated) instead of returning Refused { "service definition was not found" }.

Why it matters

This exercises the full fixed path end-to-end against the real accept loop
(not a stub):

  1. client-side Frame-wrapped Hello (fix(broker): wrap client_v2's Hello/HelloReply in the Frame envelope #904), through
  2. the CombinedServiceDefinitionLoader's v2-first lookup (fix(broker): serve .servicedef.v2 via a v2-first combined loader (soldr#2364) #905), to
  3. a Negotiated reply.

Before these fixes the serve path read only v1 .servicedef files, so a v2-only
install (the soldr default) was refused — which is exactly what blocked a real
SOLDR_USE_BROKER=1 compile from negotiating. The existing v1-servicedef serve
tests continue to pass via the loader's v1 fallback, so both formats are covered.

Testing

  • soldr cargo test -p running-process --test broker "serve::": 7 passed
    (including the new test); fmt --check clean.

…soldr#2364)

Adds serve_launching_backends_negotiates_with_a_v2_servicedef: a cold Hello
against a real serve_launching_backends broker whose service is installed as a
.servicedef.v2 file (the soldr/v2-consumer default) now negotiates a backend
instead of returning Refused { "service definition was not found" }.

This is the integration-level acceptance proof for Phase 2 of soldr#2361: it
exercises the full fixed path -- client-side Frame-wrapped Hello (#904) through
the CombinedServiceDefinitionLoader's v2-first lookup (#905) to a Negotiated
reply -- against the real accept loop, not a stub. Existing v1-servicedef serve
tests continue to pass via the loader's v1 fallback.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@codecov

codecov Bot commented Aug 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@zackees
zackees merged commit bf391aa into main Aug 9, 2026
15 checks passed
@zackees
zackees deleted the test/2364-v2-servicedef-e2e branch August 9, 2026 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant