From 53a6937c31fc5845b724620affb32c14043a51fd Mon Sep 17 00:00:00 2001 From: Marius Ciepluch <11855163+norandom@users.noreply.github.com> Date: Fri, 27 Nov 2026 10:05:00 +0100 Subject: [PATCH] docs(contributor-scan): the comment on the first-use build says what the wrapper does (item 5a) A comment in ops/shell/ousast.sh said the first-use build is silent. It is not: the wrapper prints one line to say why the run waits, and the build's own output then shows (the eighth session counted 74 lines of it from a warm cache). The maintainer chose to keep that output ("Keep output, fix comment", the menu of 2026-11-26): on a cold build it is the only sign that a long download is running. Only the comment changes, to say what the code does. No behaviour changed. The clause about a cold build is the decision's wording; no cold build was measured here. The only first-use capture is the eighth session's warm one, in which the build shows its running steps, not a byte count. `bash -n` passes, tests/test_shell_wrapper.py passes (3 tests), ruff, mypy, the three gates and compileall pass, and the gates print what they printed before. An independent reviewer approved the change in one round. --- ops/shell/ousast.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ops/shell/ousast.sh b/ops/shell/ousast.sh index 589bcebe..b90859f2 100644 --- a/ops/shell/ousast.sh +++ b/ops/shell/ousast.sh @@ -47,8 +47,8 @@ ousast() { return 1 fi - # Build once, silently, the first time. A first run that prints a wall of build output and then works is - # worse than one that pauses and explains itself. + # Build once, the first time. The run says why it waits, then the build's progress shows: on a cold build it + # is the only sign that a long download is running. if ! docker image inspect "openultrasast:${OUSAST_VERSION:-dev}" >/dev/null 2>&1; then echo "ousast: building the analysis image once (this pulls ~2 GB of engine; later runs are instant)" >&2 ( cd "$OUSAST_HOME" && docker compose build ) || return 1