Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"utopia-php/console": "0.0.*",
"utopia-php/framework": "0.33.*",
"utopia-php/telemetry": "*",
"utopia-php/pools": "0.8.*",
"utopia-php/pools": "1.*",
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

# First, let's look at the composer.json file to see the current and any previous versions
cd /root/repository 2>/dev/null || cd . 
if [ -f "composer.json" ]; then
  echo "=== Current composer.json (around line 32) ===" 
  sed -n '25,40p' composer.json
  echo ""
  echo "=== Full dependency section ===" 
  jq '.require | to_entries[] | select(.key | contains("utopia-php"))' composer.json 2>/dev/null || grep -i "utopia-php" composer.json
fi

Repository: utopia-php/queue

Length of output: 886


🌐 Web query:

utopia-php/pools version 1.* Packagist releases

💡 Result:

There are no 1.* releases for utopia-php/pools on Packagist. The latest listed release is 0.8.2 (released 2025-04-17; Packagist last updated 2025-09-26). [1]

Sources:
[1] Packagist entry for utopia-php/pools.


🏁 Script executed:

# Check if there are test files that show constructor changes
find . -name "*test*.php" -o -name "*Test.php" | head -20 | xargs grep -l "Pool\|pools" 2>/dev/null | head -5

Repository: utopia-php/queue

Length of output: 98


🏁 Script executed:

# Examine the Pool test file to see what's expected
cat -n ./tests/Queue/E2E/Adapter/PoolTest.php | head -80

Repository: utopia-php/queue

Length of output: 899


🏁 Script executed:

# Check git history for this file to see what changed
cd /root/repository 2>/dev/null || cd .
if [ -f ".git/config" ]; then
  git log --oneline -20 -- composer.json tests/Queue/E2E/Adapter/PoolTest.php
fi

Repository: utopia-php/queue

Length of output: 81


Dependency specification references a non-existent version.

"utopia-php/pools": "1.*" specifies version 1.* which does not exist on Packagist. The latest available version is 0.8.2 (released 2025-04-17). This dependency constraint will cause composer install to fail. Update to an existing version, such as "0.8.*" or verify if version 1.* is being released before merging.

🤖 Prompt for AI Agents
In `@composer.json` at line 32, The composer.json dependency constraint for
utopia-php/pools is invalid ("utopia-php/pools": "1.*"); update the version
constraint to a published release (e.g., change to "utopia-php/pools": "0.8.*"
or pin to "0.8.2") so composer install will succeed, and verify by running
composer validate/install to confirm the new constraint is accepted.

"utopia-php/fetch": "0.5.*"
},
"require-dev": {
Expand Down
21 changes: 11 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tests/Queue/E2E/Adapter/PoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Tests\E2E\Adapter;

use Utopia\Pools\Pool as UtopiaPool;
use Utopia\Pools\Adapter\Stack as Stack;
use Utopia\Queue\Broker\Pool;
use Utopia\Queue\Broker\Redis as RedisBroker;
use Utopia\Queue\Connection\Redis;
Expand All @@ -13,7 +14,7 @@ class PoolTest extends Base
{
protected function getPublisher(): Publisher
{
$pool = new UtopiaPool('redis', 1, function () {
$pool = new UtopiaPool(new Stack(), 'redis', 1, function () {
return new RedisBroker(new Redis('redis', 6379));
});

Expand Down