Skip to content

[#3220] Installed PCOV with PIE instead of PECL in the CLI image. - #3221

Merged
AlexSkrypnyk merged 2 commits into
mainfrom
feature/3220-pecl-to-pie
Oct 21, 2026
Merged

AlexSkrypnyk merged 2 commits into
mainfrom
feature/3220-pecl-to-pie

Conversation

@AlexSkrypnyk

@AlexSkrypnyk AlexSkrypnyk commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Closes #3220

Summary

.docker/cli.dockerfile now builds PCOV with pie install --no-build-tools-check pecl/pcov instead of pecl install pcov, using the PIE binary that the uselagoon/php-8.4-cli-drupal:26.9.0 base image already ships at /usr/local/bin/pie. PIE enables the extension itself through docker-php-ext-enable and then checks that php actually loads it, so the separate docker-php-ext-enable pcov call is gone.

pecl install pcov was the template's only PECL call, while the base image had already moved on: Lagoon builds apcu, brotli, imagick, phpredis, xdebug and yaml with pie install, and PIE is the PHP Foundation's replacement for PECL. PCOV is published for PIE as pecl/pcov on Packagist, built from krakjoe/pcov. The flag is there because PIE runs a generic build-tools check before every install, and with the autoconf g++ make set this step installs, it reports libtoolize/glibtoolize as missing on every cold build and suggests apk add --no-cache --virtual .php-pie-deps libtool, even though PCOV doesn't need it.

After merge, the CLI image still carries PCOV 1.0.12, enabled through conf.d/docker-php-ext-pcov.ini as before, and pie show lists it next to Lagoon's own extensions. The version stays unpinned, just as pecl install pcov was. The apk package list, docker-php-ext-install pcntl and the other images don't change, and the build demo video under .vortex/docs/static/img/ keeps showing the old step until the release checklist re-records it.

Before / After

BEFORE

  RUN apk add ... autoconf g++ make
        │
        ▼
  pecl install pcov
        │   pecl.php.net tarball, phpize, make, install
        ▼
  docker-php-ext-enable pcov ──► conf.d/docker-php-ext-pcov.ini
        │
        ▼
  docker-php-ext-install pcntl
        │
        ▼
  apk del g++ make autoconf
AFTER

  RUN apk add ... autoconf g++ make
        │
        ▼
  pie install --no-build-tools-check pecl/pcov
        │   pie = /usr/local/bin/pie from the Lagoon base image (PIE 1.5.0 in 26.9.0)
        │   Packagist pecl/pcov ──► krakjoe/pcov zipball, phpize, make, install
        │   docker-php-ext-enable pcov ──► conf.d/docker-php-ext-pcov.ini
        │   asserts pcov loads in /usr/local/bin/php
        ▼
  docker-php-ext-install pcntl
        │
        ▼
  apk del g++ make autoconf

Changes

CLI image

  • .docker/cli.dockerfile: pecl install pcov and docker-php-ext-enable pcov become a single pie install --no-build-tools-check pecl/pcov. The step still installs and removes its own toolchain, so a missing tool fails the build when PCOV compiles, exactly as it did with PECL.

Installer fixtures

  • _baseline/.docker/cli.dockerfile is regenerated.
  • 7 scenario deltas with a hunk below this step (theme_claro, theme_olivero, theme_stark, tools_groups_no_fe_lint_no_theme, tools_groups_no_fe_lint_no_theme_circleci, tools_no_eslint_no_theme, tools_no_stylelint_no_theme) only move their hunk header up by 1 line.

Verification

  • Built the committed step on uselagoon/php-8.4-cli-drupal:26.9.0 with the CLI image's COMPOSER_* and PHP_INI_SCAN_DIR environment: pie -V reports 1.5.0, php -m lists pcov and pcntl, php --ri pcov reports PCOV support => Enabled with version 1.0.12, and pie show lists pcov:1.0.12 (from pecl/pcov:v1.0.12).
  • --no-build-tools-check exists in PIE 1.4.0 and 1.5.0, and Lagoon's images moved to PIE 1.4.0 in April 2026.
  • CI's PHPUnit coverage run is the end-to-end check: phpunit.xml sets failOnWarning="true" and PostBuildTest asserts that the coverage reports exist, so an image without PCOV loaded fails CI.

Summary by CodeRabbit

  • Chores
    • Updated the CLI image’s PCOV installation process while preserving existing package installation and cleanup behavior.

@AlexSkrypnyk AlexSkrypnyk added this to the 1.42.0 milestone Oct 21, 2026
@github-project-automation github-project-automation Bot moved this to BACKLOG in Vortex 1.x Oct 21, 2026
@AlexSkrypnyk AlexSkrypnyk added the A2 Working clone index A2 label Oct 21, 2026
@coderabbitai

coderabbitai Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: ASSERTIVE
  • Plan: Team
  • Run ID: 6978d8af-d812-47e2-b815-ddf0ac77e8c0
📥 Commits

Reviewing files that changed from the base of the PR and between b3af19a and ce120ad.

⛔ Files ignored due to path filters: 8
  • .vortex/installer/tests/Fixtures/handler_process/_baseline/.docker/cli.dockerfile is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/theme_claro/.docker/cli.dockerfile is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/theme_olivero/.docker/cli.dockerfile is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/theme_stark/.docker/cli.dockerfile is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_groups_no_fe_lint_no_theme/.docker/cli.dockerfile is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_groups_no_fe_lint_no_theme_circleci/.docker/cli.dockerfile is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_no_eslint_no_theme/.docker/cli.dockerfile is excluded by !.vortex/installer/tests/Fixtures/**
  • .vortex/installer/tests/Fixtures/handler_process/tools_no_stylelint_no_theme/.docker/cli.dockerfile is excluded by !.vortex/installer/tests/Fixtures/**
📒 Files selected for processing: 1
  • .docker/cli.dockerfile

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.

Walkthrough

The CLI Dockerfile now installs pecl/pcov with pie install --no-build-tools-check. The PCNTL installation and build-tool cleanup steps remain unchanged.

Changes

CLI PCOV installation

Layer / File(s) Summary
Install PCOV with PIE
.docker/cli.dockerfile
The Dockerfile replaces pecl install pcov and docker-php-ext-enable pcov with pie install --no-build-tools-check pecl/pcov. PCNTL installation and build-tool cleanup remain unchanged.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to ce120

No actionable issue is established with the CLI image change; it is mergeable after normal build and coverage checks.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: installing PCOV with PIE instead of PECL in the CLI image.
Linked Issues check Passed Issue #3220 requests a switch from PECL to PIE. The PR changes .docker/cli.dockerfile from pecl install pcov plus docker-php-ext-enable pcov to pie install --no-build-tools-check pecl/pcov. Th…
Out of Scope Changes check Passed The reported change is limited to the PCOV installation command in .docker/cli.dockerfile and related regenerated installer fixtures. The package list, pcntl installation, and other images remain …
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Full details: Linked Issues check

Explanation

Issue #3220 requests a switch from PECL to PIE. The PR changes .docker/cli.dockerfile from pecl install pcov plus docker-php-ext-enable pcov to pie install --no-build-tools-check pecl/pcov. The reported verification checks PIE, PCOV loading, and the existing PHPUnit coverage path. The issue has no additional coding or test requirements.

Full details: Out of Scope Changes check

Explanation

The reported change is limited to the PCOV installation command in .docker/cli.dockerfile and related regenerated installer fixtures. The package list, pcntl installation, and other images remain unchanged. The fixture files are excluded from review, but the available pull request summary connects their regeneration to the Dockerfile change. No unrelated change is established.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

A rabbit hops beside the build,
As PIE installs PCOV with care.
The tools are cleaned, the steps stay still,
A quiet change flows through the air.
One carrot waits beside the shell.

Comment @coderabbitai help to get the list of available commands.

@github-actions

This comment has been minimized.

@AlexSkrypnyk

This comment has been minimized.

@github-actions

This comment has been minimized.

@AlexSkrypnyk

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Code coverage (threshold: 90%)

  Classes: 100.00% (1/1)
  Methods: 100.00% (2/2)
  Lines:   100.00% (233/233)
Per-class coverage
Drupal\ys_demo\Plugin\Block\CounterBlock
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 10/ 10)

@AlexSkrypnyk

Copy link
Copy Markdown
Member Author

Code coverage (threshold: 90%)

  Classes: 100.00% (1/1)
  Methods: 100.00% (2/2)
  Lines:   100.00% (233/233)
Per-class coverage
Drupal\ys_demo\Plugin\Block\CounterBlock
  Methods: 100.00% ( 2/ 2)   Lines: 100.00% ( 10/ 10)

@codecov

codecov Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.09%. Comparing base (b3af19a) to head (ce120ad).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3221      +/-   ##
==========================================
- Coverage   92.29%   92.09%   -0.20%     
==========================================
  Files         113      105       -8     
  Lines        5099     4933     -166     
  Branches       49        3      -46     
==========================================
- Hits         4706     4543     -163     
+ Misses        393      390       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown

📖 Documentation preview for this pull request has been deployed to Netlify:

https://6ad8428e87e973c3a9df9fb9--vortex-docs.netlify.app

This preview is rebuilt on every commit and is not the production documentation site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A2 Working clone index A2 Needs review Pull request needs a review from assigned developers

Projects

Status: Released in 1.42.0

Development

Successfully merging this pull request may close these issues.

Switch from PECL to PIE

1 participant