Skip to content

Preserve timeout output in the corpus checker #593

Closed

Description

@LunaStev

tools/check_wave_corpus.py handles timeouts differently between its two execution paths.

run_std_examples catches subprocess.TimeoutExpired, calls timeout_output(error), and includes captured output in the failure report.

The main corpus-check loop instead catches subprocess.TimeoutExpired without retaining the exception and records only:

timed out after ...s

This discards compiler stdout/stderr that was produced before the timeout, which is often the most useful information when investigating a hung compiler case.

Code evidence:

  • tools/check_wave_corpus.py — main corpus loop
  • tools/check_wave_corpus.py — run_std_examples

Acceptance:

  • Preserve partial stdout/stderr for timed-out corpus checks.
  • Reuse the existing timeout_output helper so corpus checks and runnable examples behave consistently.
  • Keep the concise timeout message when no partial output exists.
  • Add a Python regression test using a child process that writes output before timing out.

Activity

  1. added
    bug
    good first issue
    on Sep 12, 2026
  2. nightcityblade commented on Sep 12, 2026

    @nightcityblade
    Contributor

    Hi, I'd like to work on this. I'll submit a PR shortly.

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