fix(release): add missing PHP extensions - #321
Conversation
✅ Action performedReview finished.
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe PHP recipe now includes ChangesPHP extension recipe and metadata
Build and validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Recipe
participant StaticPHP
participant SmokeChecks
Recipe->>StaticPHP: Request ftp, gd, and rar
StaticPHP->>SmokeChecks: Provide PHP and FrankenPHP artifacts
SmokeChecks->>SmokeChecks: Validate default capabilities
SmokeChecks->>SmokeChecks: Validate optional extensions
Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@release/artifacts/recipes/php/LICENSE`:
- Around line 77-82: The UnRAR licensing and attribution details are missing
from the PHP artifacts. In release/artifacts/recipes/php/LICENSE lines 77-82,
add the complete UnRAR license text; in release/artifacts/recipes/php/NOTICE
lines 16-18, add the UnRAR attribution and restrictions against creating a
RAR-compatible archiver or re-creating RAR compression; in
crates/pv-release/tests/smoke.rs lines 888-895, assert both generated PHP and
FrankenPHP NOTICE files contain the attribution and restriction.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: dc65998d-d4a6-4d15-bfb9-072e0a4a83cb
⛔ Files ignored due to path filters (3)
crates/pv-release/tests/snapshots/recipe_fixtures__recipe_fixture_generation_validates_archives_records_and_manifest.snapis excluded by!**/*.snapcrates/pv-release/tests/snapshots/recipe_metadata__print_recipe_env_frankenphp.snapis excluded by!**/*.snapcrates/pv-release/tests/snapshots/recipe_metadata__print_recipe_env_php.snapis excluded by!**/*.snap
📒 Files selected for processing (11)
DESIGN.mdcrates/pv-release/src/recipe.rscrates/pv-release/tests/recipe_fixtures.rscrates/pv-release/tests/recipe_metadata.rscrates/pv-release/tests/smoke.rsdocs/adr/0014-project-level-php-extension-opt-ins.mdrelease/artifacts/recipes/php/LICENSErelease/artifacts/recipes/php/NOTICErelease/artifacts/recipes/php/build.shrelease/artifacts/recipes/php/smoke.shrelease/artifacts/recipes/php/tracks.toml
|
Addressed the UnRAR licensing feedback in commit Task list (5/5 completed)
|

Summary
ftpandgdto the default PHP/FrankenPHP extension contract, with FreeType, JPEG, AVIF, and WebP supportraras an optional shared module and include its legal noticeRarArchiveloadingpv5topv6and update release fixtures/snapshotsVerification
cargo fmt --all -- --checkshellcheck release/artifacts/recipes/php/build.sh release/artifacts/recipes/php/smoke.shcargo test -p pv-release --test smoke php_ --lockedcargo test -p pv-release --test recipe_metadata --test recipe_fixtures --lockedcargo clippy -p pv-release --all-targets --all-features --locked -- -D warnings.snap.newor.snap.tmpfiles remainKnown unrelated blockers
cargo test --workspace --lockedstop becausecrates/daemon/tests/supervisor_foundation.rsimports undeclared craterustixpv-releasesmoke target has an unrelated MySQL 8.0 fixture failure:bzip2: (stdin) is not a bzip2 filecargo insta pending-snapshots --workspacewas unavailable becausecargo-instais not installed; the snapshot-producing tests passRelease follow-up
After merge, run
Artifact Recipesfrommainwithresource=php,track=all, andplatform=all(the current Apple Silicon preview matrix), then publish that successful source run withrequired_native_platforms=darwin-arm64and verify both PHP and FrankenPHP tracks resolve topv6. Intel remains diagnostic-only until its existing StaticPHP linker blocker is resolved.Closes #320
GPT Sol| 𝕏Summary by CodeRabbit