Skip to content

ENT-12619: Filter known-benign warnings in run_and_print_on_failure#2112

Merged
larsewi merged 1 commit intocfengine:masterfrom
larsewi:filter-known-benign-warnings
Feb 13, 2026
Merged

ENT-12619: Filter known-benign warnings in run_and_print_on_failure#2112
larsewi merged 1 commit intocfengine:masterfrom
larsewi:filter-known-benign-warnings

Conversation

@larsewi
Copy link
Contributor

@larsewi larsewi commented Feb 12, 2026

Summary

  • run_and_print_on_failure suppresses command output on success but shows lines matching Warning/Error with context
  • This caused ~350 lines of known-benign output per build:
    • Automake subdir-objects warnings (~300 lines) - harmless forward-compatibility notices
    • Libtool install warnings (~50 lines) - normal when using DESTDIR
  • Added a filter to exclude these known-benign patterns before printing

Ticket: ENT-12619

🤖 Generated with Claude Code

Build Status

The function already suppresses command output on success but shows
lines matching Warning/Error. This caused ~350 lines of known-benign
output per build from automake subdir-objects warnings and libtool
install warnings. Filter these out so only actionable warnings are
shown.

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 merged commit fca2325 into cfengine:master Feb 13, 2026
34 checks passed
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