Skip to content

Fail early when check_case_sources receives an invalid compiler path #655

Closed

Description

@LunaStev

Current evidence

tools/check_case_sources.py accepts --wavec, resolves the path, and then calls check_sources. The helper attempts to launch that path once for every manifest source and catches OSError per source.

If the compiler path does not exist or is not launchable, the tool therefore walks the entire corpus and records the same launch failure repeatedly instead of reporting one configuration error before source checking begins.

Scope

  • Validate the requested compiler path before entering the per-source loop.
  • Require a compiler file that can be launched on the current platform.
  • Report one clear top-level error for a missing or unusable compiler.
  • When --report-json is requested, preserve a valid report with an empty result list and the configuration error rather than emitting one failed record per source.
  • Preserve per-source OSError handling for failures that occur after a compiler has passed initial validation.

Completion criteria

  • Tests cover a missing compiler path and an unusable/non-file path.
  • Invalid compiler configuration fails before any source command is attempted.
  • The JSON report remains valid and records the single top-level error.
  • Normal source-check behavior and existing timeout/failure recording remain unchanged.

Activity

  1. added
    bug
    good first issue
    on Sep 15, 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

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions