Skip to content
Open
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
60 changes: 60 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: "CI"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
push:
branches: [main]

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run Linter
run: |
docker run --rm -v $PWD:/app composer sh -c \
"composer install --profile --ignore-platform-reqs && composer lint"

analyze:
name: Analyze
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Run CodeQL
run: |
docker run --rm -v $PWD:/app composer sh -c \
"composer install --profile --ignore-platform-reqs && composer check"

tests:
name: Tests (${{ matrix.adapter }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
adapter:
- AMQP
- Pool
- SwooleRedisCluster
- Swoole
- Workerman
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Load and Start Services
run: |
docker compose build
docker compose up -d
sleep 10

- name: Run Tests
run: docker compose exec -T tests vendor/bin/phpunit /usr/local/src/tests/Queue/E2E/Adapter/${{ matrix.adapter }}Test.php --debug
20 changes: 0 additions & 20 deletions .github/workflows/phpstan.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/pint.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/tests.yml

This file was deleted.

7 changes: 4 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
"php": ">=8.3",
"php-amqplib/php-amqplib": "^3.7",
"utopia-php/console": "0.0.*",
"utopia-php/framework": "0.33.*",
"utopia-php/telemetry": "*",
"utopia-php/servers": "0.2.*",
"utopia-php/fetch": "0.5.*",
"utopia-php/pools": "1.*",
"utopia-php/fetch": "0.5.*"
"utopia-php/telemetry": "*",
"utopia-php/validators": "0.2.*"
Comment on lines +33 to +34
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

# First, let's check the composer.json file to confirm the current state
git ls-files "composer.json" | head -5

Repository: utopia-php/queue

Length of output: 73


🏁 Script executed:

# Search for composer.json and read the relevant section
find . -name "composer.json" -type f | head -1 | xargs cat | grep -A 10 -B 5 "utopia-php/telemetry"

Repository: utopia-php/queue

Length of output: 573


🌐 Web query:

utopia-php/telemetry packagist latest version stable release

💡 Result:

The latest stable release of utopia-php/telemetry on Packagist is v0.1.1 (released 2025-03-17). [1]


🌐 Web query:

utopia-php/servers 0.2.* compatible utopia-php/telemetry versions

💡 Result:

utopia-php/servers 0.2.* has no Composer dependency on utopia-php/telemetry, so any utopia-php/telemetry version can be used alongside it (compatibility is determined by your project’s own constraints, not by servers). [1]

If you’re matching the common Utopia stack, utopia-php/framework that requires utopia-php/servers: 0.2.* also requires utopia-php/telemetry: 0.2.*, and the released telemetry version in that line is 0.2.0. [2] [3]

Answer: For utopia-php/servers 0.2.*, there are no required/forced compatible utopia-php/telemetry versions; ecosystem pairing is utopia-php/telemetry 0.2.* (currently 0.2.0). [1] [2]


Pin utopia-php/telemetry to a specific version range instead of "*".

Wildcard versions risk non-reproducible builds and unintended breaking changes. All other dependencies in this project use constrained semver ranges; utopia-php/telemetry should follow the same pattern. Based on the ecosystem, use 0.2.* to align with utopia-php/servers 0.2.*.

🤖 Prompt for AI Agents
In `@composer.json` around lines 33 - 34, Update the composer.json dependency
entry for "utopia-php/telemetry" to use a constrained semver range instead of
the wildcard "*" (e.g., "0.2.*") so builds are reproducible and aligned with the
project's other utopia dependencies such as "utopia-php/servers" — locate the
"utopia-php/telemetry" line in composer.json and replace "*" with "0.2.*", then
run composer update or composer validate to ensure the lockfile and constraints
are consistent.

},
"require-dev": {
"ext-redis": "*",
Expand Down
Loading
Loading