Skip to content

ci: enable opcache (incl. shared memory) so OpCache/SHM tests actually run #124

Closed

Description

@lisachenko

Follow-up to the OpCache binary-file API (#111, merged).

The OpCache suite and the SHM matrix tests (tests/OpCache/*, tests/HotSwap/OpcacheSupportMatrixTest, tests/Reflection/ClassSpecializerShmTest) all markTestSkipped when Zend OPcache is not active. CI currently leaves opcache.enable_cli at its default in the parent process, so nothing gates that these tests actually executed — they can silently skip and CI stays green.

Scope: in .github/workflows/ci.yml, ensure the opcache extension is loaded and enabled (child processes already self-enable via -d, but the extension must be present), and add an assertion/step that fails if the OpCache/SHM tests skipped rather than ran (e.g. check for markTestSkipped in the run, or a dedicated job with opcache.enable_cli=1). Prevents silent coverage loss.

No ci label exists in this repo; flagging the CI nature here.

Activity

  1. added
    enhancementNew feature or request
    opcacheIssue is related to opcache integration. Either doesn't work well or behaves incorrect.
    CIBuild and Continuous Integration related tickets
    on Aug 5, 2026
  2. added a commit that references this issue on Aug 5, 2026
  3. lisachenko commented on Aug 19, 2026

    @lisachenko
    OwnerAuthor

    Closing as delivered. The scope described here is in place on 8.4 and master:

    • Every test leg installs extensions: ffi, opcache and a dedicated step asserts extension_loaded('Zend OPcache') in the runner, so a missing extension fails the job instead of letting the suite skip.
    • The no-silent-skip gates run in CI: composer test:opcache (phpunit --group opcache --fail-on-skipped) on NTS and composer test:opcache-zts (excluding opcache-relocator) on ZTS, on the Linux, macOS, and debug-build legs.

    Going further than this ticket asked, the opcache-support effort adds a Linux job running the full suite with opcache.enable_cli=1 in the runner process itself (not just child processes), with known-incompatible tests excluded via an issue-linked group — tracked in the opcache meta-epic.


    Generated by Claude Code

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIBuild and Continuous Integration related ticketsenhancementNew feature or requestopcacheIssue is related to opcache integration. Either doesn't work well or behaves incorrect.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions