Skip to content

tests: support v -silent in the remaining test runners as well; note it in AGENTS.md#26590

Merged
spytheman merged 1 commit into
vlang:masterfrom
spytheman:support_silent_test_runner_outputs_for_ai_agents
Feb 13, 2026
Merged

tests: support v -silent in the remaining test runners as well; note it in AGENTS.md#26590
spytheman merged 1 commit into
vlang:masterfrom
spytheman:support_silent_test_runner_outputs_for_ai_agents

Conversation

@spytheman

@spytheman spytheman commented Feb 12, 2026

Copy link
Copy Markdown
Contributor

Goal

This PR adds support for a -silent option, to easily reduce the amount of produced output of most test runners. The output, affects directly the amount of context that AI models have to process, so in many cases, reducing it (without losing important details), may allow smaller models to work better, and to avoid hitting the quota limits of larger ones.

Motivation

I've noticed that before, ./v vlib/v/compiler_errors_test.v consumed ~1% of my weekly quota with codex, due to it producing slightly above 132KB because of the progress messages printed for each processed .vv/.out pair, even if the corresponding test passed.

For a human, the progress messages are helpful, and the amount of them is easy to ignore, since they are printed in place (overwriting the last line). An AI agent monitoring the process, however will consume all of them...

Result

Now ./v -silent vlib/v/compiler_errors_test.v when everything is OK, produces:

Summary for -skip-unused tests: 51 passed, 51 total. Elapsed time: 17761 ms.
Summary for comptime define tests: 8 passed, 8 total. Elapsed time: 2368 ms.
Summary for all tests: 1456 passed, 4 skipped, 1460 total. Elapsed time: 128964 ms.

@spytheman spytheman merged commit afca235 into vlang:master Feb 13, 2026
94 of 96 checks passed
@esquerbatua

Copy link
Copy Markdown
Contributor

Great job!

cestef pushed a commit to cestef/v that referenced this pull request Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants