Skip to content

fix(ci): devops ci quality gate finishes within five minutes #748

Closed

Description

@dan-petty

Context & Rationale

devops ci is the pre-push hook (.pre-commit-config.yaml:70-77), so every push waits for it. Its budget is 5 minutes; it now takes about 8. The gate runs its checks concurrently (commands/ci.py, _run_all_checks_async), so its time is the pytest-and-coverage step (pytest -n auto --maxprocesses=8 --cov=src). The per-check durations cached in .data/cache/ci_cache*.json show that step at 130s and 278s on 2026-09-25 for the same change, then 470s and 485s on 2026-09-30. No other check takes more than 42s.

Scope & Deliverables

Findings

  • The checkout's filesystem (the main cause): the workspace is a 9p share of a Windows folder (C:\Users\...\devops-cli through WSL drvfs), where a stat takes about 400µs against 0.8µs on ext4. The same code and command ran the test step in 518s there and in 158s on an ext4 clone. Fix: move the checkout into the WSL filesystem and reopen the container from there. devops ci now warns when its root is on such a share.
  • Secops dry-run tests ran the real scanners: test_trivy_dry_run, test_kubelinter_dry_run and test_pluto_dry_run never enabled dry-run mode, so they scanned the whole workspace until their 120s and 60s timeouts.
  • Tests still made DNS lookups: the network guard blocked connect but not getaddrinfo, so blocked HTTP retries and the reference extractor resolved names on every xdist worker. 15 tests relied on real DNS and now declare a public_dns fixture.
  • Split out: the reference extractor's per-token disk checks (fix(review): reference extraction checks the disk once per directory, not once per token #750) and tests writing to the project's config and data (fix(test): tests never write to the project config, data or tracked files #749).
  • Result: the full gate passes in 2m 4s on an ext4 clone.

Strategic Alignment

  • Milestone: v0.2.24 (critical fix, admitted after the release started)
  • Priority: P0, set by the maintainer: a slow gate delays every change.

Activity

  1. added this to the v0.2.24 milestone on Sep 30, 2026
  2. added
    type/bug
    priority/p0-critical
    scope/ci
    on Sep 30, 2026
  3. dan-petty commented on Sep 30, 2026

    @dan-petty
    OwnerAuthor

    Closed by #751, merged into release/v0.2.24.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

  4. added a commit that references this issue on Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority/p0-criticalscope/citype/bug

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions