ENT-12619: Reduce dpkg install noise with run_and_print_on_failure#2114
Open
larsewi wants to merge 1 commit intocfengine:masterfrom
Open
ENT-12619: Reduce dpkg install noise with run_and_print_on_failure#2114larsewi wants to merge 1 commit intocfengine:masterfrom
larsewi wants to merge 1 commit intocfengine:masterfrom
Conversation
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>
f681ce3 to
0c15173
Compare
craigcomstock
approved these changes
Feb 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
dpkg -iinpkg-install-debwithrun_and_print_on_failureso verbose installation output is only shown on failure-xfrom shebang to suppress shell trace outputTicket: ENT-12619
🤖 Generated with Claude Code