Skip to content

application: run cross-version artifact scans in parallel #182

Closed

Description

@morluto

Problem

scanVersions() in src/application/CrossVersionInventory.ts runs scanAuthorizedArtifactInventory() for left and right serially.

Evidence

  • src/application/CrossVersionInventory.ts:54
  • src/application/CrossVersionInventory.ts:61

Both calls are independent and each can be expensive for large trees. Current flow waits for the left scan to finish before starting the right scan, so user-facing runtime is roughly t_left + t_right instead of close to max(t_left, t_right) when I/O and subprocess limits allow concurrency.

Impact

  • Increases elapsed time for cross-version comparisons and any workflow that calls scanVersions, especially for large binaries with deep artifact trees.

Suggested fix

  • Run both scans concurrently via Promise.all, preserving the existing signal/error handling and failure shaping.

Activity

  1. added
    bug
    on Jul 14, 2026
  2. added
    area: evidence
    on Nov 23, 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

    area: evidencebug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions