Skip to content

ci: split conn_error into network-layer sub-classes in candidate diagnostics - #14557

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:ci/probe-conn-diagnostics
Sep 18, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:ci/probe-conn-diagnostics

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 18, 2026 •

Copy link
Copy Markdown
Member

Failure-Class

Failure-Class: FC-acceptance-probe-unreachable-by-own-ingress-policy

Summary

Follow-up to #14525's diagnostics, informed by the first diagnostic bake (35330545334): the candidate gate failed with class=conn_error, http_status=null — the probe subprocess could not reach the candidate URL at all (not a 401, not a mint failure). This PR splits the coarse conn_error into actionable sub-classes (refused / DNS / reset / TLS / unreachable) so the next red bake names the network layer precisely.

Existing test suite green; classification-only change, no behavior change to pass/fail semantics.

Product invariants affected

  • INV-DATA-1

Preserved: diagnostics-only; no routing, endpoint, or project-binding change; sanitization guarantees unchanged (classes only, no stderr text or tokens).

Review in cubic

@Git-on-my-level
Git-on-my-level force-pushed the ci/probe-conn-diagnostics branch from 336b845 to 61d67dc Compare September 18, 2026 11:14
@Git-on-my-level
Git-on-my-level merged commit ac8f21c into BasedHardware:main Sep 18, 2026
38 checks passed
Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
## Failure-Class
None — no-op trigger PR (one comment line) to fire the deploy lane for
the slice-2 WIF diagnostic re-run; see #14557.

## Product invariants affected

- INV-DATA-1

Preserved: comment-only change; no routing, endpoint, identity, or
project-binding behavior touched.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/14560?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
…ptance (slice-2 root-cause fix) (#14564)

## Failure-Class
Failure-Class: FC-fixture-mock-signature-drift

## Summary
Root-cause fix for the slice-2 WIF candidate-gate failures. The
#14525/#14557 diagnostics finally named it: **`stage=mint, rc=1`** —
`gcloud auth print-identity-token` cannot mint under a WIF-federated
session because the federated credential holds **no private key** for
the self-signing mint (bake 35340203517 artifact; manual
impersonation-based replays succeeded, which is why every manual control
passed while CI failed).

## Fix
- `run_dev_candidate_acceptance.py`: `mint_cloud_run_identity_token`
gains `--impersonate-service-account` support; new `--mint-impersonate`
CLI flag (env fallback `CLOUD_RUN_IDENTITY_MINT_IMPERSONATE`).
Impersonated mint routes through the IAM `signJwt` API, which the
federated credential CAN call when it holds
`roles/iam.serviceAccountTokenCreator` on the target SA (already
granted: audit-verified 2026-09-16, KB evidence
2026-09-18-iam-grants-and-rows-2-3).
- `deploy-backend-stack/action.yml`: passes `--mint-impersonate ${{
inputs.workload_identity_service_account }}` only when WIF auth is in
play — JSON lane behavior byte-identical.

## Test plan
- Unit suite 9/9 (two fixtures updated for the new kwarg — the very
failure class registered in #14528)
- Behavioral proof: impersonation flag flows into the gcloud command
- JSON lane: flag absent → command unchanged → deploy lanes on
`gcp_backend.yml`/desktop unaffected
- Success signature on the next WIF bake: `Candidate acceptance PASS`
×4, then traffic shift

## Product invariants affected

- INV-DATA-1

Preserved: diagnostics/authentication-only; no routing authority,
endpoint, or project-binding change; JSON lanes untouched.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/14564?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
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.

1 participant