Repository navigation
fix(ci): report every nightly red in one run; format 4 tests; lifecycle headers - #23064
Merged
Merged
Conversation
…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.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-headersnever ran. #23042's fixes let the nightly get one layer deeper andexpose them. This PR clears both and stops the masking so one nightly reports the full set.
scripts/backend-python-format --writeon the fourfiles 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.lifecycle-headers— the 8 designated files the nightly reaches but noPR ever re-validated (PR mode checks changed files only). Per the ruling: the 7
*_readiness/*_proofscripts become# LIFECYCLE: one-time;rollout_cli.pybecomes
# LIFECYCLE: permanent(operator tool). One-time files need exactly oneDELETE-AFTERreference, 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).
run_checks.pygains--keep-going: run every selected check and name each failureinstead of stopping at the first. PR and local lanes keep fail-fast (unchanged
default). Wired into the three nightly invocations'
nightly_main_shabranch only.Check Python formattingruns with!cancelled()so a dart-formatfailure cannot hide Python-format findings.
Exact
.githubchanges (existing workflows only; no new workflow — ruling 482ff7).github/workflows/repo-checks.yml— nightly branch of the Hygienerun_checks.pycall adds
--keep-going;Check Python formattinggetsif: ${{ !cancelled() && … }}..github/workflows/mobile-app-checks.yml— nightly branch of the iOS manifest calladds
--keep-going..github/workflows/desktop-swift-ci.yml— nightly branch of the macOS manifest calladds
--keep-going..github/scripts/run_checks.py— new--keep-goingflag (keep_goingalreadyexisted for
--metadata-only)..github/scripts/test_run_checks.py— new contract test: fail-fast stops at the firstfailure and names it;
keep_goingruns all and names each (first, third). Therepo-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-goingand!cancelled()make one nightly report the fullset, 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 --checkon all 12 changed backend files: 12 unchanged..github/scripts/test_run_checks.py(check-manifest-contract): 63/63 incl. the newkeep-going test.
.github/scripts/test_check_lifecycle_headers.py: 10/10.actionlinton the three workflows: no new findings (the two shellcheck notes indesktop-swift-ci.yml pre-date this PR at HEAD; CI runs actionlint with shellcheck off).
Notes
main_nightly_full.ymlon main; expected result green, andif not, the run now lists every failing check per job instead of the first.