Skip to content

Test trend report should cover timed out test suites #5798

Closed

Description

@crusaderky

Use case

When pytest_timeout kills a test in Windows or MacOS, it kills off the whole test suite and no junit test report is generated.
e.g. https://github.com/dask/distributed/runs/5157694410?check_suite_focus=true
As a consequence, the failure is invisible in https://dask.org/distributed/test_report.html.

Proposed design

Write a wrapper/parser that fetches the name of the test that caused the timeout, e.g.

+++++++++++++++++++++++++++++++++++ Timeout ++++++++++++++++++++++++++++++++++++
distributed/cli/tests/test_dask_worker.py::test_nworkers_requires_nanny 
Error: Process completed with exit code 1.

and generates a junit report containing that single test as failed.

Activity

  1. self-assigned this
    on Feb 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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