Repository navigation
perf(ci): optimize caching configuration across all github workflows - #100
Merged
dan-petty merged 6 commits intoSep 10, 2026
Merged
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Cache growth and cache-contract issues remain unresolved, and task status is premature.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Optimizes GitHub Actions caching for dependencies, tooling state, and DevContainer layers.
Changes:
- Configures enhanced
setup-uvcaching and pruning. - Adds tooling cache persistence and container layer reuse.
- Adds workflow cache tests and updates task tracking.
File summaries
| File | Summary |
|---|---|
tests/test_ci.py |
Adds workflow caching invariant tests; cache key and cacheFrom assertions need strengthening. |
docs/agent/task.md |
Records the caching work as completed. |
.github/workflows/release.yml |
Adds uv and DevContainer layer caching. |
.github/workflows/ci.yml |
Adds uv, tooling, and DevContainer caching; uses an unbounded commit-based cache key. |
Review details
Suppressed comments (2)
docs/agent/task.md:985
- This records Phase 51.5 under Completed and marks issue #99 done while the pull request is still open and the issue remains in progress. The repository lifecycle in
AGENTS.md:57-63reserves Completed/Done for after the PR is squash-merged; keep this entry in the in-review/WIP section until merge, then promote it.
- [x] Phase 51.5: Optimize Caching Configuration Across All GitHub Workflows (P2 - Medium, Closes #99)
tests/test_ci.py:430
- These assertions cover the cache paths but not the cache key's growth behavior. The current
github.shakey would pass this test, so the living-contract test will not catch the per-commit cache proliferation described above; add an assertion that the key is present and does not contain${{ github.sha }}(or otherwise enforces a bounded ref-scoped key).
cache_paths = str(cache_steps[0].get("with", {}).get("path", ""))
assert ".mypy_cache" in cache_paths
assert ".ruff_cache" in cache_paths
assert ".pytest_cache" in cache_paths
- Files reviewed: 4/4 changed files
- Comments generated: 2
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
dan-petty
added a commit
that referenced
this pull request
Sep 10, 2026
* fix(review): remediate security findings and enhance review feedback loop - Remediate all 11 verified findings across security, sandbox isolation, and resource bounds: - CodeMode: Remove reflection primitives (getattr, hasattr, type) and sys module from safe_builtins to prevent sandbox escape - K8s: Remove hardcoded default password for Open-WebUI admin account, generating a cryptographically secure random token when omitted - SSH: Mask secrets in key rotation error messages and provide actionable connectivity guidance - Harness Memory: Enforce bounded LIMIT clause and cursor iteration on SQLite search queries - Pydantic AI Tools: Enforce unconditional path traversal validation across all tool parameters regardless of schema presence - Harness Compaction: Enforce bounded capacity and FIFO eviction for overflow fallback memory using OrderedDict - Pipeline Protocol: Sanitize stage exception messages using mask_secrets in StageExecutionRecord - Ollama Models: Add URL scheme validation and block link-local cloud metadata (169.254.169.254) in base_url - Ollama Client: Sanitize HTTP status and streaming error messages using mask_secrets - Valkey: Centralize and sanitize error messages across all Valkey CLI commands using mask_secrets - Update DevSecOps review prompts, verification falsification rules, and task manuals for the closed-loop feedback loop - Export verified findings into the continuous learning feedback dataset - Bump version to 0.2.15 in pyproject.toml and package init - Synchronize CLI documentation and README Closes #87 * fix(review): address copilot feedback on sandbox isolation, credential masking, and query bounds * feat(security): complete security scanner migration to BaseSecurityScanner and ScannerRegistry (#93) * feat(security): complete security scanner migration to BaseSecurityScanner and ScannerRegistry * fix(security): address review feedback on security scanner base migration * refactor(core): eliminate obsolete shims, aliases, proxy wrappers, and backwards compatibility remnants (#95) * refactor(core): eliminate obsolete shims, aliases, proxy wrappers, and backwards compatibility remnants - Strip unicode icons and emojis from README bullets and markdown files - Remove numeric counts, timestamps, and arbitrary identifiers from test names, variables, and documentation - Remove legacy __getattr__ proxies, wrapper functions, and private aliases across commands and AI modules - Replace private re-exports with canonical functions in security.sanitizer - Extract clean GhCliClient and eliminate inner class shims in GitHub commands - Clean up stopwatch timers and semantic schema variable identifiers - Update all impacted tests and verify complete 10-gate CI suite Closes #94 * fix(review): address copilot feedback on paginated json, adapter tests, and git boundary - Add parse_paginated_json to handle concatenated multi-page JSON arrays from gh api --paginate in GhCliClient and gh commands - Implement edit_milestone method on GhCliClient for full synchronizer compatibility - Author focused unit tests for GhCliClient and parse_paginated_json in test_github_client.py - Exercise real git repository boundary and gitignore filtering in test_review_runner.py * refactor(pages,review): eliminate legacy config paths and harden secret redaction * fix(review,security): decouple secret redaction and resolve CodeQL clear-text false positives * feat(k8s): centralized kubernetes logging stack and LogQL integration (#96) * feat(k8s): centralized kubernetes logging stack and LogQL integration - Add declarative Loki and Fluent Bit manifests under k8s/logging with PSA labels and network isolation - Register logging stack in deploy-stack and teardown-stack lifecycle - Implement native LogQL query parser, line filter evaluator, and stream engine in k8s.logql - Add OpenTelemetry trace_id extraction and trace correlation in LogQL entries and Grafana Loki datasource - Support live follow and transparent fallback to kubectl logs in devops k8s logs - Register FastMCP tools k8s_logs_query and k8s_logs_tail - Author unit tests and verify 10-gate CI suite Closes #89 * fix(k8s): remediate code review findings on centralized logging stack and logql integration * feat(k8s): configure qdrant service with nodePort 31744 for direct host RAG access * fix(k8s): resolve code review feedback on centralized logging stack and logql integration * fix(k8s): confine rich markup escaping to output submodule and restore qdrant clusterip security perimeter * feat(tf): infracost finops cloud cost estimation and reporting (#97) * feat(tf): infracost finops cloud cost estimation and reporting * fix(tf): address code review feedback on Infracost FinOps cost engine - Enforce DependencyError when Infracost binary is missing in non-mock execution - Raise typed SubprocessError on non-zero Infracost breakdown/diff subprocess exit - Add ToolExecutionError error boundaries around breakdown and diff JSON deserialization - Add --compare-to baseline option to run_infracost_diff and CLI command - Validate budget thresholds before rendering and serializing JSON output - Register dynamic MCP resource resource://tf/cost/latest - Add comprehensive unit tests covering parsing, baseline diffs, and budget serialization * feat(argo): multi-cluster argocd fleet synchronization and rollouts (#98) * feat(argo): multi-cluster argocd fleet synchronization and rollouts - Implement multi-cluster fleet coordination engine with bounded concurrency under devops argo fleet sync - Add progressive delivery rollout controls (promote, abort, restart) wrapping kubectl argo rollouts - Introduce automated metric-driven rollback gates evaluating Prometheus/LogQL error rates with auto-abort capability - Add format_argo_fleet_sync_table and format_argo_rollout_analysis_table formatters - Register argo_fleet_sync, argo_rollout_analyze FastMCP tools and resource://argo/fleet/status resource - Add comprehensive test suite with 98%+ code coverage adhering to strict architectural invariants * fix(argo): address review feedback on fleet sync and rollouts * perf(ci): optimize caching configuration across all github workflows (#100) * perf(ci): optimize caching configuration across all github workflows * fix(ci): bound tooling cache key and enforce exact devcontainer cacheFrom assertion * refactor(agent): modularize task tracking to eliminate merge conflicts - Decompose monolithic docs/agent/task.md into isolated per-task tracking files under docs/agent/tasks/ (task-<issue>-<slug>.md) - Update GitHub Projects v2 parser (src/devops_cli/github/projects.py) to recursively scan and parse docs/agent/tasks/ by default while excluding archives and READMEs - Decompose parser functions to enforce cyclomatic complexity <= 10 and nesting depth <= 5 - Archive historical phases 1-50 in docs/agent/archive/historical-phases-1-to-50.md - Replace docs/agent/task.md with a lean index table pointing to modular task files - Update AGENTS.md, ROUTINE_TASKS.md, and Knowledge Base Task Manual 13 with the modular task architecture and commit context mandate - Author comprehensive unit tests in tests/test_github_projects.py Closes #101 * feat(ai): strengthen target-agnostic review prompts and feedback dataset synchronization * feat(ai): generalize devops ai review for target-agnostic evaluation and multi-convention discovery * fix(telemetry): optimize jaeger memory sizing, exception span hygiene, and embedding fast failover - Update k8s/otel/jaeger.yaml to configure MEMORY_MAX_TRACES to 10000 and scale memory limits to 1024Mi to eliminate OOMKills - Refactor telemetry tracer span exception handling to avoid attaching stack traces to handled CLI exits (typer.Exit) - Add DEFAULT_RAG_EMBEDDING_TIMEOUT (15.0s) and rapid 2.0s connect timeouts for fast Ollama multi-node failover - Author comprehensive unit tests in tests/test_telemetry.py and tests/test_rag_embeddings.py - Ground and deliver GitHub task 104 in docs/agent/tasks/task-104-telemetry-trace-optimizations.md (Closes #104)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR optimizes caching configurations across GitHub Actions workflows (
ci.ymlandrelease.yml) to reduce workflow execution latency, eliminate redundant runtime toolchain fetching, prevent unbounded cache growth, and speed up container builds:setup-uvCaching Optimization:cache-python: "true"to persist the downloaded Python 3.14 runtime across workflow runs.prune-cache: "true"to automatically discard unused uv cache entries prior to saving.cache-dependency-glob: "uv.lock"to ensure lockfile hashing drives cache invalidation.Tooling State Preservation (
actions/cache):actions/cachepinned to SHA0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0in.github/workflows/ci.yml..mypy_cache,.ruff_cache, and.pytest_cacheto accelerate incremental static analysis and linting.DevContainer Layer Cache Optimization:
cacheFrom: ${{ steps.image_repo.outputs.name }}:latesttodevcontainers/cisteps in bothci.ymlandrelease.yml.TDD Living Contract & Invariant Validation:
tests/test_ci.py(test_github_workflows_caching_configuration,test_ci_workflow_has_tooling_cache_step) verifying cache inputs and invariants.actionlintand full CI quality gate (devops ci— 10/10 passed).Closes #99
Related Issues
Quality Gates Passed
uv run pytest tests/test_ci.py)uv run actionlint)uv run mypy --strict src)uv run devops ci)