Skip to content

test(queue): run the Swoole shutdown test in the e2e tier - #13948

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/unit-suite-hang
Sep 28, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/unit-suite-hang

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

Tests / Unit on main times out after 15 minutes since #13931. The root packages suite stalls on Utopia\Queue\Tests\ShutdownTest::testSupervisorBoundsShutdownOfAnUnresponsiveWorker, which starts a real Swoole worker pool: it passes on its own in about 2 s, but after the rest of the suite has run in the same process, start() never returns.

Swoole work doesn't belong in the shared unit process (AGENTS.md), so this moves the test to packages/queue/tests/E2E/, which the root suite excludes and the queue e2e tier still runs.

Check Result
Root --testsuite packages in appwrite/appwrite:2.3.0 completes in 128 s (was hanging); only local agents DiffCheck errors from a worktree .git path the container can't see
Moved test on its own OK (1 test)
bin/monorepo validate, check queue pass

Part of #13828.

🤖 Generated with Claude Code

ShutdownTest starts a real Swoole worker pool; in the shared root packages suite it never returns after the other tests have run, so Tests / Unit hits its 15-minute timeout on main. Swoole work doesn't belong in the shared unit process, and the queue e2e tier runs it on its own.
@ghost

ghost commented Sep 28, 2026

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The move and namespace update align with the existing PHPUnit suite configuration, and the E2E suite still discovers the test.

Moved the Swoole shutdown regression test from the queue unit-test directory into the E2E directory and updated its namespace. This keeps the test out of the shared package suite while allowing the queue E2E suite to discover it.

Verdict New comments Fixed Still open
✅ Approved 0 0 0
📂 Walkthrough · 1
File Change
packages/queue/tests/E2E/ShutdownTest.php Moved the Swoole shutdown test to the E2E suite and updated its namespace.

Reviewed a278482 · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@ghost ghost 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.

🟢 Tier S · Looks good to merge. Summary

@greptile-apps

greptile-apps Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

[Low risk] Moves a test file to a different test tier.

The PR appears safe to merge.

Summary

The PR moves the Swoole shutdown test from the shared unit tier to the queue package’s E2E tier.

  • The root packages suite no longer selects it.
  • The queue E2E suite selects it through the existing package test workflow.

Reviews (1) · Last reviewed commit: "test(queue): run the Swoole shutdown tes..."

@ChiragAgg5k
ChiragAgg5k merged commit 4c280a1 into main Sep 28, 2026
52 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/unit-suite-hang branch September 28, 2026 14:00
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