Skip to content

Absorb compression into packages/compression #13797

Closed

Description

@loks0n

Integrate utopia-php/compression as the next leaf package in the Appwrite monorepo. It requires only PHP, preserves its public namespace, and has an existing unit suite. Import mirror history, standardize layout, remove duplicated QA and the Composer dependency, and validate package checks and tests. Reference: rfc/monorepo.md. Existing mirror PR utopia-php/compression#5 concerns formatting/CI now owned by the root.

Activity

  1. self-assigned this
    on Sep 21, 2026
  2. added
    product / vcs
    on Sep 21, 2026
  3. loks0n commented on Sep 21, 2026

    @loks0n
    MemberAuthor

    Summary

    Absorb utopia-php/compression into packages/compression, so Appwrite loads it directly and library changes can land alongside their callers. It is a leaf package requiring only PHP; optional compression extensions remain suggested dependencies.

    • Import full mirror history from 8a23fdec63623aa6ad64ed764d688e67cf2c110e, flatten source/tests, and point the mirror workflow and README here.
    • Replace the Composer dependency with root autoload/replace entries. The lockfile removes only compression; no other versions change.
    • Preserve runtime behavior. Carry 16 pre-existing maximum-level PHPStan findings in a baseline, recorded for follow-up in the RFC.
    • Remove empty teardown methods and approximately 33 MiB of unused test fixtures.

    Validation

    • bin/monorepo validate
    • bin/monorepo check compression (Pint and maximum-level PHPStan with baseline)
    • bin/monorepo test compression: 30 tests, 88 assertions; all optional compression extensions present, no skips
    • Same 30 tests / 88 assertions using the root autoloader
    • composer validate --no-check-publish (existing exact-version warnings only)
    • bin/monorepo split compression --dry-run: b920ca6c3fd10c00515f1fccddf2c71c92eddab8
    • git diff --check

    Full Appwrite CI remains pending; no Appwrite E2E stack was run locally.

    Merge and mirror

    Merge with a merge commit, not squash, to preserve the subtree ancestry. After merge, verify the compression Split workflow. The mirror already has an active ruleset with split-app bypass, so no ruleset mutation was needed. Existing mirror PR utopia-php/compression#5 concerns formatting/CI now owned by the root and should be closed as superseded after this lands.

    Implementation: #13798 (draft, assigned to @loks0n).

  4. loks0n commented on Sep 21, 2026

    @loks0n
    MemberAuthor

    Post-merge verification: #13798 merged at 9500bdc. The new-home Split run is still in progress: https://github.com/appwrite/appwrite/actions/runs/35601052974. The old utopia-php/monorepo still contains packages/compression and its active Split workflow publishes all packages on main pushes. Follow-up after successful Appwrite split: remove packages/compression from the old monorepo and refresh its dependency graph/docs so only Appwrite publishes the mirror. Keep remaining consumers on their Packagist constraints and retain the standalone utopia-php/compression mirror and release tags. Old splitter uses normal pushes by default, so divergent old-home changes would fail rather than silently overwrite the new mirror.

  5. loks0n commented on Sep 21, 2026

    @loks0n
    MemberAuthor

    Appwrite Split succeeded and the compression mirror now serves the new layout. Cleanup PR removing the old source and its discovery by the old splitter: utopia-php/monorepo#311. Assigned to @loks0n; monorepo validation, README Vale lint, and diff checks pass. HTTP retains its Packagist dependency.

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

Metadata

Metadata

Assignees

Labels

product / vcs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions