mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-12-03 02:08:18 +00:00
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.
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user