Skip to content

fork CI: a failing Python test file can hang the test runner instead of failing #1070

Backlog

Description

@scuttletoby

What happens: while a PR's Python tests were failing, the fork CI test runner (fork-ci-tests.cjs) hung on one test file (report.test.py of the gardener kit, inside fork-ci-unittest.py) and never finished. Run directly, the same file exited promptly with 10 failures.

Why it matters: a failing test must make CI fail fast, not hang until the job timeout. A hang wastes runner minutes and hides which test failed.

Expected: each test file runs with a time limit; on failure or timeout the runner prints the failing file and its last output lines and exits non-zero.

To do:

  • Reproduce it with a deliberately failing test file (for example one that leaves a child process or an open pipe behind).
  • Find the cause: pipe buffering, an inherited stdin, or a child process left running.
  • Add a per-file timeout and a contract test showing that a failing file fails CI quickly.

Found during the #1068 fix round.

🤖 Generated with Claude Code

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions