Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #236898

Category rsyslog
Changed by Rainer Gerhards <rgerhardsohnoyoudont@adiscon.com>
Changed at Tue 17 Jun 2025 13:14:31
Repository https://github.com/rsyslog/rsyslog.git
Project rsyslog
Branch master
Revision 6c9ae54ed035086a26dd467f5ed8f6c6bb98b2ad

Comments

CI: Optimize compile check for doc-only changes
Enhances the 'compile check' GitHub Actions workflow to intelligently
skip resource-intensive compilation when Pull Requests (PRs) only
involve documentation or other non-source code modifications.

This optimization improves CI efficiency and reduces build times for
documentation-only changes, while still enforcing full compilation for
actual code modifications.

Key changes include:
- **Removed `paths-ignore`**: The workflow now always triggers, allowing for granular job control.
- **Introduced `determine_changes_type` job**: This job uses `tj-actions/changed-files` to accurately detect if a PR consists solely of ignored files (e.g., `ChangeLog`, `*.md`, `*.txt`, `doc/**`).
- **Conditional `doc_only_success_check` job**: A lightweight job that runs and passes quickly when only documentation changes are present, satisfying branch protection requirements.
- **Conditional `run` job**: The main compilation job now only executes if actual source code changes are detected, preventing unnecessary builds.

This ensures that all required status checks for branch protection are met,
whether the PR touches code or just documentation.

Changed files