Skip to content

ci: fail workflow on FATAL/ERROR/WARNING in Cacti log - #821

Merged
TheWitness merged 2 commits into
developfrom
ci/check-log-for-issues
Sep 19, 2026
Merged

TheWitness merged 2 commits into
developfrom
ci/check-log-for-issues

Conversation

@TheWitness

Copy link
Copy Markdown
Member

Adds a new step after View Cacti Logs that greps the full cacti.log for the strings FATAL:, ERROR:, WARNING: and fails the job if any are found.

Copilot AI lite review requested due to automatic review settings September 15, 2026 12:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The log check must reliably handle permissions and read errors.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds a CI step to scan cacti.log for FATAL:, ERROR:, and WARNING: entries and fail the workflow when found.

Changes:

  • Adds post-log-display severity checking.
  • Runs the check even after prior failures.
  • Moderate finding (3 votes): unreadable root-owned logs may silently bypass the check; use sudo and handle grep errors explicitly.
File summaries
File Summary
.github/workflows/plugin-ci-workflow.yml Adds Cacti log severity detection.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/plugin-ci-workflow.yml
xmacan
xmacan previously approved these changes Sep 15, 2026
bmfmancini
bmfmancini previously approved these changes Sep 15, 2026

@bmfmancini bmfmancini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@TheWitness
TheWitness dismissed stale reviews from bmfmancini and xmacan via 5d00ee4 September 19, 2026 15:35
@TheWitness
TheWitness merged commit 1ca59f3 into develop Sep 19, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants