Skip to content

Published 1.3.0 still emits zero per-check duration for non-cached Ruff checks #111

Closed

Description

@MatthiasLew

The published ai-dev-cli-tools 1.3.0 package still reports a zero per-check duration for a successful, non-cached Ruff invocation, despite recording a nonzero measured subprocess duration. This is the behavior described by closed issue #99; please verify that the correction is included in the published artifact.

Minimal reproduction:

  1. In one virtual environment install ai-dev-cli-tools==1.3.0 and Ruff.
  2. Create a small Python project containing sample.py with value = 1.
  3. Configure .ai-dev-tools.toml:
[commands]
lint = "python -m ruff check ."
  1. Run ai-dev --json check --mode fast --no-cache.

Observed in a fresh installation:

{
  "tool_version": "1.3.0",
  "summary.results[0].duration_seconds": 0.0,
  "summary.results[0].cached": false,
  "summary.execution.aggregate_subprocess_seconds": 0.248
}

Expected: the per-check field uses measured execution time rather than a parser's zero placeholder. The exact wall time will vary. No repository-specific integration or credentials are needed. This report is about the released package; it does not assume whether source HEAD or release packaging is responsible.

Activity

  1. MatthiasLew commented on Oct 20, 2026

    @MatthiasLew
    OwnerAuthor

    Confirmed against the published PyPI 1.3.0 artifact: a successful non-cached Ruff check reports per-check duration 0.0s while aggregate_subprocess_seconds is 0.303s.

    The v1.3.0 tag predates f474c88, so this is an unreleased fix rather than a regression in current source. PR #119 prepares 1.3.1 and adds an installed-wheel check with real Ruff, validating the per-check duration against both the subprocess aggregate and saved JSON report. A clean local 1.3.1 wheel passed with 2.027s in all three locations.

    Keeping this issue open until 1.3.1 is published and the artifact downloaded from PyPI passes verification.

  2. MatthiasLew commented on Oct 20, 2026

    @MatthiasLew
    OwnerAuthor

    Released and verified in v1.3.1: https://github.com/MatthiasLew/ai-dev-cli-tools/releases/tag/v1.3.1

    Fresh installation from https://pypi.org/simple/ using ai-dev-cli-tools==1.3.1 and Ruff 0.15.21:

    • successful Ruff check, cached=false;
    • per-check duration_seconds: 0.224;
    • aggregate_subprocess_seconds: 0.224;
    • saved JSON report duration_seconds: 0.224.

    The wheel and source distribution SHA-256 hashes on PyPI exactly match the TestPyPI-verified GitHub release assets. Release, production PyPI publication, pipx installation verification and tag CI all completed successfully. Invalid token-budget input was also verified to exit 2 without a traceback.

    Closing as fixed in the published artifact.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions