-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
Closed
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-free-threadingtype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
If you run a lot of tests that log TSAN reports to a file, you are likely to get a bunch of different log files that look pretty similar. For example, something like:
tsan_log.3313980
tsan_log.3315274
...
It can be difficult to figure out which test caused the data race, especially when the reported stack trace looks generic. For example, if the race happens in _PyEval_EvalFrameDefault
or some other function not tied to a specific module, it's hard to know what caused the race.
I'm proposing that we update test/libregrtest/worker.py
to include the name of the test suite in the TSAN log filename. For example, the log files would instead look like:
tsan_log.test.test_asyncio.test_sendfile.3315095
tsan_log.test__interpchannels.3313611
This makes it easier to find the test that triggered the race.
Linked PRs
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-free-threadingtype-featureA feature request or enhancementA feature request or enhancement