Skip to content

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

Merged
dan-petty merged 2 commits into
release/v0.2.20from
feat/260-ci-performance-acceleration
Sep 18, 2026
Merged

dan-petty merged 2 commits into
release/v0.2.20from
feat/260-ci-performance-acceleration

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Summary

Closes #260

Accelerates devops ci quality gate performance across local workstations and CI runners:

  • Pytest Worker Auto-Scaling & Memory-Safe Pool Cap: Dynamically scales Pytest xdist workers based on available hardware (min(os.cpu_count() or 4, 8)), removing the hardcoded --maxprocesses=4 limit while safely capping at 8 to prevent memory exhaustion during concurrent dependency imports.
  • Pathological Test Hotspot Mocking & Isolation:
    • Mocked unmocked socket probes in test_k8s_context.py::test_k8s_bootstrap_success via configure_urls patch (dropping runtime from 77.89s to <0.05s).
    • Isolated repository traversal in test_ai_repomap.py::test_repomap_cli using tmp_path fixture and --target argument, eliminating unbounded .venv filesystem traversal (dropping runtime from 48.54s to <0.1s).
    • Bypassed redundant git fingerprinting passes in test_ci.py using --no-cache (dropping runtime from 72.17s to <0.2s).
  • Zero-Blocking Pipeline Dispatch: Eliminated sequential blocking DocGenerator.check_docs execution prior to pipeline dispatch. Pytest and all quality gates now launch concurrently at t = 0.
  • Unit Testing & Coverage: Added unit test coverage for _resolve_pytest_worker_count, _execute_check_async, _try_save_ci_cache, and _extract_service_ingress_or_nodeport.

Verification

  • Passed all 10 local CI verification gates (100% pass across all 3387 unit & integration tests, typecheck, lint, format, audit, security, actionlint, and docs).
  • Validated cached execution (devops ci) returning in 5.0ms on clean workspace.

- 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)
…test hotspot isolation, and zero-blocking dispatch (#260)
@dan-petty dan-petty added this to the v0.2.20 milestone Sep 18, 2026
@dan-petty dan-petty added priority/p0-critical Urgent blockages, critical vulnerabilities, or release blockers scope/cli Core CLI framework, Typer subcommands, options, and tables type/feature New user-facing functionality or capability addition labels Sep 18, 2026
@dan-petty
dan-petty merged commit 12cbbfb into release/v0.2.20 Sep 18, 2026
7 checks passed
@dan-petty
dan-petty deleted the feat/260-ci-performance-acceleration branch September 18, 2026 20:27
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

priority/p0-critical Urgent blockages, critical vulnerabilities, or release blockers scope/cli Core CLI framework, Typer subcommands, options, and tables type/feature New user-facing functionality or capability addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant