Skip to content

🐛 fix(parallel): show --list-dependencies output#3786

Merged
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:fix/3322-parallel-list-deps
Feb 20, 2026
Merged

🐛 fix(parallel): show --list-dependencies output#3786
gaborbernat merged 1 commit intotox-dev:mainfrom
gaborbernat:fix/3322-parallel-list-deps

Conversation

@gaborbernat
Copy link
Copy Markdown
Member

Running tox run-parallel --list-dependencies silently discards the dependency output on successful runs. This happens because parallel mode suspends all stdout/stderr into in-memory buffers, and those buffers are only flushed when a test fails or when parallel_show_output is explicitly enabled. Since --list-dependencies writes via logging.warning(), the output gets captured and never reaches the user.

The fix adds list_dependencies as an additional condition for flushing the suspended output buffers after each environment completes. This sits alongside the existing parallel_show_output and failure checks in _handle_one_run_done, preserving the same flush-or-discard pattern while ensuring dependency output is always visible when requested.

Fixes #3322

In parallel mode, stdout is suspended into buffers and only flushed
on failure or when parallel_show_output is set. This caused
--list-dependencies output to be silently discarded on success.
Also flush buffered output when list_dependencies is enabled.
@gaborbernat gaborbernat added the bug:minor does not affect many people or has no big impact label Feb 20, 2026
@gaborbernat gaborbernat enabled auto-merge (squash) February 20, 2026 04:00
@gaborbernat gaborbernat merged commit 6885b5c into tox-dev:main Feb 20, 2026
28 checks passed
@gaborbernat gaborbernat deleted the fix/3322-parallel-list-deps branch February 20, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided bug:minor does not affect many people or has no big impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ensure dependencies are printed to stdout in parallel

1 participant