Skip to content

fix the 4 latent main reds from nightly full run 39586610411 - #23042

Merged
Git-on-my-level merged 3 commits into
mainfrom
lane/nightly-reds
Oct 21, 2026
Merged

Git-on-my-level merged 3 commits into
mainfrom
lane/nightly-reds

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes the 4 latent main reds found by the first nightly full run 39586610411 (main_nightly_full.yml on main = failure). Rows 4/4 in the swarm known-red list.

  1. Hygiene / screen-activity-batch-resilience-tests — ImportError (TEST-ONLY).
    database/_client.py (fix: retry live cap publication when a Firestore transaction expires #22966, live in prod) imports DeadlineExceeded,
    ResourceExhausted, ServiceUnavailable from google.api_core.exceptions.
    The bare-python3 hygiene stub in
    backend/tests/unit/test_screen_activity_batch_resilience.py only defined
    InvalidArgument/Aborted, so the module import failed before any test
    ran. Prod is unaffected: pinned google-api-core 2.19.1 exports all five
    names (verified in the backend venv); the ImportError only reproduces in
    the dependency-free hygiene runner. The stub gains the three missing names,
    and backend/database/_client.py joins the check's manifest triggers —
    fix: retry live cap publication when a Firestore transaction expires #22966 touched only _client.py, which the trigger list omitted, so PR CI
    never ran this check and the nightly full run caught it.

  2. Formatting / dart format: 4 files.
    app/integration_test/app_performance_test.dart,
    app/test/unit/wal_file_manager_error_path_test.dart,
    sdks/device/dart/lib/stt/stt.dart, sdks/device/dart/test/stt_test.dart
    formatted with dart format --line-length 120 on the same Flutter 3.44.5
    toolchain the Formatting job pins. PR runs format only on PR-changed files,
    so these slipped through merges that never touched them.

  3. iOS job / desktop-beta-admission-firestore-contention — missing backend venv.
    backend/testing/desktop_beta_admission/run.sh needs backend/.venv or
    uv; the iOS Compile Check job set up neither and failed in 0.06s at check
    setup. The identical macos-scoped selection in desktop-swift-ci installed
    uv and passed the same check (46.15s) in the same nightly run. This PR adds
    the same pinned setup-uv step (0.11.13, matching backend/Dockerfile
    UV_VERSION) before the iOS job's manifest checks step.

  4. Mobile Release Eligibility aggregate — fails only on IOS_COMPILE_RESULT=failure;
    goes green once (3) lands. No code change.

Exact .github changes (David named the nightly workflow change on 10-21)

  • .github/checks-manifest.yaml — add backend/database/_client.py to
    screen-activity-batch-resilience-tests triggers.
  • .github/workflows/mobile-app-checks.yml — new Install uv for manifest checks step in the ios-compile-check job, before Run macOS-scoped iOS manifest checks (pinned astral-sh/setup-uv@ecd24dd710f2fb0dca1693a67af11fc4a5c5ec84,
    version 0.11.13).

Verification (local, this worktree, base cdaad3a)

  • python3 backend/tests/unit/test_screen_activity_batch_resilience.py —
    reproduced the exact CI ImportError before the fix; 9 tests OK after, with
    both bare python3 and backend/.venv/bin/python.
  • python3 .github/scripts/test_run_checks.py (check-manifest-contract) —
    62/62 OK after both .github edits, from the repo root as CI does.
  • Whole-repo nightly Formatting replica: dart format --line-length 120 --set-exit-if-changed --output=none over all 1920 tracked non-generated
    .dart files — 0 changed, exit 0.
  • actionlint on mobile-app-checks.yml — clean.
  • scripts/pr-preflight --suggest — no invariant citations, no failure-class
    declarations required (no fix: commits).

Notes

  • No deploy needed: test stub + CI workflow + formatting only; the prod import
    at database/_client.py:9 is sound against the pinned dependency set.

View guided diff Turn on auto-fix

….py api_core imports

Nightly main run 39586610411 failed the Hygiene check
screen-activity-batch-resilience-tests: database/_client.py (cap publication
retry, #22966) now imports DeadlineExceeded, ResourceExhausted, and
ServiceUnavailable from google.api_core.exceptions, but the bare-python3
preflight stub in test_screen_activity_batch_resilience.py only defined
InvalidArgument and Aborted, so the module import failed before any test ran.

Prod is unaffected: the pinned google-api-core 2.19.1 exports all five names;
the ImportError only reproduces in the dependency-free hygiene runner that
this stub exists for. Extend the stub with the three missing names in the
existing per-name style.

Also add backend/database/_client.py to the check's manifest triggers. #22966
touched only _client.py, which the trigger list omitted, so PR CI never ran
this check and the breakage surfaced only in the nightly full run.
…ing job

Nightly main run 39586610411: repo-checks/Formatting reported
dart format would change app/integration_test/app_performance_test.dart,
app/test/unit/wal_file_manager_error_path_test.dart,
sdks/device/dart/lib/stt/stt.dart, and sdks/device/dart/test/stt_test.dart.
PR runs format only the PR's own changed files, so these slipped through
merges that never touched them.

Apply dart format --line-length 120 with the same Flutter 3.44.5 toolchain
the Formatting job pins; whole-repo check (1920 files, 0 changed) is clean
after this change. Formatting only; the changelog fragment is kind=none.
Nightly main run 39586610411 failed mobile-app-checks/iOS Compile Check at
manifest check desktop-beta-admission-firestore-contention: backend/testing/
desktop_beta_admission/run.sh requires backend/.venv or uv, and the iOS job
sets up neither ("Missing backend/.venv and uv", 0.06s — setup failure, not a
proof failure). The same check was selected and passed (46.15s) in
desktop-swift-ci/Desktop Swift Static & Test Contracts in the same nightly
run, because that workflow installs uv before its identical run_checks.py
macos-scoped selection.

Mirror desktop-swift-ci.yml: install uv with the same pinned setup-uv action
and 0.11.13 version (also backend/Dockerfile UV_VERSION) so run.sh takes its
uv fallback.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T13:19:46.717936Z 765e4d5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit 904dd65 into main Oct 21, 2026
63 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/nightly-reds branch October 21, 2026 13:45
Git-on-my-level added a commit that referenced this pull request Oct 21, 2026
…le headers (#23064)

## Summary

Follow-up to #23042 per lead ruling 482ff7. The first full nightly after
that merge

([39610825548](https://github.com/BasedHardware/omi/actions/runs/39610825548),
main
pinned at 904dd65) failed on two reds that the earlier nightly
39586610411
**could not report**, because both jobs fail fast: the Formatting job
died at its dart
step so the Python-format step never ran, and Hygiene died at
screen-activity so
`lifecycle-headers` never ran. #23042's fixes let the nightly get one
layer deeper and
expose them. This PR clears both and stops the masking so one nightly
reports the full set.

1. **Formatting / Python step** — `scripts/backend-python-format
--write` on the four
files the nightly flagged:
`backend/tests/unit/test_conversations_batch_chunking.py`,
`test_conversations_share_email_sanitization.py`,
`test_diarizer_embedding.py`,
   `test_language_catalog.py`. Format only.
2. **Hygiene / `lifecycle-headers`** — the 8 designated files the
nightly reaches but no
PR ever re-validated (PR mode checks changed files only). Per the
ruling: the 7
`*_readiness` / `*_proof` scripts become `# LIFECYCLE: one-time`;
`rollout_cli.py`
becomes `# LIFECYCLE: permanent` (operator tool). One-time files need
exactly one
`DELETE-AFTER` reference, chosen from the invariant that owns each
script's subject
   (all are v17 memory-program scaffolding, renamed in Wave G14):
- `INV-MEM-3` (universal memory authority: grants, rules, MCP, tools
surfaces):
`app_key_memory_grant_assignment_readiness`,
`firestore_rules_iam_proof`,
`mcp_api_key_scope_readiness`,
`p1_5_tools_fastapi_testclient_readiness`.
- `INV-MEM-2` (vector hydration; names the vector repair outbox
verbatim):
`pinecone_repair_validation_readiness`,
`vector_repair_outbox_oidc_iam_proof`,
     `vector_search_provider_readiness`.
Their now-stale headerless entries leave
`.github/lifecycle-header-baseline.txt`
   (the checker requires the baseline to match exactly).
3. **Structural — nightly continues past failures.**
- `run_checks.py` gains `--keep-going`: run every selected check and
name each failure
instead of stopping at the first. PR and local lanes keep fail-fast
(unchanged
default). Wired into the three nightly invocations' `nightly_main_sha`
branch only.
- repo-checks `Check Python formatting` runs with `!cancelled()` so a
dart-format
     failure cannot hide Python-format findings.

### Exact `.github` changes (existing workflows only; no new workflow —
ruling 482ff7)

- `.github/workflows/repo-checks.yml` — nightly branch of the Hygiene
`run_checks.py`
call adds `--keep-going`; `Check Python formatting` gets `if: ${{
!cancelled() && … }}`.
- `.github/workflows/mobile-app-checks.yml` — nightly branch of the iOS
manifest call
  adds `--keep-going`.
- `.github/workflows/desktop-swift-ci.yml` — nightly branch of the macOS
manifest call
  adds `--keep-going`.
- `.github/scripts/run_checks.py` — new `--keep-going` flag
(`keep_going` already
  existed for `--metadata-only`).
- `.github/scripts/test_run_checks.py` — new contract test: fail-fast
stops at the first
failure and names it; `keep_going` runs all and names each (`first,
third`). The
repo-checks nightly-branch strip regex now tolerates trailing
nightly-only flags.
- `.github/lifecycle-header-baseline.txt` — 8 stale entries removed.

## Product invariants affected

INV-MEM-1, INV-MEM-4 — named because the lifecycle-header edits touch
files under their
path globs. The edits add header comment lines only (`# LIFECYCLE:` / `#
DELETE-AFTER:`);
no behavior changes in any invariant surface.

## Failure class

Failure-Class: FC-path-filter-masks-default-branch-health

That class's canonical prevention is an authoritative recurring health
run that forces
the real phases against the current main SHA. This PR hardens that same
guard: with
fail-fast, the nightly established health only up to the first red per
job, so three
reds hid behind one another across two runs (dart → python format;
screen-activity →
lifecycle-headers). `--keep-going` and `!cancelled()` make one nightly
report the full
set, which is the property the class exists to restore.

## Verification (this worktree, base 3f54aba)

- `run_checks.py --check-id lifecycle-headers` (local lane, against the
working tree):
  FAIL with the 8 files before → PASS after headers + baseline update.
- `scripts/backend-python-format --check` on all 12 changed backend
files: 12 unchanged.
- `.github/scripts/test_run_checks.py` (check-manifest-contract): 63/63
incl. the new
  keep-going test.
- `.github/scripts/test_check_lifecycle_headers.py`: 10/10.
- `actionlint` on the three workflows: no new findings (the two
shellcheck notes in
desktop-swift-ci.yml pre-date this PR at HEAD; CI runs actionlint with
shellcheck off).

## Notes

- No deploy needed: CI scripts/workflows, test formatting, and header
comments only.
- After merge: redispatch `main_nightly_full.yml` on main; expected
result green, and
if not, the run now lists every failing check per job instead of the
first.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/23064?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="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/23064?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23064&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
tivince82 pushed a commit to tivince82/omi that referenced this pull request Oct 21, 2026
…le headers

Nightly 39610825548 (first full run after BasedHardware#23042) failed on two reds that run
39586610411 could not report because both jobs fail fast: the Formatting job
died at the dart step so its Python step never ran, and Hygiene died at
screen-activity so lifecycle-headers never ran. Per lead ruling 482ff7 this
clears both and stops the masking.

- scripts/backend-python-format on the four test files the nightly flagged:
  test_conversations_batch_chunking.py, test_conversations_share_email_
  sanitization.py, test_diarizer_embedding.py, test_language_catalog.py.
- lifecycle-headers: the 8 designated files the nightly reaches that no PR
  ever re-validated. The 7 *_readiness/*_proof scripts become LIFECYCLE:
  one-time with DELETE-AFTER INV-MEM-3 (grants, firestore rules, MCP scope,
  P1.5 tools surfaces) or INV-MEM-2 (pinecone repair, vector repair outbox,
  vector search provider — the vector-hydration invariant names the repair
  outbox); rollout_cli.py becomes LIFECYCLE: permanent (operator tool).
  Their stale headerless entries leave the lifecycle baseline.
- run_checks.py gains --keep-going: run every selected check and report all
  failures instead of stopping at the first. The three nightly invocations
  (repo-checks Hygiene, mobile-app-checks iOS, desktop-swift-ci) pass it in
  their nightly_main_sha branch; PR and local lanes keep fail-fast. The
  repo-checks Python-format step now runs with !cancelled() so a dart-format
  failure cannot mask Python-format findings (39610825548).

Contract tests: keep_going runs all checks and names each failure; the
repo-checks nightly-branch regex tolerates trailing nightly-only flags.
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