Skip to content

perf: ./lint: own lane for build-and-run self-tests; clang-format only changed files locally #1050

Closed

Description

@zackees

Follow-up to #949. PR #991 shipped the main part: ci/test_*.py run in parallel, one process per file, about 164 s down to 64 s locally.

Held back during the CI refactor (#930, #985), to avoid colliding with it:

  1. Move the build-and-run self-tests into their own gate lane so ./lint stays a lint. These are test_windows_package_arguments, test_local_gate_probe, test_windows_runtime_mutation and the test_app_config_identity builds. Now the floor is test_app_config_identity.py at about 41 s.
  2. Locally, clang-format and gersemi check only files changed against origin/master. CI keeps checking every file. This was about 48 s of ./lint.

Acceptance

  • ./lint under 30 s warm on a 16-CPU host, with before and after timings in the PR.
  • No test is dropped: moved tests still run in CI and in the local gate (RED → GREEN on a gate test that lists which lane runs each file).
  • AGENTS.md's quoted ./lint time matches the measured one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions