Repository navigation
fix(ci): stop peeling full-SHA revs; git 2.54 broke <sha>^{commit} - #21129
Conversation
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 998173fd35
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ".github/workflows/*deploy*.yml", | ||
| ".github/workflows/gcp_backend.yml", | ||
| ".github/workflows/gcp_backend_pusher.yml", | ||
| ".github/workflows/desktop_backend_prod.yml" |
There was a problem hiding this comment.
Replace the remaining production full-SHA peel sites
When the hosted runner has the Git 2.54 behavior documented by this new class, the explicitly scoped desktop workflow still validates an exact 40-hex input and runs git cat-file -e "${DEPLOY_SHA}^{commit}" at .github/workflows/desktop_backend_prod.yml:112-120; the same broken sequence remains in gcp_llm_gateway.yml:96-107, gcp_day3_reengagement_email_job.yml:93-100, and gcp_daily_memory_sweep_job.yml:91-98, so those production dispatches still abort before deployment. I checked git cat-file -h, which defines -e <object> as “check if exists”; these steps still pass the peeled object expression rather than the bare SHA. Replace these remaining sites and update the gateway contract checker as part of this fix.
Useful? React with 👍 / 👎.
| "canonical_prevention_artifact": [ | ||
| ".github/workflows/gcp_backend.yml", | ||
| ".github/workflows/gcp_backend_pusher.yml" |
There was a problem hiding this comment.
Record a reusable prevention artifact
The repository schema defines canonical_prevention_artifact as a reusable checker, shared fixture, or behavioral contract rather than the instance files (product/failure-classes.md:13-23), while the ratchet treats any nonempty field as guarded (.github/scripts/check_failure_class_guard_ratchet.py:212-215). These entries are only the two workflows; the actual changed guard .github/scripts/check_backend_deploy_source_admission.py is omitted, and there is no checker or test pinning the pusher QUALIFIED_SOURCE_SHA form, so a future reintroduction there can pass both registry validation and the ratchet. Record the checker and add/record pusher contract coverage instead.
AGENTS.md reference: AGENTS.md:L25-L25
Useful? React with 👍 / 👎.
…anout indexing (#21141) ## What Adds `scripts/fleet_backfill_summary_vectors.py`: a retry-safe fleet driver for the per-user `backfill_summary_vectors.py` operator tool, plus `--all-users` enumeration from `conversation_finalization_jobs` (created_at ascending, uid+created_at projection only). ## Why The chat-vector freshness repair (#21111) fixed new conversations; the pre-repair backlog needs the per-user backfill run for every affected account. Doing that by hand for ~27.6k uids is error-prone; the driver adds durable per-uid state (atomic tmp+rename), resume-on-rerun, failed-uid quarantine with `--retry-failed`, and a 10%-per-batch error budget inherited from the per-user script. ## Cost/execution notes - Dry-run by default; `--apply` refuses without a configured vector index. - Per conversation: one embedding + the existing metadata-extraction LLM call. Fleet-scale cost was estimated at ~$40-230 for 50k-300k conversations before execution is authorized. - Designed to run inside the production backend environment (Cloud Run job or an attended operator shell); no secrets are read by this repo change. ## Tests - Offline behavioral test of the driver: dry-run totals, resume skips done uids, error-budget stop marks the uid failed and continues, `--retry-failed` recovers only failed uids (writes verified per uid). - `tests/unit/test_backfill_summary_vectors.py` still green (16 passed). - `--all-users` enumeration verified against an independent REST enumeration of `conversation_finalization_jobs` since 2026-08-25 (27,595 vs 27,596, +1 from boundary drift; missing=0). Failure-Class: none UI-Evidence: none -- generated desktop Swift DTO regeneration only (no UI source change); required by the Public Developer API contract check after main's spec drift (#21129 messaging spec).
Product invariants affected
What
git cat-file -e "<full-40-hex-sha>^{commit}"regressed in git 2.54 (runner image roll): peeling^{commit}off a full SHA now fails with "Not a valid object name"/"ambiguous argument", while abbreviated SHAs and bare full SHAs still resolve. This broke everyworkflow_dispatchprod deploy that validates a merge-commitrelease_sha(first hit: run 38040612226 at 2026-10-10T09:15Z, reproducible twice; also plausibly the standing pusher qualification blocker).Repro on a clean clone of this repo with git 2.54:
git rev-parse "<full-sha>^{commit}"fails;<abbrev>^{commit}and bare<full-sha>succeed; the commit object is present in the pack.Fix replaces the two full-SHA peel sites (gcp_backend.yml release_sha admission, gcp_backend_pusher.yml qualification-source admission) with a version-proof object-type check (
git cat-file -t "$SHA" = commit). Identical admission semantics: object must exist and be a commit. The listen lane peels a short tag input, which still works, and is left alone.Failure-Class: new
Tests
bash -non the edited step bodies.