Skip to content

feat: add --resume, lazy imports and unit tests for the remaining modules - #13

Merged
coldsofttech merged 8 commits into
mainfrom
feat/attribution-and-resume
Nov 14, 2026
Merged

coldsofttech merged 8 commits into
mainfrom
feat/attribution-and-resume

Conversation

@coldsofttech

@coldsofttech coldsofttech commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add --resume, which continues an interrupted run using the settings it started with. Repeating a setting is fine if the value is the same; a different value is an error. A plain re-run with the same settings also continues, and one with different settings starts a new run.
  • Back it with a run journal in .git/commitrocket-journal.jsonl, an append-only event log of the run's parameters and progress that is deleted when the run finishes.
  • Import lazily in the git, io and support modules so each module loads only what it needs.
  • Add unit tests for the remaining modules (cli, core/runner, git/push, io/ui, support/errors) and run pytest with importlib import mode so test files in different folders can share a name.
  • Document --resume in the README and the command line guide, refresh the architecture notes, and update the 0.1.3 changelog.

Test plan

  • pytest tests/unit (288 passed, 2 skipped)
  • Integration tests (pytest -m integration), not re-run after the lazy import changes
  • CI

Closes #6, closes #7, closes #8.

Commits now end with "Prepared and Committed By: 🚀 CommitRocket (<repo>)",
never duplicated. Add --no-attribution (alias --ignore-attribution, or
no-attribution in the config file) to skip it. Applies to batch, LFS-rules
and resumed commits, and to the dry-run preview and JSON report.
Group the modules into packages and split the runner and the command line
into small modules, with lazy imports throughout. Tests move to tests/unit,
mirroring the source tree. The io/ notification scripts become files.

Fix run_git decoding Git output with the system code page, which garbled
non-ASCII file names and commit messages on Windows.
Add .gitattributes, markdownlint and Sweepito config and SUPPORT.md, update the
issue config and pull request template, add build provenance to the release
workflow and a mypy step to lint. Move the social preview image to brand/.
Add docs/README.md and the command line and configuration guides, update the
architecture and development docs, move reference detail out of the README,
add mypy and bump the version to 0.1.3.
The run journal is now .git/commitrocket-journal.jsonl, an append-only
event log holding every run parameter plus progress (staged, committed,
pushed). It lives in .git so it is never tracked.

--resume reuses the stored parameters; explicitly passed values must match
or the command errors. A plain re-run continues the run when parameters
match and starts a new run when they differ. Missing, damaged or
incompatible journals, a different branch/target and a changed history give
clear errors. The journal is deleted when a run finishes.
Move pathlib, json, os and sibling-module imports into the functions that use them, so importing a module loads only what it needs.
Cover the cli, core/runner, git/push, io/ui and support/errors modules, merge the push tests into one file and run pytest with importlib import mode so test files in different folders can share a name.
@coldsofttech
coldsofttech force-pushed the feat/attribution-and-resume branch from 02c2884 to 5c07886 Compare November 14, 2026 20:57
@coldsofttech
coldsofttech merged commit 6c0b5e9 into main Nov 14, 2026
11 checks passed
@coldsofttech
coldsofttech deleted the feat/attribution-and-resume branch November 14, 2026 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant