Repository navigation
chore: absorb queue into packages/queue - #13931
Conversation
Feat coroutine and di
feat: add redis cluster adapter
Co-authored-by: Christy Jacob <[email protected]>
Inject workerId as resource, record received timestamp
feat: telemetry support
Revert 0.8.x changes
feat: add AMQP broker
feat(amqp): allow configuration of queue arguments
feat(amqp): allow configuration of connection and channel
fix(amqp): use channel callable, reconnect on error
✨ Benchmark resultsComparing
Per-scenario breakdown & investigation detailsMetrics below reflect the current branch (after). Δ P95 compares against the base.
Top API waits (after)
|
# Conflicts: # composer.lock
# Conflicts: # composer.json # composer.lock
# Conflicts: # composer.lock
# Conflicts: # composer.lock
# Conflicts: # composer.lock
# Conflicts: # composer.lock
# Conflicts: # composer.lock
🟢 Tier S · Ready to merge
Absorbs Latest changes: The newest commits exclude outdated runtimes from function templates, bump template providers to 1.2.0, add Node 22 to the default function runtime list, and record lowercased SDK display names plus Terraform integrations on API keys.
📂 Walkthrough · 8
Reviewed the commits since |
Summary
Moves
utopia-php/queueintopackages/queueso Appwrite loads it directly. Wave 3 of #13828, following the playbook inrfc/monorepo.md.Stacked on #13921 (
servers, whichqueuerequires). Merge after #13921, with a merge commit; GitHub retargets this PR tomainonce #13921 lands.Add 'packages/queue/' from commit '445087c3…'mainwith full historychore(queue): mirror plumbingmirror.ymlcalls this repository'smirror-redirect.yml; README banner points here. No banned files to striprefactor: load queue from packages/replace,utopia-php/queuedropped fromrequireand the lock, step A shape, standalonephpstan.neon/rector.php, baseline, RFC phase 8 line,validateaccepts Dockerfiles undertests/E2E/test(queue): skip NATS broker tests when utopia-php/nats is absent#[RequiresMethod]on the two unit tests that buildBroker\Nats, so the rootpackagessuite skips them (Appwrite does not installutopia-php/nats)Version gap
Appwrite locked
6.0.0(723f758f). The mirror head445087c3is6.1.0plus one unreleased merge (#354,releaseDelayfor NATS). All three commits touch onlyBroker/Nats.php, its e2e tests and the README. Appwrite does not use the NATS broker, so nothing changes at runtime.Step A
src/Queue/*→src/{}bodies expanded in 9 files)tests/Queue/Unit/*→tests/Tests\Unit→Utopia\Queue\Teststests/Queue/E2E/Adapter→tests/ConsumerResilience,KubernetesJobAdapter,Background,Locking,RedisReconnectCallback,ServerTelemetry,SwooleConcurrencyplusMemoryConsumer. Upstream already ran them in itsunitsuitetests/Queue/E2E/Adapter→tests/E2E/Utopia\Queue\Tests\E2Etests/Queue/servers→tests/E2E/serverse2e.sh,keda-*.sh, the KEDADockerfileand two testsphpunit.xmlunit=testsminusE2E/bench,e2e=tests/E2Ephpstan.neonsrc+tests(previously included the monorepo root at level 5)rector.phpClassPropertyAssignToConstructorPromotionRector,ReadOnlyPropertyRectorandtests/bench. No changesphpstan-baseline.neonsrc, 134 in tests. Added to the RFC phase 8 listbin/monorepo validatetests/E2E/are e2e fixtures (keda-lib.shbuilds the KEDA worker image from one); RFC rule 5 updated to matchNothing to hoist:
requireisphpplusdi lock pools servers telemetry validators, all inpackages/.require-dev(utopia-php/nats,workerman/workerman,swoole/ide-helper) stays package-local.Validation
bin/monorepo validatebin/monorepo check queuephpunit --testsuite unit,appwrite/appwrite:2.3.0)tests/e2e.shagainst the package compose, projectabsorb-queue, torn down)phpunit --testsuite packages --filter 'Utopia\\Queue'tests/unit/Platform/Workers,tests/unit/Event,tests/unit/Busapp/worker.php,src/Appwrite/Platform/Workers,src/Appwrite/Eventcomposer update --lockchore/absorb-serversdrops onlyutopia-php/queue(plus content hash)composer validate --no-check-publishutopia-php/platformexact-constraint warning)bin/monorepo split queue --dry-run70d17cfe, fast-forwards from mirror head445087c3(3 commits), tree identical topackages/queuegit diff --checkThe unit tier segfaults under macOS host Swoole (
BackgroundTest::testStartRequiresCoroutineRuntime) on the mirror's own checkout too, so it was run in the Linux image.Merge and follow-up
Merge with a merge commit after #13921. A squash drops the
git-subtree-*annotation and orphans the package from its mirror.utopia-php/queuealready has the canonicalmainruleset (id17500068) with the split app (4016286) as an always-bypass actor, so the absorb ran with--skip-ruleset. The mirror also has classic branch protection onmain(1 required approval, split app in the PR-review bypass list). Left as is.Splitutopia-php/queuepackages/queuefromutopia-php/monorepopackages/queue: re-open here or close🤖 Generated with Claude Code