Skip to content

Week 7 - M4: Network diagnostics + end-to-end performance baseline #47

Open

Description

@aman-a-shah

Current checkpoint (2026-11-18)

Steps

  1. 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 preserve MergeConflictError.paths
  2. 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.
  3. 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.
  4. 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
  5. 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
  6. 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.
  7. 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.
  8. Publish reproducible results in docs/performance.md with each owner's contributions. Keep the full benchmark opt-in; normal CI checks correctness and transfer counts without machine-specific timing thresholds.
  9. 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

  1. added
    module-4
    on Oct 9, 2026
  2. added
    week-7
    on Oct 9, 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-7

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions