Repository navigation
examples: runnable differentiator journeys wired into CI (#367) - #381
Merged
Merged
Conversation
Four self-contained journey tests in test/e2e (already run in CI), each starting its own emulator.StartTestServer and using the real AWS SDK v2: - journey_throttling: seed a throttling fault via the control plane, observe the SDK surface it, clear it, succeed. - journey_replay: run a workload, replay the recorded event stream through the registry deterministically. - journey_cost: run a workload, read cost from the event store, gate on a budget. - journey_timetravel: pin/advance the simulated clock, observe object LastModified move with it. To make these work out of the box, StartTestServer now wires a FaultController (disabled; rules seedable via POST /v1/fault/rules) and a CostController, so fault injection and non-zero cost summaries are available to every test server. Documented in examples/README.md. Terraform/CDK/pytest journeys (external toolchains) split to #380. Closes #367.
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.
Seventh PR of v0.76.0. Turns Substrate's most unusual features from claims into runnable, CI-exercised examples.
Journeys (in
test/e2e, run by the existing E2E CI job)Each starts its own
emulator.StartTestServerand uses the real AWS SDK v2, so it reads as a self-contained example:journey_throttling_test.goPOST /v1/fault/rules, observe the SDK surface it, clear it, succeed — the failure path a retry loop exists for, fired deterministically.journey_replay_test.gojourney_cost_test.gojourney_timetravel_test.goLastModifiedmove with it (exactly 24h).Enabling change
To make these work out of the box,
StartTestServernow wires a FaultController (disabled; rules seedable over HTTP) and a CostController — so fault injection and non-zero cost summaries are available to every test-server user, not just these tests. Full emulator suite still green.Scope
The 4 pure-Go journeys land here (no extra CI toolchain). Terraform/CDK/pytest journeys need external toolchains and are split to #380. Documented in
examples/README.md.Closes #367.