Skip to content

php: use pkg.installed so a highstate does not upgrade PHP under fpm - #35

Open
claude[bot] wants to merge 1 commit into
mainfrom
claude/php-pkg-installed
Open

claude[bot] wants to merge 1 commit into
mainfrom
claude/php-pkg-installed

Conversation

@claude

@claude claude Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Requested by Thomas · Slack thread

What

salt/php/init.sls: install_php goes back from pkg.latest to pkg.installed. pkg.latest came in with d165bc9.

Why

On 2026-11-22 at 14:54Z, salt '*' state.apply ran to roll out 563718d, which only changes the Grafana SLO pillar. Because install_php uses pkg.latest, that run also upgraded PHP packages underneath php-fpm and the jobrunner:

  • aptpkg scopes ran at 14:54:18–22 and php8.4-fpm stopped and started 14 times, fleet-wide.
  • For 20 s (14:54:24–44), PHP had no Redis extension, which raised MEDIAWIKI-D96 ("RedisConnectionPool requires a Redis client library") 147 times. That was 134 on task-us-east-011 and 13 web 500s on mw-us-east-011/012/021/022.
  • haproxy recorded 14 more wiki 502s while the fpm socket was gone.

This is the same failure as 11-19 14:23Z. That time it stalled the job queue for 3 h 17 min. This time the queue kept running (queue.process 238 in the 14:50 5-min bucket) because 7aff656 now pins /usr/bin/php.

The hosts are already on sury 8.4.28 (runtime tag is unchanged before and after), so pkg.installed keeps them where they are. Upgrades still go through an explicit salt '*' pkg.upgrade, so they happen when you choose and not as a side effect of unrelated pillar changes.

Not changed

php-luasandbox is still unversioned in pillar/php/init.sls, and the jobrunner unit still has no watch on install_php.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UBs8KmDmbycFxNzPsuksKD

A routine highstate (563718d, Grafana SLO pillar only) upgraded PHP
extension packages under running php-fpm and the jobrunner, raising
MEDIAWIKI-D96 on every app server for ~20 s. Upgrades stay available
via an explicit pkg.upgrade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UBs8KmDmbycFxNzPsuksKD
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 8d2b1e43-01b3-4678-95f8-8ffc02ac96bf

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

1 participant