Skip to content

Week 8 - M3: History performance + final CLI consistency audit #57

Open

Description

@aman-a-shah

Current checkpoint (2026-11-18)

Steps

  1. Reproduce Week 7 log/history measurements on the shared merge DAG. Profile repeated commit parsing and traversal in log, ancestry checks, and merge-base selection; select a bounded improvement only where the evidence supports it.
  2. Reuse parsed commits or visited sets within an operation where helpful. Traverse both parents, include each shared ancestor once, and preserve deterministic output. Timestamp ordering must never substitute for ancestry or hide reachable commits.
  3. Recheck root/linear/merge histories and equal or skewed timestamps after changes. Keep clean merge parents ordered [local_tip, other_tip]; preserve fast-forward/no-op behavior and inactive-branch pull semantics.
  4. Complete the Week 7 shared CLI audit against the actual integrated commands and --help. Document supported arguments and outcomes accurately; record unsupported extras as follow-ups rather than expanding this issue into new commands.
  5. Close expected-error gaps with the responsible owners: concise minigit: ... on stderr, nonzero exit for failures, success output on stdout, and argparse's normal usage errors. Preserve shared exception distinctions and MergeConflictError.paths; do not hide programming errors with a blanket catch.
  6. Verify that M2 uses the documented read-only merge-state helper. Across fresh processes, unresolved paths block commit/integration, explicit staging records resolution, and the resulting commit preserves both parents. Expected failures must not incorrectly announce success or advance refs.
  7. Add focused subprocess regressions for the final output/error fixes and contribute graph/ref assertions to M4's Week 8 checkpoint. Log and branch listing remain read-only.
  8. Record history before/after measurements and any deferred findings in docs/performance.md; reconcile README command and conflict-resolution examples with M2/M4. No measurement improvement is required if profiling supports keeping the simpler implementation.
  9. Run scripts/quality-check.sh; open a linked PR with audit results and request teammate review.

Tests

  • Root, linear, and two-parent histories; shared ancestors once; deterministic output with equal/skewed timestamps
  • Detailed/compact log, multiline/Unicode messages, unborn history, and unknown/invalid refs
  • Local/fetched fast-forward, no-op, clean merge, conflict, and inactive-branch rejection preserve graph and state behavior
  • Pending conflict -> resolve -> add -> commit across fresh processes retains parent order; read-only commands leave state unchanged
  • Expected missing/corrupt object, ref, checkout, and network errors use agreed streams/exit codes without a traceback or false success
  • Performance comparisons use the shared fixture; normal CI has no wall-clock threshold

Done when

  • Week 7 history/CLI findings are resolved or documented with evidence and a follow-up
  • Any history optimization has measurements and preserves both-parent correctness
  • Shared CLI output/help/errors and merge-state integration are consistent
  • README and history performance results match the delivered behavior
  • Quality check green; PR open; review requested

Activity

  1. added
    module-3
    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-3week-8

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions