Skip to content

Fixed build host setup failing when journal has no errors - #2509

Merged
larsewi merged 1 commit into
cfengine:masterfrom
larsewi:journalctl-grep-no-match
Sep 23, 2026
Merged

larsewi merged 1 commit into
cfengine:masterfrom
larsewi:journalctl-grep-no-match

Conversation

@larsewi

@larsewi larsewi commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

cleanup() in ci/setup-cfengine-build-host.sh runs under set -e. When the journal has no lines matching error|fail, the journalctl grep exits 1 and fails the build.

This broke testing-pr on legion7-redhat-8-x64-j1 in all nightlies on 2026-09-22, e.g. https://ci.cfengine.com/job/testing-pr/label=PACKAGES_x86_64_linux_redhat_8/3723/console

🤖 Generated with Claude Code

cleanup() runs under set -e, so the journalctl grep failed the build
when it found no matching lines.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi

larsewi commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

@cf-bottom Jenkins please :)

@cf-bottom

Copy link
Copy Markdown

@larsewi
larsewi merged commit da639a6 into cfengine:master Sep 23, 2026
4 of 6 checks passed
@larsewi
larsewi deleted the journalctl-grep-no-match branch September 23, 2026 11:45
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.

3 participants