Skip to content

fix(ci): stop peeling full-SHA revs; git 2.54 broke <sha>^{commit} - #21129

Merged
Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:lane/git254-peel-fix
Oct 10, 2026
Merged

Git-on-my-level merged 1 commit into
BasedHardware:mainfrom
Git-on-my-level:lane/git254-peel-fix

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Product invariants affected

  • INV-DATA-1 — the two production deploy workflows are production-family routing authorities; this change keeps their admission semantics byte-for-byte (object-exists-and-is-commit), only swapping a git-2.54-broken expression for a version-proof equivalent.

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 every workflow_dispatch prod deploy that validates a merge-commit release_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

  • Local repro of both replacement checks against main HEAD (3d20bec): commit type resolves.
  • bash -n on the edited step bodies.

View guided diff

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 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-10T09:52:46.733197Z 998173f 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge 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 👍 / 👎.

Comment on lines +6 to +8
"canonical_prevention_artifact": [
".github/workflows/gcp_backend.yml",
".github/workflows/gcp_backend_pusher.yml"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit bf6a07a into BasedHardware:main Oct 10, 2026
49 checks passed
Git-on-my-level added a commit that referenced this pull request Oct 10, 2026
…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).
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