Skip to content

test(azure): CC runtime-e2e on floci-az (just azure-cc-e2e) - #1594

Merged
lex00 merged 2 commits into
mainfrom
test/azure-cc-e2e
Aug 8, 2026
Merged

lex00 merged 2 commits into
mainfrom
test/azure-cc-e2e

Conversation

@lex00

@lex00 lex00 commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1214 — E·azure, the last slot of epic #1200.

The azure lane's acceptance run: apply -> observe -> mutate-and-detect-drift -> reconcile -> rollback against 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, and chant components status --live observes that unit through the stamped ownership labels. Offline half (synthesize + lint) joins examples.test.ts like cc-aws-canonical's.

Lexicon work the round-trip needed

  • azure live export over the applier's ARM transport — chant import --from <env> with AZURE_ENDPOINT_URL ambient no longer shells az group export (which cannot reach an emulator): it lists the group, GETs each resource whole over the same unsigned transport azApply writes 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 same ArmParser. The signed CLI path is unchanged.
  • AZURE_SERVER_COMPUTED_NAMES — fqdn / currentKubernetesVersion / nodeResourceGroup normalize away counterpart-gated (a declared nodeResourceGroup is still compared), so a clean AKS apply is quiet.
  • k8s noise rules widened (surfaced by rancher/k3s:latest = k8s 1.34, where SSA leaves server-defaulted fields unowned and therefore diffable): chant's own stamped ownership labels (the k8s edition of feat(azure): property-level drift #1213's azure rule), server-assigned Service fields (clusterIP/clusterIPs/ipFamilies), and probe/termination/securityContext defaults. All counterpart-gated — a declared value is still compared. just aws-cc-e2e re-run green with these in place.

Emulator reality, asserted rather than fought (test/floci-gaps.md entries 8–10)

  • 8: 0.10.0 never transitions an AKS cluster to Succeeded when the emulator runs in Docker, and listClusterAdminCredential carries 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 exec the k3s container for k3s.yaml, server rewritten to the host-published port) and gates on the apiserver's /readyz — so an upstream fix breaks nothing.
  • 9: the modeled managedClusters provider drops declared identity/networkProfile/addonProfiles and part of the pool declaration — the estate declares exactly the surface that round-trips.
  • 10: the RG resource list omits modeled providers, so reconcile regenerates the networking estate (out-of-band rule included) while the cluster rides its authored source; the harness asserts exactly that split.

Gates

just build, just lint, just test (11843 passed), npm run build -w @intentius/chant-lexicon-azure, npm run build -w @intentius/chant-lexicon-k8s all green. just azure-cc-e2e green locally; just aws-cc-e2e re-run green.

lex00 added 2 commits August 7, 2026 20:57
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
@lex00
lex00 merged commit e9bc1f3 into main Aug 8, 2026
6 checks passed
@lex00 lex00 mentioned this pull request Aug 8, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(azure): CC runtime-e2e on floci-az (just azure-cc-e2e)

1 participant