Repository navigation
fix(ci): trigger in-flight renewal and reuse qualified live deployment - #2280
Conversation
Co-authored-by: Mecatl <[email protected]>
Bind the issuer deployment and readiness into the same-run handoff, select current issued identities for the final mock, and prove same-client transport renewal with an authenticated catalog RPC. Add behavioral drift and renewal controls without production instrumentation. Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Co-authored-by: Mecatl <[email protected]>
Native CI: both optimizations validatedNative run 38376266836 passed at implementation commit
Measured total reduction: 13m04s (27.5%). These are run-to-run observations, not isolated benchmarks. The controlled renewal ran while the original command was active and passed. Native production deferred the exact full mock test to its final phase and ran it once (217s). Secret-free handoff verification passed before private credential staging; live revalidation logged preparation reuse. Typed live verification, restart verification, persisted-marker continuation, mock restoration, run-scoped credential cleanup, and owned-cluster cleanup all passed. Ordinary CI and caveatThe first ordinary Kind run failed in unchanged serial tests ( No local tests/builds/lint were run. All validation is CI-based. |
Summary
Follow-up to #2257 and merged #2276; implements the two next optimizations approved by the operator.
cmctl renew, invoked only after the command is demonstrably active. Observe actual certificate issuance, provider projected-volume reload, and a renewed handshake on the same client before releasing a bounded command barrier. Preserve terminal receipt, output, workspace/PVC/Pod/authority identity and subsequent mutation checks. Natural-expiry qualification remains opt-in and unchanged.The handoff binds reviewed SHA, GitHub run/attempt, owned cluster/state/context, installed provider/agent/OIDC specs, image descriptors, template catalog, public authority/trust, and policy/service/RBAC wiring. Missing or drifted requested reuse fails closed; no fallback or historical qualification receipt. No production TLS/authorization/fencing semantics are changed.
Measured CI results
The native job is 13m04s shorter (27.5%). These are measured run-to-run comparisons; runner/cache load, issuer timing, and model latency vary. Ordinary/native production totals are not an isolated comparison of their mock-proof order.
Evidence
4d34d83338efb327cfa049dd4f7146b4c80f4c6f. Production step ran 10:05:18–10:31:00 UTC. Logs showtransport_reloaded_during_rpc=true,TestKindExecutionInFlightAutomaticRenewal (25.77s)passing, and the controlled-renewal phase completing in 26s.807771c54199d9076c056904aabca715f17fc509. The only later commit aligns architecture documentation; implementation/workflow are unchanged. Native final mock ran exactly once after the other phases (217s); secret-free verification and live preparation reuse passed. Typed live checks, restart verification, persisted-marker continuation, mock restoration, run-scoped credential cleanup and owned-cluster cleanup all passed.Coverage and caveats
Behavioral tests cover renewal ordering, early completion/failure, exact cmctl/executable arguments, checksum rejection, same-client transport replacement, server-observed renewed client certificate identity, installed-resource drift, credential gates, and standalone preparation. Existing lower-layer expiry, trust-withdrawal, coherent reload, and fencing coverage is retained.
The initial ordinary Kind run at
807771cfailed in unchanged serial tests: ScopedAdministrator's first ensure returned an internal error and ClearForkLifecycle returned HTTP 409, before reaching renewal. Both passed in the same-SHA native run and the final-head ordinary run. Bounded diagnostics omit the decisive provider error and 409 problem code, so the exact causes are not established; no flaky classification or check weakening is claimed. Triage and native evidence.Per operator request, no local tests/builds/lint/docs gates were run. Validation was entirely CI-based. Static multi-axis review has no outstanding blocking or important findings; a source-order tripwire remains supplemental to behavioral tests. Explicit natural-expiry runtime qualification was not rerun; its test body remains unchanged.