Repository navigation
feat(testing): @intentius/chant/testing — deployStack live-stack harness (#1224) - #1853
Merged
Merged
Conversation
This was referenced Aug 24, 2026
Merged
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.
Part of #1224.
Adds the
@intentius/chant/testingsubpath:deployStack({ dir, env?, params? })deploys a live instance of a chant project for one vitest suite and returns{ outputs, entities, env, destroy }.build()over the project's own serializers. The marker env always follows the suite environment — it is the only identitydestroy()selects on, so a project withoutownership.stackis refused up front.nativeApplyper built output with a native mechanism (aws/k8s/azure/gcp/fly), run in-process throughrunOpLocallywithdeleteMode: "never".executeTeardownin-process for exactly the suite env. Failed deletes and plan holes throwTeardownIncompleteError— an environment that cannot be called clean is a test failure, never a silent leak. Stateless: a crashed suite recovers by rerunning destroy (orchant lifecycle teardown <env> --yes).test-<suite>-<nonce>(testEnvName); projects declaringenvironmentslegalize it with a"test-*"pattern entry (feat(core): environment-scoped resource naming — one stack, many coexisting instances #1221).endpoint(chant search/graph --live: silent empty result when the environment's endpoint isn't in the ambient env #1166) is injected for the apply and the teardown viaapplyLiveEndpoint; ambient vars (whatchant emulator up --jsonreports, emulator: expose EmulatorSpec via plugin +chant emulator up|down|statusCLI #920) always win../testingfollowing the existing subpath pattern (development + dist conditions).Unit tests against the test-utils mock plugin: outputs/entities returned, additive apply args, endpoint applied and scoped, ambient-wins, destroy sweeps exactly the nonce'd env, holes and failed deletes thrown, illegal env refused with the
"test-*"hint.Verified: core tsc clean,
npx vitest run packages/core4444 passed, eslint clean.