Skip to content

feat(ci): fast execution caching when unchanged & pre-commit file change tracking integration (#256) - #257

Merged
dan-petty merged 2 commits into
release/v0.2.20from
feat/256-ci-execution-caching-pre-commit
Sep 18, 2026
Merged

dan-petty merged 2 commits into
release/v0.2.20from
feat/256-ci-execution-caching-pre-commit

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Description

Closes #256

Introduces persistent, deterministic execution caching for devops ci quality gates, bypassing expensive test and validation runs (reducing execution latency from ~3.5 minutes to < 0.01s) when the workspace is unchanged since the last passing run.

Key Changes

  • CI Caching Engine (src/devops_cli/ci/cache.py):
    • Deterministic SHA-256 fingerprinting from Git HEAD, content diffs (diff -p, diff --cached), untracked files (ls-files --others), and critical configs (pyproject.toml, uv.lock, .pre-commit-config.yaml).
    • Safe index refresh (git update-index --refresh -q) preventing stat-dirty false cache misses from read-only tools.
    • Granular file hash tracking and pre-commit subset matching (_check_pre_commit_subset_match).
    • Atomic cache persistence at <data_dir>/cache/ci_cache.json.
  • CLI Options & UX (src/devops_cli/commands/ci.py):
    • Added --cache/--no-cache, --force / -f, and --files options.
    • Implemented FileOrSubcommandGroup(TyperGroup) allowing pre-commit positional file arguments to cleanly route to group callback without interfering with subcommands.
    • Enhanced CI summary table with ✓ pass (cached) indicators.
  • Pre-commit Integration (.pre-commit-config.yaml):
    • Configured pass_filenames: true and require_serial: true on devops-ci-pre-commit hook.
  • Test Suite (tests/test_ci_cache.py):
    • 8 unit and integration tests verifying path resolution, fingerprinting, exact match, options mismatch, pre-commit subset matching, cache invalidation, CLI --force, and pre-commit positional argument parsing.
    • Strict compliance with $M \le 10$, depth $\le 5$, and structural tuple equality assertions.

@dan-petty
dan-petty merged commit 7ecb749 into release/v0.2.20 Sep 18, 2026
4 checks passed
@dan-petty
dan-petty deleted the feat/256-ci-execution-caching-pre-commit branch September 18, 2026 18:47
@dan-petty dan-petty mentioned this pull request Sep 19, 2026
7 tasks done
dan-petty added a commit that referenced this pull request Sep 19, 2026
* feat(release): v0.2.20

* fix(pr): handle JSON array timeline payload in _parse_timeline_copilot_state (#245) (#246)

* fix(pr): handle JSON array timeline payload in _parse_timeline_copilot_state (#245)

* docs(tasks): update task 245 status to In Review and link PR #246

* docs(agents): add roadmap ingestion rules for missing parameters and bad patterns (#247)

* docs(agents): add roadmap ingestion rules for missing parameters and bad patterns

* fix(agents): gate devops roadmap governance block on is_devops_cli

* fix(review): remediate markdown formatting issues and unbalanced code blocks in review reports (#250) (#251)

* refactor(core): use pyproject.toml as single source of truth for version (#248) (#249)

* refactor(core): use pyproject.toml as single source of truth for version (#248)

* fix(release): require __version__ presence in init before dynamic fallback (#249)

* docs(roadmap): add universal subcommand option propagation task

* feat(cli): universal trailing --dry-run option propagation across subcommands (#252) (#253)

* feat(pm): forward-looking project management, roadmap reconstruction, compactor hardening & issue sync (#254) (#255)

* feat(pm): forward-looking project management, roadmap reconstruction, compactor hardening & issue sync (#254)

* docs(agent): link PR #255 to task-254

* fix(github): handle remote issue query failures gracefully in roadmap sync (#254)

* feat(ci): fast execution caching when unchanged & pre-commit file change tracking integration (#256) (#257)

* feat(ci): fast execution caching when unchanged & pre-commit file change tracking integration (#256)

* docs(agent): link PR #257 to task-256

* feat(pr): add integrations to keep pull requests up to date (#258) (#259)

* feat(pr): add integrations to keep pull requests up to date (#258)

* docs(agent): link PR #259 to task-258

* fix(ci): address actionlint shellcheck warning and add shellcheck to devcontainer

* docs(roadmap): prune completed items from Value vs. Effort Prioritization Matrix

* feat(ci): accelerate devops ci performance with worker auto-scaling, test hotspot isolation, and zero-blocking dispatch (#260) (#261)

* docs(roadmap): add v0.2.24 milestone for Vibes architectural alignment

- POSIX Process Group Sandbox Enforcement (Obs 05)
- Structural Pre-Commit Hook Inversion (Systems Obs 08)
- Anti-Brittle Constant Elimination (Obs 06)
- Semantic Validator Deprecation & Structural Positional Oracles (Obs 17)

* feat(ci): accelerate devops ci performance with worker auto-scaling, test hotspot isolation, and zero-blocking dispatch (#260)

* fix(review): remediate session findings, harden defensive boundaries, and improve review feedback loop (#262) (#263)

* fix(review): remediate session findings, harden defensive boundaries, and improve review feedback loop (#262)

* docs(agent): link PR #263 and update status to In Review

* docs(agent): reconcile task-262 as merged and prune completed item from matrix (#264)

* fix(review): resolve PR #244 review threads, harden markdown fence/asterisk parsing, and update release notes (#265) (#266)

* fix(review): resolve PR #244 review threads, harden markdown fence/asterisk parsing, and update release notes (#265)

* docs(agent): link PR #266 and set status to In Review

* refactor(core): replace inconsistent N-Gate references with Gated (#267) (#268)

* refactor(core): replace inconsistent N-Gate references with Gated (#267)

* docs(agent): link PR #268 in task-267 tracking

* docs(agent): author deliverables as merged and prohibit administrative tracking PRs (#270) (#271)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects

Development

Successfully merging this pull request may close these issues.

1 participant