Commit 86fe71b
fix(onboard): suppress docker manifest/build noise during gateway setup (#3311)
## Summary
During `nemoclaw onboard` step [2/8], the `docker manifest inspect` JSON
output and the BuildKit build log (apt-get output, layer hashes, debconf
warnings) are forwarded to the user's terminal alongside the curated
progress lines we already log ("Pulling upstream cluster image…",
"Building patched cluster image…"). This PR keeps the curated lines as
the user-facing signal and routes the raw command output to
internal-only handling.
## Related Issue
Closes #3248
## Changes
- Add `suppressOutput?: boolean` to the `RunOpts` interface in
[src/lib/cluster-image-patch.ts](src/lib/cluster-image-patch.ts) and
plumb it through `defaultRun` so callers can opt into dropping captured
stdio instead of forwarding it to the user.
- Pass `suppressOutput: true` on the `docker manifest inspect`
reachability probe.
- Pass `--quiet` and `suppressOutput: true` on the `docker build`
invocation so BuildKit no longer streams its full log to the user.
- Add a unit test in
[src/lib/cluster-image-patch.test.ts](src/lib/cluster-image-patch.test.ts)
asserting both call sites carry `suppressOutput: true` and that build
now includes `--quiet`.
## Type of Change
- [x] Code change (feature, bug fix, or refactor)
- [ ] Code change with doc updates
- [ ] Doc only (prose changes, no code sample modifications)
- [ ] Doc only (includes code sample changes)
## Verification
- [x] `npx prek run --all-files` passes
- [x] `npm test` passes
- [x] Tests added or updated for new or changed behavior
- [x] No secrets, API keys, or credentials committed
- [ ] Docs updated for user-facing behavior changes
- [ ] `make docs` builds without warnings (doc changes only)
- [ ] Doc pages follow the [style
guide](https://github.com/NVIDIA/NemoClaw/blob/main/docs/CONTRIBUTING.md)
(doc changes only)
- [ ] New doc pages include SPDX header and frontmatter (new pages only)
---
Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Improvements**
* Reduced output verbosity from Docker operations by suppressing output
during manifest inspection and build steps.
* **Tests**
* Added test coverage for output suppression behavior in Docker
operations.
[](https://app.coderabbit.ai/change-stack/NVIDIA/NemoClaw/pull/3311)
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Signed-off-by: Tinson Lai <tinsonl@nvidia.com>
Co-authored-by: Carlos Villela <cvillela@nvidia.com>1 parent cf3fd66 commit 86fe71b
2 files changed
Lines changed: 47 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
334 | 370 | | |
335 | 371 | | |
336 | 372 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
260 | 267 | | |
261 | 268 | | |
262 | 269 | | |
| 270 | + | |
263 | 271 | | |
264 | 272 | | |
265 | 273 | | |
| |||
321 | 329 | | |
322 | 330 | | |
323 | 331 | | |
| 332 | + | |
324 | 333 | | |
325 | 334 | | |
326 | 335 | | |
327 | 336 | | |
328 | 337 | | |
329 | 338 | | |
330 | | - | |
| 339 | + | |
331 | 340 | | |
332 | 341 | | |
333 | 342 | | |
| |||
397 | 406 | | |
398 | 407 | | |
399 | 408 | | |
| 409 | + | |
400 | 410 | | |
401 | 411 | | |
402 | 412 | | |
| |||
0 commit comments