Repository navigation
fix: restore upstream synchronization - #4
Merged
Merged
Conversation
…itsu#17) Bumps the cargo-patch group with 1 update in the / directory: [clap](https://github.com/clap-rs/clap). Updates `clap` from 4.6.5 to 4.6.6 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](clap-rs/clap@clap_complete-v4.6.5...clap_complete-v4.6.6) --- updated-dependencies: - dependency-name: clap dependency-version: 4.6.6 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bound the on-disk cache with an optional byte cap (--cache-max-mb, default 0 = unlimited). A clone/fetch flags the mirror; a background task measures it and evicts least-recently-used idle mirrors until under the cap, off the request path. Evicted mirrors re-clone transparently on the next request. Assisted-by: Claude:claude-opus-4-8
Add two duration histograms alongside the existing counters:
upstream_duration_seconds{op,repo} for clone/fetch, and
serve_duration_seconds{kind,repo} for the info/refs advertisement and
the upload-pack packfile stream (timed to EOF via a reader wrapper).
Observed only on success, matching the counters' bounded-repo labels.
Assisted-by: Claude:claude-opus-4-8
Ship a single chart under chart/: single-writer Deployment (Recreate over a RWO PVC), health/readiness probes, configurable cache eviction, optional Ingress, ServiceMonitor, and CA trust. CI lints and kubeconform-validates it; the release workflow packages and pushes it to GHCR as an OCI artifact at the released version. Assisted-by: Claude:claude-opus-4-8
A client's git-lfs derives its LFS endpoint from the proxy URL, so the proxy must answer the batch API and object transfers or LFS-tracked files fail to check out. Proxy the batch API upstream, rewrite each download URL back to the proxy, and serve objects from a content-addressed cache: a miss fetches once (verifying sha256 == oid), a hit is served locally, and objects share the mirrors' cache cap and LRU eviction. Uploads are refused (read-only). The LFS transfer is in-process over rustls (no OpenSSL), keeping the binary static. Assisted-by: Claude:claude-opus-4-8
The record_*/observe_* helpers took plain &str for the kind/op/result labels, so a typo compiled and only surfaced as a wrong metric series. Type those arguments with enums (RequestKind, Status, UpstreamOp, ServeKind, LfsResult) that render to the label string, keeping the free-form repo path a &str. Assisted-by: Claude:claude-opus-4-8
Pin the Codecov patch bar at 90% and require project coverage to never drop (0% tolerance), so a change can only hold or raise the line - matching the floor ci.yml enforces via --fail-under-lines. Assisted-by: Claude:claude-opus-4-8
Add linux/arm64 alongside linux/amd64, each built on its own native runner (arm64 on ubuntu-24.04-arm) to avoid slow QEMU-emulated musl compiles. In release, each arch pushes to GHCR by digest and a merge job stitches them into one multi-arch manifest at :<version> and :latest. The package breakage check builds both arches (no push) so arm64 breakage surfaces on the PR rather than at release. Assisted-by: Claude:claude-opus-4-8
Pass memory-bounding config on each upstream clone/fetch: core.bigFileThreshold (configurable, default 8m) streams large blobs to disk instead of loading them, and core.deltaBaseCacheLimit caps index-pack's delta-base cache. Both go via GIT_CONFIG_* alongside the auth header, so per-clone RSS stays bounded regardless of repo size. Assisted-by: Claude:claude-opus-4-8
Main is protected, so PRs are the validation gate: run lint/deny/helm/ typos on pull_request only, and drop package.yml's build from push (release.yml builds and pushes the real image). Keep test on push to main so Codecov's project-drop base stays fresh. Skip knope's own "chore: prepare release" commit in ci/package/release so it triggers no jobs instead of duplicating a full run. Assisted-by: Claude:claude-opus-4-8
Bumps [sha2](https://github.com/RustCrypto/hashes) from 0.10.9 to 0.11.0. - [Commits](RustCrypto/hashes@sha2-v0.10.9...sha2-v0.11.0) --- updated-dependencies: - dependency-name: sha2 dependency-version: 0.11.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps the cargo-patch group with 2 updates: [flate2](https://github.com/rust-lang/flate2-rs) and [lru](https://github.com/jeromefroe/lru-rs). Updates `flate2` from 1.1.9 to 1.1.10 - [Release notes](https://github.com/rust-lang/flate2-rs/releases) - [Commits](rust-lang/flate2-rs@1.1.9...1.1.10) Updates `lru` from 0.18.2 to 0.18.3 - [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md) - [Commits](jeromefroe/lru-rs@0.18.2...0.18.3) --- updated-dependencies: - dependency-name: flate2 dependency-version: 1.1.10 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: lru dependency-version: 0.18.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4 to 7. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v4...v7) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 8. - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](actions/download-artifact@v4...v8) --- updated-dependencies: - dependency-name: actions/download-artifact dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
…djitsu#36) Bumps the cargo-patch group with 1 update: [lru](https://github.com/jeromefroe/lru-rs). Updates `lru` from 0.18.3 to 0.18.4 - [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md) - [Commits](jeromefroe/lru-rs@0.18.3...0.18.4) --- updated-dependencies: - dependency-name: lru dependency-version: 0.18.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Avoid failing requests immediately on transient upstream network errors. Retry recognized failures with bounded backoff while preserving mirror freshness and per-repository serialization. Assisted-by: Codex:gpt-6-astra
Assisted-by: Codex:gpt-6-astra
…jitsu#39) Bumps the cargo-patch group with 1 update: [clap](https://github.com/clap-rs/clap). Updates `clap` from 4.6.6 to 4.6.7 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md) - [Commits](clap-rs/clap@clap_complete-v4.6.6...clap_complete-v4.6.7) --- updated-dependencies: - dependency-name: clap dependency-version: 4.6.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…djitsu#42) Bumps the cargo-patch group with 1 update: [lru](https://github.com/jeromefroe/lru-rs). Updates `lru` from 0.18.4 to 0.18.5 - [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md) - [Commits](jeromefroe/lru-rs@0.18.4...0.18.5) --- updated-dependencies: - dependency-name: lru dependency-version: 0.18.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Move the misplaced upstream lifetime section from the README to architecture.md, and document upstream-timeout-seconds in configuration.md. Assisted-by: Claude:claude-opus-4-8
The project now has contributions and testing across multiple users. Assisted-by: Claude:claude-opus-4-8
Replace UTF-8 em-dashes with hyphens in security.md to adhere to ASCII requirements, and update stale README references in SECURITY.md and CONTRIBUTING.md. Assisted-by: Claude:claude-opus-4-8
Writing a script in-process leaves a writable fd that a child forked by a parallel test inherits, so the later exec fails with "Text file busy". Write it through a short-lived sh instead. Assisted-by: Claude:claude-sonnet-5-5
…jitsu#84) Bumps the cargo-patch group with 1 update: [clap](https://github.com/clap-rs/clap). Updates `clap` from 4.6.7 to 4.6.8 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/main/CHANGELOG.md) - [Commits](clap-rs/clap@clap_complete-v4.6.7...clap_complete-v4.6.8) --- updated-dependencies: - dependency-name: clap dependency-version: 4.6.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Assisted-by: OpenAI:Codex Assisted-by: Claude:claude-sonnet-5-5
Add refresh_total{result} (ok, error, auth_rejected, preempted,
skipped) so the refresh success and failure rates are visible apart
from client-triggered fetches. Shutdown is not counted.
An eviction that cancels a refresh fetch no longer counts as an
upstream fetch error.
Assisted-by: Claude:claude-sonnet-5-5
Drive a real file:// upstream through the router, push a new commit, and assert the mirror advances with no further client request. The paused clock is held still while real git runs, which would otherwise auto-advance it into the upstream timeout. Assisted-by: Claude:claude-sonnet-5-5
Bump url to 2.5.9 (and form_urlencoded to 1.2.3) to resolve advisory RUSTSEC-2026-0592 (stack overflow on nested blob URLs). Assisted-by: Claude:claude-opus-4-8
Cover removal failure when cleaning clone staging so all branches of clean_staging are exercised. Assisted-by: Claude:claude-opus-4-8
Permit up to 0.1% coverage fluctuation in Codecov project status to absorb minor dependency or compiler variance without failing CI. Assisted-by: Claude:claude-opus-4-8
Writing a script in-process leaves a writable fd that a child forked by a parallel test inherits, so the later exec fails with "Text file busy". Write it through a short-lived sh instead, as the unit tests already do. Assisted-by: Claude:claude-sonnet-5-5
git.rs and evict.rs each carried their own copy of the sh-based script writer. Move it to a crate-private test module so a fix applies to both. Assisted-by: Claude:claude-sonnet-5-5
26 test sites spelled out every GitConfig field, so adding refresh touched all of them. Build from one default per side (tests/helpers.rs, src/test_util.rs) and override only what a test needs. Assisted-by: Claude:claude-sonnet-5-5
As PID 1 the proxy never reaps orphaned git processes: the detached auto maintenance after each fetch and the descendants of a killed process group. They pile up as zombies until the PID limit is hit. Closes rolandjitsu#87 Assisted-by: Claude:claude-opus-5-5
A failed clone or fetch was only counted under repo="-"; callers logged the outer error without git's diagnostic, and a client disconnect was not logged at all. Log the final failure where the operation, repo and credential are known, with a bounded, redacted stderr summary, and drop the duplicate. Refs rolandjitsu#82 Assisted-by: Claude:claude-opus-5-5
A client going away or shutdown is not an upstream failure.
BREAKING CHANGE: upstream_ops_total{result="error"} now counts only
upstream failures, not cancelled operations.
Assisted-by: Claude:claude-opus-5-5
Assisted-by: Claude:claude-opus-5-5
Assisted-by: Claude:claude-opus-5-5
git.rs has grown large; this is a pure move with no behavior change. Assisted-by: Claude:claude-opus-5-5
Keep the log message in a local field so coverage instruments the callsite without changing the emitted event. Assisted-by: Claude:claude-opus-4-8
Bumps the cargo-patch group with 4 updates: [anyhow](https://github.com/dtolnay/anyhow), [bytes](https://github.com/tokio-rs/bytes), [clap](https://github.com/clap-rs/clap) and [lru](https://github.com/jeromefroe/lru-rs). Updates `anyhow` from 1.0.104 to 1.0.105 - [Release notes](https://github.com/dtolnay/anyhow/releases) - [Commits](dtolnay/anyhow@1.0.104...1.0.105) Updates `bytes` from 1.12.1 to 1.12.2 - [Release notes](https://github.com/tokio-rs/bytes/releases) - [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md) - [Commits](tokio-rs/bytes@v1.12.1...v1.12.2) Updates `clap` from 4.6.8 to 4.6.9 - [Release notes](https://github.com/clap-rs/clap/releases) - [Changelog](https://github.com/clap-rs/clap/blob/main/CHANGELOG.md) - [Commits](clap-rs/clap@clap_complete-v4.6.8...clap_complete-v4.6.9) Updates `lru` from 0.19.0 to 0.19.2 - [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md) - [Commits](jeromefroe/lru-rs@0.19.0...0.19.2) --- updated-dependencies: - dependency-name: anyhow dependency-version: 1.0.105 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: bytes dependency-version: 1.12.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: clap dependency-version: 4.6.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch - dependency-name: lru dependency-version: 0.19.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: cargo-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Preserve internal history while taking the official tree so later syncs can integrate upstream by ancestry. Assisted-by: Claude:claude-opus-4-8
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.
Recovery
internal/mainand pinned upstream5f84b9f670cd220d663508ead553bdf874fce486as parents of the recovery commit. Use the upstream tree plus the three internal sync files.mainfast-forward only. Open or reuse an integration PR from this fork'smaintointernal/mainonly when upstream is not integrated.recovery/2026-11-28/fork-mainandrecovery/2026-11-28/internal-main. This PR does not update forkmain. Use a merge commit, not squash or rebase.Validation
Both parents are reachable; the diff from upstream contains only the three sync files. Python sync tests, whitespace checks, and Helm lint and schema checks passed locally. Rust and Package validation are tracked separately. Upstream's advisory commit-message check flags pre-existing upstream commits when checking the entire incoming history; the local comparison found no new violation.
The recovery and validation events do not publish images or deploy. The fork's Release workflow is disabled. This PR replaces #3 once the mirror is realigned and maintenance is verified.
🤖 Generated with Claude Code