Skip to content

fix(ci): point the dev deploy smoke at development's real API host - #12274

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:fix/dev-smoke-host
Aug 27, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:fix/dev-smoke-host

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Aug 27, 2026 •

Copy link
Copy Markdown
Member

Failure-Class: none

The reachable-host defect here is a plain wrong-constant bug, not a recurrence of a
registered class. FC-release-probe-signer-identity (declared on #12264) is about signer
identity for Firebase probe tokens and does not describe a smoke target hostname.

What is broken

The manual development backend deploy runs its post-promotion smoke as:

python3 "$DEPLOY_CONTROL_SCRIPTS/smoke_what_matters_now.py" --base-url https://api.omi.dev

api.omi.dev has never resolved. The omi.dev zone exists (Route53 nameservers
answer) but the api record is NXDOMAIN:

$ dig @8.8.8.8 api.omi.dev
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN

So the smoke fails with ERROR: What Matters Now smoke could not reach the deployed backend. Because this step runs after the traffic shift, it fails the deploy and
trips Restore Cloud Run traffic snapshot after failed promotion, rolling the
promotion back.

This was introduced by 933fdf7d62 — the same day as the probe-signer defect fixed in
#12264 — and stayed invisible for six weeks because the probe failed first and the lane
never got this far. Run
33008079463 is the
first development deploy to reach this step.

The fix

Point the smoke at development's real public API host, api.omiapi.com.

That is development's host by the same convention production uses. backend/deploy/runtime_env/dev.overlay.yaml
puts the whole development domain family on omiapi.com — api.omiapi.com,
parakeet.omiapi.com, nllb.omiapi.com, pusher.omiapi.com — exactly mirroring
prod.overlay.yaml's omi.me family. It is also mobileBeta.defaultApiBaseUrl in
app/lib/env/environment_profile.dart. It serves /ready 200 today:

$ curl https://api.omiapi.com/ready
{"status":"ready","service":"omi-desktop-backend","redis":{"status":"ready"}}

Making api.omi.dev real was rejected. The codebase already uses it as the
canonical fake hostname in mobile production-routing fixtures
(.github/scripts/test_check_mobile_production_routing.py, app/test/unit/env_test.dart),
where it stands in for a URL that must be refused. Giving it a live record would
undermine those tests.

Scope

  • The smoke step is guarded deploy_profile == 'manual' && environment == 'development'.
  • The production smoke keeps its own https://api.omi.me path, untouched.
  • backend/tests/unit/test_smoke_what_matters_now.py exists to pin this exact constant,
    so the two workflow-pinning assertions move to the corrected host. The script's own
    unit-test fixtures deliberately keep api.omi.dev as a fake input.
  • backend/.env.dev.template carried the same dead host on BASE_API_URL/API_BASE_URL;
    corrected for consistency. Nothing reads that file programmatically.

Proof

All 32 selected preflight checks pass locally. The real proof is the next manual
development deploy reaching a green smoke and keeping its promotion.

🤖 Generated with Claude Code

Review in cubic

The manual development backend deploy ran its post-promotion smoke against
https://api.omi.dev, which has never resolved: the omi.dev zone exists but the
api record is NXDOMAIN, so smoke_what_matters_now.py could not reach anything
and failed with "could not reach the deployed backend". That failed the deploy
after traffic had already shifted and triggered the traffic restore, rolling the
promotion back.

Development's real public API host is api.omiapi.com, which matches the rest of
the development domain family (parakeet.omiapi.com, nllb.omiapi.com,
pusher.omiapi.com in backend/deploy/runtime_env/dev.overlay.yaml) exactly as
production uses the omi.me family. It serves /ready 200 today.

Making api.omi.dev real was rejected: the codebase already uses it as the
canonical fake hostname in mobile production-routing tests, so giving it a live
record would undermine those fixtures.

This defect was introduced by 933fdf7 on the same day as the probe-signer
defect fixed in BasedHardware#12264, and stayed invisible because the probe failed first.
Run 33008079463 is the first development deploy to reach this step.

The step is guarded to the manual development lane; the production smoke keeps
its own api.omi.me path untouched.

Co-Authored-By: Claude Fable 5 <[email protected]>
@Git-on-my-level
Git-on-my-level merged commit 0b6132f into BasedHardware:main Aug 27, 2026
33 of 34 checks passed
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