Skip to content

chore(platform): allow queue 6 alongside 5 - #324

Merged
levivannoort merged 2 commits into
mainfrom
chore/platform-allow-queue-6
Sep 23, 2026
Merged

levivannoort merged 2 commits into
mainfrom
chore/platform-allow-queue-6

Conversation

@levivannoort

Copy link
Copy Markdown
Contributor

utopia-php/queue 6.0.0 is released, and nothing can take it: utopia-php/platform rc24 pins utopia-php/queue: ^5.0.0, and both Appwrite and Cloud sit behind platform. Composer says so directly:

utopia-php/platform 1.0.0-rc24 requires utopia-php/queue ^5.0.0
  -> found utopia-php/queue[5.0.1, 5.0.2] but it conflicts with your
     root composer.json require (^6.0.0).

This is the same gate the queue 4.0.0 notes called out at the time — "the currently pinned utopia-php/platform 1.0.0-rc21 does not allow queue 4.x; its dependency constraint also needs updating."

Why a constraint and not a port

Platform does not touch anything 6.0.0 changed. grep -rn "Utopia\\\\Queue" packages/platform/src is two lines — Adapter\Swoole and Server — and its one test double implements Consumer, which is unchanged. The additions in 6.0.0 are on Publisher\Synchronous, which platform neither implements nor calls.

Why both lines

^5.0.0 || ^6.0.0 rather than a straight bump, so consumers move one at a time. Appwrite and Cloud are both pinned to rc24 today; with this they can take queue 6 when each is ready, instead of the whole chain having to move in one commit.

After this merges

Cut platform/1.0.0-rc25, then the two consumer bumps can be locked and opened:

  • cloud — ^5.0.2 → ^6.0.0, plus getFailedCount() on 9 test doubles
  • appwrite/appwrite — ^5.0.1 → ^6.0.0, plus getFailedCount() on MockPublisher

Both branches are prepared; they are waiting on this and the rc25 tag, because composer update refuses to write a lock until platform allows the version.

queue 6.0.0 adds getFailedCount() to Publisher\Synchronous and changes what a
terminal verdict does on Redis. Platform touches neither: it uses Adapter\Swoole
and Server, and its one test double implements Consumer, which did not change.
So this is a constraint, not a port.

Both lines rather than a straight bump, so the consumers can move one at a time.
Appwrite and Cloud are currently pinned to platform rc24, whose ^5.0.0 is what
refuses queue 6 for them -- with this they can take queue 6 when they are ready
instead of the whole chain moving together.
@greptile-apps

greptile-apps Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; the expanded dependency range is compatible with the platform’s queue usage and declared runtime requirements.

Summary

This PR broadens the platform package’s queue dependency constraint so consumers can install either queue 5.x or 6.x.

  • Preserves queue 5 compatibility for consumers upgrading independently.
  • Permits queue 6 without changing platform runtime behavior.
  • Makes no source, test, or lock-file changes.

Reviews (1) · Last reviewed commit: "chore(platform): allow queue 6 alongside..."

The union's lower leg cannot be tested here: linked_version() in bin/monorepo
takes the highest number out of a union, registry-resolved runs take the
highest available, and no job passes --prefer-lowest. 3addb37 collapsed the
old seven-way chain for the same reason.
@walter-o-brien

Copy link
Copy Markdown

✅ OpenCodeReview: Review complete: 0 finding(s) across 1 selected item(s).

@walter-o-brien walter-o-brien Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ OpenCodeReview found no issues in d2d3d7c and has no open findings on this pull request.

This is an automated review and does not replace a review by a maintainer.

@levivannoort
levivannoort merged commit 93bdcac into main Sep 23, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant