Repository navigation
Open
Milestone
Description
- Owner: @Shuhan6017 ·
minigit/remote.py,tests/test_remote.py - Integration:
tests/test_week7_integration.py, shared opt-in benchmark script,docs/performance.md - Depends on: Week 5 - M4: Push conflict detection + stale-ref rejection #34, Week 6 - M4: Pull + authenticated multi-ref transfers #41; finish the Week 6 checkpoint with Week 6 - M1: Object-store fixes for push/pull round-trips #38, Week 6 - M2: Working-tree safety for pull + merge round-trips #39, and Week 6 - M3: Fetched-tip integration + merge/ref hardening #40 first
- Coordinate storage/output/error work with Week 7 - M1: Finalize packfiles + storage performance baseline #44, Week 7 - M2: Polish status + diff output #45, and Week 7 - M3: Polish log output + shared CLI errors #46
- Branch from updated
main:feat/network-diagnostics-performance - Keep single-branch push/pull signatures and the authenticated protocol compatible
Current checkpoint (2026-11-18)
- Week 6 is integrated. Storage, status/diff, and log contributions have landed in W8: feat/working-tree-performance-finalization #64, 44 week 7 m1 finalize packfiles storage performance baseline #65, Polish log output and CLI errors #66, and Bound pack-index caching and verify replacement detection #71.
- Next: publish the configurable whole-project benchmark and the small Week 7 subprocess integration checkpoint. At the audited revision,
scripts/benchmark_packfiles.pyis a 512-blob storage-only fixture; the shared roughly 1,000-file / 100-commit benchmark andtests/test_week7_integration.pyare absent. - Coordinate with M2 to restore the missing
bench_working_tree.pyreproduction or replace that command with the shared runner. Measure history and initial/incremental/repeated push/pull as well as storage and status/diff. This is the shared prerequisite holding up final Week 8 verification.
Steps
- Finish Week 6 pull/multi-ref exchange, then audit network outcomes against M3's shared CLI rules.
- Distinguish success, up-to-date, authentication failure, missing branch, stale/diverged push, transport failure, and pull conflict
- Messages identify the operation/branch and useful next step; never echo tokens or raw credential-bearing protocol lines
- Protocol/auth/transport errors remain
NetworkProtocolError; pull conflicts preserveMergeConflictError.paths
- Reuse Week 6 failure/retry tests and add regressions for diagnostic gaps. A failed session must close its sockets and leave the server able to serve the next client.
- Prove rejected or interrupted transfers preserve the established state guarantees. Complete verified objects may remain for retry; validation must finish before refs advance. Pull conflicts retain the intentional markers and pending merge state.
- Build one deterministic, opt-in benchmark fixture with the team: about 1,000 files, 100 commits, two branches, shared blobs, nested paths, binary content, and a two-parent merge commit. Allow smaller/larger sizes via arguments.
- Generate data in temporary repos through minigit APIs/CLI; no system Git for core behavior
- Use fixed content/metadata where possible, disposable tokens, loopback, port
0, bounded timeouts, and guaranteed server/process cleanup
- Measure object reads/packing with M1, clean/changed status and diff with M2, log/history with M3, and initial/incremental/repeated push/pull.
- Record commands, fixture counts, Python/platform, elapsed times, stored bytes, and transferred object/payload counts
- Compare loose and packed runs and separate fresh-instance from repeated runs
- Validate refs, reachable hashes, file bytes, modes, and index after each successful round-trip
- Profile the largest observed costs before optimizing. Fix a bounded network bottleneck if found; record remaining findings for Week 8. Repeated up-to-date sync must transfer zero object payloads, even if protocol messages are exchanged.
- Add a small subprocess-based integration checkpoint for the polished CLI workflow, including rejected push and pull-conflict resolution. Reuse existing fixtures/helpers instead of copying the whole Week 6 suite.
- Publish reproducible results in
docs/performance.mdwith each owner's contributions. Keep the full benchmark opt-in; normal CI checks correctness and transfer counts without machine-specific timing thresholds. - Coordinate README networking examples;
scripts/quality-check.sh-> linked PR -> teammate review.
Tests
- Successful/up-to-date transfers have accurate output and exit codes
- Bad auth/ref, stale push, malformed reply, timeout/disconnect, missing/corrupt object: readable error, token absent, server survives
- Fresh CLI calls: pull conflict -> resolve -> add -> two-parent commit
- Two branches and a merge commit round-trip with packed/mixed storage
- Shared objects deduplicated; incremental sync sends only missing objects; repeated sync sends no object payloads
- Benchmark cleanup on success/failure; small integration case passes in CI
Team checkpoint
Run init -> add -> commit -> branch -> merge -> push -> pull across separate CLI processes. Show readable log/status/diff output, a rejected push, and a resolved pull conflict. Record a reproducible performance baseline and specific follow-up findings for Week 8.
Done when
- Network diagnostics follow the shared error contract and preserve state guarantees
- Shared benchmark and measured results cover all four modules
- Week 7 integration checkpoint passes with fresh CLI processes
- Performance findings and usage examples documented
- Quality check green; PR open; review requested
Activity