Skip to content

fix(ci): scope Git maintenance during dependency downloads - #103

Merged
trakhimenok merged 1 commit into
mainfrom
integration/firestore-root-cutover
Oct 26, 2026
Merged

trakhimenok merged 1 commit into
mainfrom
integration/firestore-root-cutover

Conversation

@trakhimenok

Copy link
Copy Markdown
Member

Private module downloads can fail during Git unshallow fetches with shallow file has changed since we read it. Both shared Go download steps now disable automatic Git maintenance only for the Go command and its children, while retaining inherited Git runtime pairs and the exact credential configuration. Counts are normalized and bounded before appending; oversized or malformed counts fail before fetching.

The guard preserves caches, parallel jobs, checks and go mod download all. It introduces no retries, global Git edits, authentication widening, or repository-specific dependency warmup.

Validation: extracted-step regressions failed on the original workflow and pass on both guarded steps. They check inherited/leading-zero counts, credential preservation, runtime scope, exact arguments, overflow rejection and nonzero exit propagation. Full Go tests, vet and lint pass. A local-only Git2.54 trace observed one maintenance child without the guard and none with it. A cold isolated cache fetched the exact reviewed Sneat Go Host pseudo-version successfully; remote tracing was disabled.

Background maintenance is the leading supported explanation for affected CI failures, not a proven trace of those incidents: the original shallow-file failure was not reproduced in acceptance. Fresh affected-consumer CI remains required after this shared workflow is reviewed and adopted. No consumers are repinned or landed by this PR.

Context: upstream Git maintenance/shallow-file report and supported runtime config mechanism.

@trakhimenok

Copy link
Copy Markdown
Member Author

Independent shared CI source review, Codex Sol 6.1.

Reviewed-Head: 0b350f2

Actual two-file commit inspected. Both download steps scope maintenance.auto=false and gc.auto=0 to the Go child command. Existing counted Git pairs and GIT_CONFIG_GLOBAL/credential routing stay intact; command arguments, single invocation and exact failure exit remain unchanged. The initial integer-overflow finding is fixed: decimal zeros are normalized as text, excessive length short-circuits before arithmetic, and the count is bounded to2147483645 before adding two. Huge/overflow malformed counts cannot invoke Go; valid leading-zero inheritance remains covered. No retries, serialization, cache replacement or global machine configuration changes.

Author focused/full suite, vet and lint receipts pass. My independent Go-test attempt was refused by WB load admission; I did not override it. I independently reproduced the original overflow and inspected its bounded correction. Inspected actual local acceptance receipt8fcebbf8: Git2.54 baseline launches one maintenance child, guarded launches zero, native host0968 cold-cache download succeeds with exact checksum, remote tracing disabled. Both local fetches succeed; this does NOT reproduce the original failing CI race or prove its root cause. Fresh CI remains required.

No remaining actionable source findings. No landing, deployment, secret/IAM change or data action is approved by this review.

VERDICT: blockers=0 majors=0 minors=0 land=yes

@trakhimenok
trakhimenok merged commit a62ab9a into main Oct 26, 2026
7 checks passed
@trakhimenok
trakhimenok deleted the integration/firestore-root-cutover branch October 26, 2026 19:47
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