Repository navigation
chore: absorb servers into packages/servers - #13921
Conversation
Update package name in README.md
fix: wrong container
chore: use validators
chore: fix validators
bump utopia-php/validators ver
- Drop the 17 per-package mirror CI workflows: they were inert in the monorepo and only re-tested, on the mirror, code the monorepo's own matrix already gated pre-merge. absorb now strips all incoming workflows and writes only mirror.yml; the ratchet lint over packages/* (no uses: left to pin) goes too. - Make absorb's mirror ruleset idempotent: update whatever branch ruleset already exists in place instead of skipping on a name clash (the gap that left auth's mirror without the split-app bypass). - Remove the standalone `import` command — unused, and it left a package without mirror.yml/banner/ruleset. import_package() stays as absorb's helper. - Trim absorbing.md/creating.md/README to match. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Hoist PHPStan level 5 to the monorepo root
build: hoist baseline rector + phpstan configs to the root
Reuse mirror redirect workflow
chore: widen utopia-php/validators to 0.3.*
docs: enforce documentation style with Vale
docs: centralize CODE_OF_CONDUCT and CONTRIBUTING at the monorepo root
Allow validators 0.4 in dependent packages
Allow validators 0.5 in dependent packages
chore: require validators 0.6
…console-http-queue chore: move servers, console, http and queue onto validators ^1.0
chore: stop committing package lock files
# Conflicts: # composer.lock
|
| $params = $this->hook->getParams(); | ||
| $this->assertSame(['project', 'project_id'], $params['projectId']['aliases']); |
There was a problem hiding this comment.
Tests mirror parameter storage
These assertions check the nested aliases field returned by getParams(), not whether an alias works when a hook is prepared. The repository requires tests of observable behavior rather than assertions that mirror source-code structures. Please test alias resolution through Base::prepare() before merging. The enum and injection tests use the same implementation-coupled approach.
Context Used: Call out and harshly judge implementation-coupled tests. We don't mirror source code, configuration, or version pins in assertions. We test observable behavior; use linters for syntax and schema checks. (source)
Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/servers/tests/HookTest.php
Line: 80-81
Comment:
**Tests mirror parameter storage**
These assertions check the nested `aliases` field returned by `getParams()`, not whether an alias works when a hook is prepared. The repository requires tests of observable behavior rather than assertions that mirror source-code structures. Please test alias resolution through `Base::prepare()` before merging. The enum and injection tests use the same implementation-coupled approach.
**Context Used:** Call out and harshly judge implementation-coupled tests. We don't mirror source code, configuration, or version pins in assertions. We test observable behavior; use linters for syntax and schema checks. ([source](https://app.greptile.com/review/custom-context?memory=instruction-0))
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
|
|
||
| ## System requirements | ||
|
|
||
| Utopia Servers requires PHP 8.2 or later. We recommend using the latest PHP version whenever possible. |
There was a problem hiding this comment.
Documented requirements contradict Composer
The README says this package supports PHP 8.2 and is dependency-free, but packages/servers/composer.json requires PHP 8.5, utopia-php/di, and utopia-php/validators. A reader on PHP 8.2–8.4 who follows these requirements cannot install the package. Please align both claims with the manifest.
Prompt To Fix With AI
This is a comment left during a code review.
Path: packages/servers/README.md
Line: 33
Comment:
**Documented requirements contradict Composer**
The README says this package supports PHP 8.2 and is dependency-free, but `packages/servers/composer.json` requires PHP 8.5, `utopia-php/di`, and `utopia-php/validators`. A reader on PHP 8.2–8.4 who follows these requirements cannot install the package. Please align both claims with the manifest.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.# Conflicts: # rfc/monorepo.md
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
Summary
Moves
utopia-php/serversintopackages/serversso Appwrite loads it directly. Wave 2 of #13828, following the playbook inrfc/monorepo.md.Add 'packages/servers/' from commit '060da7b3…'0.4.11tag Appwrite already locks, and its tree matchespackages/serversinutopia-php/monorepo, so no version gapchore(servers): mirror plumbingmirror.ymlnow calls this repository'smirror-redirect.yml; README banner points here. No banned files to striprefactor: load servers from packages/replaceentries,utopia-php/serversdropped fromrequireand the lock, step A shape, standalonephpstan.neon/rector.php, baseline, RFC phase 8 linemaincomposer update --lockStep A
src/Servers/*→src/src/is byte-identical to0.4.11apart from the move and Pint formatting (empty{}bodies,fn (spacing)tests/Servers/Unit/HookTest.php→tests/HookTest.phpTests\Servers\Unit→Utopia\Servers\Tests, matchingautoload-devtests/Servers/servers/*(queue worker fixtures copied fromutopia-php/queue, referencingUtopia\Queue, never run and already excluded from PHPStan) andtests/Servers/Unit/Adapter/Base.php(empty// TODOtest under a mismatchedTests\Unit\Basenamespace, never collected)phpunit.xmltests,tests/E2Eexcluded)phpstan.neonsrc+tests(previously included the monorepo root at level 5)rector.phpClassPropertyAssignToConstructorPromotionRectorandReadOnlyPropertyRector. Rector makes no changesphpstan-baseline.neonsrc(unvaluedarraytypes inHook,mixedoffsets inBase::prepare()/validate()), 40 inHookTest(nullable?Hookfixture). Added to the RFC phase 8 listNothing to hoist: the package requires only
php,utopia-php/diandutopia-php/validators, both already inpackages/. Appwrite has no directUtopia\Serversuses; the still-vendoredcli,http,queueandplatformrequireutopia-php/servers, andreplacenow satisfies them.Validation
bin/monorepo validatebin/monorepo check serversbin/monorepo test serversvendor/bin/phpunit --testsuite packages --filter 'Utopia\\Servers'(inappwrite/appwrite:2.3.0)Utopia\Servers\Hookresolves topackages/servers/src/Hook.phpcomposer update --lockmaindrops onlyutopia-php/servers(plus content hash)composer validate --no-check-publishutopia-php/platformexact-constraint warning)bin/monorepo split servers --dry-run0bcfefd7, fast-forwards from mirror head060da7b3, tree identical topackages/serversgit diff --checkMerge and follow-up
Merge with a merge commit. A squash drops the
git-subtree-*annotation and orphans the package from its mirror.utopia-php/serversalready has the canonicalmainruleset (id17508351) with the split app (4016286) as an always-bypass actor, so the absorb ran with--skip-ruleset. There is no classic branch protection onmain.Splitutopia-php/serverspackages/serversfromutopia-php/monorepoutopia-php/monorepoPR touchespackages/servers🤖 Generated with Claude Code