Skip to content

Reduce wait time in validation workflows #1385

Description

Validation-related commands are among the CLI's hottest paths:

  • extension:validate: 57.5K executions
  • project:ci: 15.2K
  • project:validate: 5.75K

A hands-on validation tour also showed that repeated validation workflows can spend substantial time in hidden setup work such as temp copying, Composer dependency bootstrap and tool initialization. This is especially costly in flows like validate → fix → revalidate, basic → full validation, target-version checks, and project/extension validation on large projects. Full PHPStan appeared idle while Composer dependency bootstrap ran with captured output; default temp copying prevented dependency reuse, while --no-copy left vendor//composer.lock behind and a warm rerun still took ~14s.

This directly affects the Validation experience in project dev: long-running validation should remain practical on large projects and repeated runs should avoid unnecessary work.

Proposal

Break down and measure stages of extension validate and project validate separately:

  • source/temp copying
  • Composer resolution/install
  • verifier/tool setup
  • actual analysis

Use these measurements to reduce repeated work across validation workflows through caching, reuse, unchanged-work detection and parallelization where appropriate.

Prioritize validation optimizations needed for the project dev Validation experience first, then other high-volume build/CI paths by volume × runtime.

Acceptance criteria

  • Runtime is measured per major stage for first and repeated runs of extension validate and project validate.
  • Copy, dependency bootstrap, tool setup and analysis time are distinguishable, with the largest contributors documented.
  • At least one optimization is implemented, and p50/p95 telemetry can show before/after impact.

Activity

  1. changed the title [-]Profile and optimize the highest-volume CLI validation/build paths[/-] [+]Reduce wait time in high-volume validation/build paths[/+] on Sep 4, 2026
  2. changed the title [-]Reduce wait time in high-volume validation/build paths[/-] [+]Reduce wait time in validation workflows[/+] on Sep 9, 2026
  3. shyim commented on Sep 14, 2026

    @shyim
    Member

    the lsp could make it faster, otherwise we cannot do anything here. and looking at telemetry is wasted time it does not show anything. as we don't know what kind of internet/pc it ran on and project size and so on

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Fields

    No fields configured for Improvement.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions