Skip to content

fix(ci): report every nightly red in one run; format 4 tests; lifecycle headers - #23064

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

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

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

Follow-up to #23042 per lead ruling 482ff7. The first full nightly after that merge
(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.

View guided diff Turn on auto-fix

…le headers

Nightly 39610825548 (first full run after #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.
Luna round 1 on PR #23064 (verdict SHIP, no P0/P1) flagged two deferrable-but-cheap
items that are fixed here so tonight's redispatch reports the full set:

- repo-checks `Check ARB formatting` gets the same `!cancelled()` guard as the
  Python step: a dart-format failure previously skipped the ARB step, so an ARB
  red would stay hidden until a nightly where Dart was clean.
- New contract test pins `--keep-going` inside the nightly branch of all three
  run_checks.py calls (repo-checks, mobile-app-checks, desktop-swift-ci), so a
  later workflow edit cannot silently return the nightly to one-red-per-run.

Deferred with the review's blessing (P2/minor, follow-up): `always() && !cancelled()`
phase verdicts for the iOS job's post-manifest compile steps (desktop-swift-ci
pattern), and a dedicated failure class whose prevention artifact is the
keep-going test instead of reusing FC-path-filter-masks-default-branch-health.
@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-21T15:42:07.524481Z b987a93 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 e8e1135 into main Oct 21, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/nightly-reds-2 branch October 21, 2026 16:30
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