Repository navigation
test(azure): CC runtime-e2e on floci-az (just azure-cc-e2e) - #1594
Merged
Merged
Conversation
Closes #1214 — E·azure, the last slot of epic #1200. apply -> observe -> mutate-and-detect-drift -> reconcile -> rollback against floci-az, for $0, on a genuine mixed-substrate estate: the new examples/cc-azure-canonical (VnetDefault networking + an AKS managedCluster backed by a real k3s container + the k8s Service and Deployment on it). Both substrates observed in one --live read; the k8s half released by its component (#1495), the ARM half applied per-resource by azApply (floci-az has no deployments provider). - azure live export rides the applier's ARM transport when AZURE_ENDPOINT_URL is ambient (#1212's swap, extended to the cloud->code direction): list the group, GET each resource whole, scrub the server-managed surface back to the declared shape, feed the same ArmParser. The signed az-CLI path is unchanged. - AZURE_SERVER_COMPUTED_NAMES: fqdn / currentKubernetesVersion / nodeResourceGroup normalize away counterpart-gated — a declared nodeResourceGroup is still compared. - k8s noise rules widened on this estate (rancher/k3s:latest, k8s 1.34): chant's own stamped ownership labels (the k8s edition of #1213's rule), server-assigned Service fields (clusterIP/clusterIPs/ipFamilies), and probe/termination/securityContext defaults. Counterpart-gated throughout; just aws-cc-e2e re-run green with these in place. - floci-gaps entries 8-10: 0.10.0 never transitions an AKS cluster to Succeeded in Docker and its admin credential is a mock token (the harness performs the emulator's own finalize itself and gates on the apiserver's /readyz); the modeled managedClusters provider drops declared surface; the RG resource list omits modeled providers, so reconcile carries the networking estate while the cluster rides its authored source. On-demand, not gating CI; skips cleanly without Docker or kubectl. The example's offline half (synthesize + lint) joins examples.test.ts like cc-aws-canonical's.
…ons, regenerate fold coverage for the 104-project corpus
4 tasks done
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 #1214 — E·azure, the last slot of epic #1200.
The azure lane's acceptance run:
apply -> observe -> mutate-and-detect-drift -> reconcile -> rollbackagainst floci-az 0.10.0 (the FLOCI_AZ_SPEC pin), for $0, on a genuine mixed-substrate estate — run locally end-to-end green, twice, including once after every change in this PR.The estate: examples/cc-azure-canonical
VnetDefault networking (the same estate the drift acceptance #1213 rides) plus an AKS managedCluster backed by a real k3s container and the k8s Service + Deployment on it. The ARM half is applied per-resource by
azApply(floci-az has no deployments provider); the k8s half is released by its component (#1495) through the cluster's own kubeconfig, andchant components status --liveobserves that unit through the stamped ownership labels. Offline half (synthesize + lint) joinsexamples.test.tslike cc-aws-canonical's.Lexicon work the round-trip needed
chant import --from <env>withAZURE_ENDPOINT_URLambient no longer shellsaz group export(which cannot reach an emulator): it lists the group, GETs each resource whole over the same unsigned transportazApplywrites on (feat(azure): native observer -- ARM-REST transport swap #1212's swap, extended to the cloud->code direction), scrubs the server-managed surface back to the declared shape, and feeds the sameArmParser. The signed CLI path is unchanged.AZURE_SERVER_COMPUTED_NAMES—fqdn/currentKubernetesVersion/nodeResourceGroupnormalize away counterpart-gated (a declarednodeResourceGroupis still compared), so a clean AKS apply is quiet.clusterIP/clusterIPs/ipFamilies), and probe/termination/securityContext defaults. All counterpart-gated — a declared value is still compared.just aws-cc-e2ere-run green with these in place.Emulator reality, asserted rather than fought (test/floci-gaps.md entries 8–10)
Succeededwhen the emulator runs in Docker, andlistClusterAdminCredentialcarries a mock token the real k3s rejects. The harness asserts the credential surface answers and names the cluster's endpoint, then performs the emulator's own finalize itself (docker execthe k3s container fork3s.yaml, server rewritten to the host-published port) and gates on the apiserver's/readyz— so an upstream fix breaks nothing.identity/networkProfile/addonProfilesand part of the pool declaration — the estate declares exactly the surface that round-trips.Gates
just build,just lint,just test(11843 passed),npm run build -w @intentius/chant-lexicon-azure,npm run build -w @intentius/chant-lexicon-k8sall green.just azure-cc-e2egreen locally;just aws-cc-e2ere-run green.