Skip to content

Week 8 - M4: Network performance + final end-to-end checkpoint #58

Open

Description

@aman-a-shah

Current checkpoint (2026-11-18)

Steps

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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
  6. 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.
  7. 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.
  8. 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.
  9. Run scripts/quality-check.sh with the small checkpoint in normal CI. Keep the full benchmark opt-in, use loopback/port 0 and 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

  1. added
    module-4
    week-8
    on Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

module-4week-8

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions