Skip to content

Fix PHP integration dependency installation - #327

Open
somethingwithproof wants to merge 4 commits into
Cacti:developfrom
somethingwithproof:ci/fix-php-integration-dependencies
Open

Fix PHP integration dependency installation#327
somethingwithproof wants to merge 4 commits into
Cacti:developfrom
somethingwithproof:ci/fix-php-integration-dependencies

Conversation

@somethingwithproof

Copy link
Copy Markdown
Member

Summary

Remove the Ubuntu-versioned Apache PHP module from the integration-test dependencies. PHP is provided by shivammathur/setup-php, and the workflow executes Cacti through the CLI.

Ubuntu latest no longer supplies libapache2-mod-php8.1 or libapache2-mod-php8.2, which caused the corresponding matrix jobs to fail before tests ran.

Validation

  • git diff --check
  • Workflow syntax checked with Actionlint (only pre-existing shell warnings remain)

Copilot AI review requested due to automatic review settings July 14, 2026 05:20

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.

Pull request overview

This pull request updates the GitHub Actions integration-test workflow to avoid installing an Ubuntu-version-specific Apache PHP module package that is no longer available on ubuntu-latest. The workflow already provisions PHP via shivammathur/setup-php and runs Cacti installation and operations via CLI, so removing the Apache module prevents matrix jobs from failing during dependency installation.

Changes:

  • Removed libapache2-mod-php${{ matrix.php }} from the apt-get system dependencies list.
  • Kept the remaining system packages (apache2, snmp tooling, rrdtool, fping) unchanged.

Three defects, all failing open or failing at setup:

- the plugin syntax check redirected find's own output rather than php's, so
  PHP errors never reached the grep testing for them; the step could not fail
- MYSQL_AUTH_USR carried a literal tilde, because parameter expansion happens
  after tilde expansion, so MySQL was handed a path it could not resolve
- the Cacti checkout took the default branch, which is 1.3 in development and
  whose CLI installer currently fatals with an undefined __()

plugin_syslog additionally installed libapache2-mod-php${{ matrix.php }},
which Ubuntu does not package, so apt exited 100 before Cacti was reached.

Verified with actionlint, which is clean on the result.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
# Conflicts:
#	.github/workflows/plugin-ci-workflow.yml
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.

2 participants