Repository navigation
feat(azure): property-level drift holds on floci-az — clean apply quiet, an out-of-band NSG rule surfaces (#1213) - #1588
Merged
Conversation
…et, an out-of-band NSG rule surfaces (#1213) The D-azure acceptance run, and the four normalization gaps it flushed out: - an unresolved hook joins the deep-normalization seam: a declared ARM bracket-expression string ([resourceId(...)]) collapses to UNRESOLVED instead of diffing a formula against its evaluated live value - chant's own ownership tags (chant-stack/chant-env unconditionally, the managed-by pair gated on the "chant" value) are not drift — the azure edition of the #1301 correction - ARM's self-id on nested child elements (securityRules[].id) and nested etags subtract; a declared element id keeps its counterpart and is still compared - a child resource's leaf name folds back to the declared vnet/subnet spelling, and a live location nobody declared is placement, not drift test/azure-drift-e2e.sh (just azure-drift-e2e) proves all four claims against floci-az: a clean apply is quiet, a hand-edited NSG rule surfaces path by path, the RG-delete-does-not-cascade orphan estate stays observed per-resource, and an emulator restart (in-memory state) reads as entity-level MISSING with the property axis silent. The floci-az modeled storage-account provider does not persist what was PUT; recorded in test/floci-gaps.md for the upstream filing pass.
2 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 #1213 (D·azure, epic #1200).
The acceptance run for the #1202 drift seam on Azure, against floci-az as the epic's harness. Running it flushed out four normalization gaps; each is fixed here with unit coverage, and the run itself is committed as
test/azure-drift-e2e.sh(just azure-drift-e2e, on-demand, Docker only).What the run proves
provisioningState,defaultSecurityRules), chant's own ownership tags, or declared[resourceId(...)]expressions.The fixes the run forced
unresolvedhook on the deep-normalization seam (core, additive): a declared ARM bracket-expression string ("[resourceId(...)]") is an unevaluated reference the applier resolves at deploy time. It now collapses toUNRESOLVED— which the diff already skips — instead of diffing a formula against its evaluated value. Azure is the motivating lexicon: its references are plain JSON strings the pass cannot recognize as intrinsics.chant-stack/chant-envsubtract where undeclared; the managed-by pair (chant-managed-by+ legacymanaged-by) only when carrying thechantvalue, somanaged-by: terraformappearing out of band still surfaces.securityRules[].id) where undeclared, and nestedetags wherever ARM stamps them. A declared element id (a storage account'svirtualNetworkRules[].id) keeps its counterpart and is still compared.vnet/subnetfolds ARM's leafnameback to the declared spelling (the URL that answered 200 is the declared name), and a livelocationnobody declared is effective placement, not drift.Also records the floci-az modeled storage-account provider gap (drops tags and unknown properties, flips
supportsHttpsTrafficOnly) astest/floci-gaps.mdentry 7 for the one-pass upstream filing — it is why the acceptance estate is the canonical example's VnetDefault networking rather than including a storage account.Gates
just build,just lint,just test(11.7k tests),npm run build -w @intentius/chant-lexicon-azure— greenjust azure-drift-e2e— PASS end to end onfloci/floci-az:0.10.0