Repository navigation
test(lexicons): cross-lexicon lifecycle integration (aws, gcp, k8s, azure) - #170
Merged
Merged
Conversation
…zure) Proves the seam between core's lifecycle drivers and the REAL lexicon plugins — not createMockPlugin fixtures. One row per cloud, each driving: - core's live-import driver (liveImportFromPlugins): real exportResources -> IR -> generated source, with the cloud edge (spawn/exec) mocked - core's changeset path (buildChangeSet): real describeResources -> diffLive verdicts (create / adopt / noop) Confirms the audited safe default: a live, undeclared, unmarked resource classifies as adopt — never delete — because real describeResources does not populate the live ownership marker. Placed per-lexicon (not in core) to avoid a core->lexicon reverse dependency; each row imports core via @intentius/chant subpath exports. Closes #163
78 of 84 tasks
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.
Closes #163.
What
Proves the seam between core's lifecycle drivers and the real lexicon plugins — previously only
createMockPluginfixtures exercised this path. One matrix row per cloud, each driving two core entry points with the cloud edge mocked:@intentius/chant/cli/commands/importliveImportFromPlugins): realexportResources→ IR → generated source written to a temp dir.@intentius/chant/lifecycle/change-setbuildChangeSet): realdescribeResources→diffLiveverdicts (create/adopt/noop).Notable assertion
Confirms the audited safe default: a live, undeclared, unmarked resource classifies as
adopt, neverdelete— because realdescribeResourcesdoes not populate the live ownership marker. Theowned → deletepath stays covered bychange-set.test.tswith synthetic metadata.Placement
Per-lexicon (
lexicons/<cloud>/src/lifecycle-integration.test.ts) rather than inpackages/core, to avoid a core→lexicon reverse dependency. Each row imports core via the@intentius/chant/*subpath exports (which resolve to core source under vitest).Verification
npx vitest run lexicons/aws lexicons/azure lexicons/gcp lexicons/k8s packages/core/src/lifecycle— 2279 passing.npx tsc --noEmit -p packages/core/tsconfig.json+ eslint — clean.The full
runLifecycleDiffCLI handler remains covered bylifecycle.test.ts(mock plugins); this PR adds the real-plugin coverage it lacked.