Skip to content

ENT-12619: Reduce dpkg install noise with run_and_print_on_failure#2114

Open
larsewi wants to merge 1 commit intocfengine:masterfrom
larsewi:reduce-dpkg-install-noise
Open

ENT-12619: Reduce dpkg install noise with run_and_print_on_failure#2114
larsewi wants to merge 1 commit intocfengine:masterfrom
larsewi:reduce-dpkg-install-noise

Conversation

@larsewi
Copy link
Contributor

@larsewi larsewi commented Feb 12, 2026

Summary

  • Wrapped dpkg -i in pkg-install-deb with run_and_print_on_failure so verbose installation output is only shown on failure
  • Removed -x from shebang to suppress shell trace output
  • Each package install produces ~8 lines of verbose output; for a hub build with ~20 dependencies this eliminates ~160 lines of noise

Ticket: ENT-12619

🤖 Generated with Claude Code

Build Status

Each dpkg -i call produces ~8 lines of verbose output per package
(Selecting, Reading database, Preparing, Unpacking, Setting up). For a
hub build with ~20 dependencies this adds ~160 lines of noise to the
Jenkins logs. Wrap the dpkg call with run_and_print_on_failure so output
is only shown when installation fails. Also remove -x from shebang to
suppress shell trace output.

Ticket: ENT-12619
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@larsewi larsewi force-pushed the reduce-dpkg-install-noise branch from f681ce3 to 0c15173 Compare February 12, 2026 10:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants