Make managed PHP-FPM log repair tests portable under service umask 002 and keep rotation idempotent - #637
Merged
Conversation
chubes4
marked this pull request as ready for review
September 27, 2026 15:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improve PHP-FPM logrotate idempotence and make the regression fixture umask-safe.
What changed
How to test
umask 002 && bash tests/systems-capabilities.sh; expect passes as recorded by Cook's deterministic gate.umask 022 && bash tests/systems-capabilities.sh; expect passes as recorded by Cook's deterministic gate.bash tests/source-mode.sh; expect passes as recorded by Cook's deterministic gate.Compatibility
Low risk. Runtime behavior changes only by avoiding redundant rewrites of already-correct package rules; fixture assertions are more portable across umasks.
Evidence
umask 002 && bash tests/systems-capabilities.sh: status=succeeded; candidate commitbe20f4b60ff6c5eaba87b0fa720c280b4e59465e, tree312c7a276f5af59994e48d6561534fb4c20dfd91, fingerprintfa26182a382f03f0497d6efc7dfa68471576344a462769d511533cbfe6c552e5; durable gategate-1umask 022 && bash tests/systems-capabilities.sh: status=succeeded; candidate commitbe20f4b60ff6c5eaba87b0fa720c280b4e59465e, tree312c7a276f5af59994e48d6561534fb4c20dfd91, fingerprintfa26182a382f03f0497d6efc7dfa68471576344a462769d511533cbfe6c552e5; durable gategate-2bash tests/source-mode.sh: status=succeeded; candidate commitbe20f4b60ff6c5eaba87b0fa720c280b4e59465e, tree312c7a276f5af59994e48d6561534fb4c20dfd91, fingerprintfa26182a382f03f0497d6efc7dfa68471576344a462769d511533cbfe6c552e5; durable gategate-3AI assistance