Repository navigation
Open
Description
- Owner: @Shuhan6017 ·
minigit/remote.py,tests/test_remote.py - Integration:
tests/test_week8_integration.py, the shared opt-in benchmark from Week 7 - M4: Network diagnostics + end-to-end performance baseline #47,docs/performance.md - Depends on: Week 6 - M4: Pull + authenticated multi-ref transfers #41, Week 7 - M4: Network diagnostics + end-to-end performance baseline #47; complete the Week 6 checkpoint (Week 6 - M1: Object-store fixes for push/pull round-trips #38, Week 6 - M2: Working-tree safety for pull + merge round-trips #39, Week 6 - M3: Fetched-tip integration + merge/ref hardening #40, Week 6 - M4: Pull + authenticated multi-ref transfers #41) and Week 7 prerequisites (Week 7 - M1: Finalize packfiles + storage performance baseline #44, Week 7 - M2: Polish status + diff output #45, Week 7 - M3: Polish log output + shared CLI errors #46, Week 7 - M4: Network diagnostics + end-to-end performance baseline #47) before final verification
- Coordinate Week 8 storage, working-tree, and history contributions with Week 8 - M1: Measured storage optimizations + packfile regression checks #55, Week 8 - M2: Status/diff performance + working-tree regression checks #56, and Week 8 - M3: History performance + final CLI consistency audit #57
- Branch from updated
main:feat/final-network-performance-checkpoint - Keep single-branch push/pull APIs and the authenticated wire protocol compatible
Current checkpoint (2026-11-18)
- Week 6 integration passes; W8: feat/working-tree-performance-finalization #64/44 week 7 m1 finalize packfiles storage performance baseline #65/Polish log output and CLI errors #66/Bound pack-index caching and verify replacement detection #71 supply the module polish/storage contributions. The small final Week 8 checkpoint and shared full-project/network benchmark have not landed.
- Next: complete Week 7 - M4: Network diagnostics + end-to-end performance baseline #47, then add the combined subprocess checkpoint and comparable Week 7/8 measurements covering both-parent history, two branches, packed/mixed storage, interrupted-transfer retry, rejection, and conflict resolution.
- This remains the core completion dependency for Week 9 - M1: Storage readiness + object-format writeup #60/Week 9 - M2: Working-tree demo rehearsal + usability fixes #61/Week 9 - M3: History/merge demo rehearsal + design writeup #62/Week 9 - M4: Integrated demo rehearsal + stretch-goal triage #63. Draft writeups and runbooks can proceed meanwhile, but final verification must use the recorded integrated revision.
Steps
- Reproduce the Week 7 initial/incremental/repeated push/pull baseline. Profile object discovery, repeated validation, and protocol round trips; fix a bounded measured bottleneck without skipping reachable descendants or relying on a locally present parent as proof of complete history.
- Preserve deduplication across branches and both merge parents. Incremental sync sends only missing objects; repeated up-to-date sync sends zero object payloads even when protocol messages are exchanged.
- Keep authentication, hash/type/framing validation, stale-ref rejection, and complete-history validation before ref publication. M1 owns object I/O, M3 owns refs and fetched-tip integration, and M2 owns checkout/index changes.
- Recheck interruption/retry behavior after optimization: refs, HEAD, files, and index remain unchanged on transfer failure; verified received objects may remain. Pull conflicts intentionally keep markers and pending merge state. A failed session closes sockets and leaves the server available to the next client.
- Coordinate a small Week 8 integration checkpoint using separate CLI processes and two temporary repositories. Reuse earlier helpers and test the combined final behavior rather than copying every earlier regression.
- Init -> add -> commit -> branch -> checkout -> clean merge -> push -> pull
- Exchange two branches with shared blobs, nested paths, executable modes, binary data, and a two-parent merge commit
- Verify branch tips, complete reachable hashes, exact file bytes/modes, index, and readable log/status/diff
- Show up-to-date repeat, rejected stale/diverged push, and pull conflict -> resolve -> add -> two-parent commit
- Include a representative interrupted transfer -> retry and packed-only/mixed-store round-trip
- Rerun the shared moderately large benchmark (about 1,000 files and 100 commits, configurable) with all four owners. Keep fixture shape and measurement method comparable to Week 7; record revision IDs, Python/platform, commands, elapsed times, stored bytes, and transferred object/payload counts. Separate fresh and repeated runs.
- Consolidate before/after results in
docs/performance.md. Explain measured improvements, tradeoffs, and cases with no material change. Record each remaining limitation with a reproduction and owner/follow-up; do not invent a timing target or claim unmeasured speedups. - Coordinate a reproducible final walkthrough in README using the actual supported CLI, disposable tokens, and a documented server start/stop sequence. Keep tokens out of captured output and errors.
- Run
scripts/quality-check.shwith the small checkpoint in normal CI. Keep the full benchmark opt-in, use loopback/port0and bounded waits in automated tests, and guarantee server/process/temp-repo cleanup on success and failure. Open a linked PR and request teammate review.
Tests
- First/incremental/repeated sync: complete matching history, deduplicated payloads, zero payloads for up-to-date repeats
- Bad auth/ref, stale push, malformed/truncated reply, missing/corrupt object, timeout/disconnect: agreed error and preserved state; next client succeeds
- Active/inactive branch pulls, both merge parents, packed-only/mixed storage, clean merge, and persistent conflict resolution
- Final workflow runs across fresh CLI processes; failures and rejected operations do not print success or expose tokens
- Benchmark verifies correctness as well as timing and always cleans up; CI uses correctness/count assertions without machine-specific timing thresholds
Team checkpoint
After the prerequisites land, demonstrate the complete local and two-repository workflow with all four modules, including conflict resolution and a failed-transfer retry. Publish comparable Week 7/8 measurements and a clear list of remaining limitations.
Done when
- Week 7 network findings are resolved or documented with evidence and a follow-up
- Any network optimization has comparable measurements and preserves transfer/state guarantees
- Final Week 8 integration checkpoint passes across fresh CLI processes
- Shared performance report covers all four modules with reproducible commands/results
- README walkthrough and remaining limitations match the delivered implementation
- Quality check green; PR open; review requested
Activity