Repository navigation
test(broker): prove serve negotiates a v2 .servicedef.v2 end-to-end (soldr#2364) - #907
Merged
Merged
Conversation
…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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
What
Adds
serve_launching_backends_negotiates_with_a_v2_servicedeftotests/broker/serve.rs: the integration-level acceptance proof for Phase 2of soldr#2361 / soldr#2364.
A cold Hello against a real
serve_launching_backendsbroker whose service isinstalled as a
.servicedef.v2file — the format soldr and every other v2consumer writes via
write_service_definition_v2— now negotiates a backend(
Negotiated) instead of returningRefused { "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):
CombinedServiceDefinitionLoader's v2-first lookup (fix(broker): serve .servicedef.v2 via a v2-first combined loader (soldr#2364) #905), toNegotiatedreply.Before these fixes the serve path read only v1
.servicedeffiles, so a v2-onlyinstall (the soldr default) was refused — which is exactly what blocked a real
SOLDR_USE_BROKER=1compile from negotiating. The existing v1-servicedef servetests 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 --checkclean.