Skip to content

Prepare to release - #589

Merged
s1lver merged 1 commit into
masterfrom
chore/prepare-to-release
Nov 20, 2026
Merged

s1lver merged 1 commit into
masterfrom
chore/prepare-to-release

Conversation

@s1lver

@s1lver s1lver commented Nov 20, 2026 •

Copy link
Copy Markdown
Member
Q A
Is bugfix? ❌
New feature? ❌
Breaks BC? ❌
Tests pass? ✔️
Fixed issues #588

Summary by Sourcery

Prepare the project documentation and package metadata for the 3.0 release while documenting modern worker and test workflows.

New Features:

  • Add documentation for running queue workers with Docker Compose, including scaling, restart policies, logging, and profiles.

Enhancements:

  • Update upgrade guidance and multilingual documentation for the removed legacy AMQP driver and ErrorEvent, replacing references with AMQP Interop and ExecEvent.
  • Add native type declarations to generated job examples and retryable-job documentation.
  • Refresh test environment documentation for the root Docker Compose setup, supported PHP versions, and LocalStack-backed SQS tests.
  • Update Composer metadata for the 3.0 development branch and align code-style tooling references.

Build:

  • Update the Composer development branch alias to 3.0.x-dev and simplify the test script command.

Documentation:

  • Revise English, Japanese, Russian, and Chinese documentation to reflect current drivers, APIs, retry behavior, Redis requirements, worker operation, and test procedures.

@sourcery-ai

sourcery-ai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Implementation

Update the generated job template to emit the typed queue and retryable-job method signatures required by the release.

  • src/gii/default/job.php L48, L56, L64

Configuration

Prepare Composer metadata and scripts for the 3.0 development branch and current test command.

  • composer.json L79, L92

Documentation

Update upgrade guidance and driver references to reflect removal of the legacy RabbitMQ driver and use of AMQP Interop.

  • UPGRADE.md L30-31, L132
  • docs/guide-ja/README.md L20 (removed lines)
  • docs/guide-ru/README.md L20 (removed lines)
  • docs/guide-zh-CN/README.md L21 (removed lines)
  • docs/guide/README.md L20 (removed lines)

Revise retryable-job examples and supported-driver descriptions for typed signatures and the AMQP Interop driver.

  • docs/guide-ja/retryable.md L62-117 (4 small edits)
  • docs/guide-ru/retryable.md L54-118 (4 small edits)
  • docs/guide-zh-CN/retryable.md L48-102 (5 small edits)
  • docs/guide/retryable.md L62-121 (4 small edits)

Correct Redis driver dependency guidance across the English and Japanese guides.

  • docs/guide-ja/driver-redis.md L21
  • docs/guide/driver-redis.md L21

Refresh test setup instructions for the root Compose stack, supported PHP versions and LocalStack-backed SQS tests.

  • docs/guide-ja/tests.md L7-9, L15-32
  • docs/guide/tests.md L7-9, L15-32

Update usage guidance to identify AMQP Interop as lacking job-status support and remove obsolete RabbitMQ limitations.

  • docs/guide-ja/usage.md L105
  • docs/guide-ru/usage.md L65, L95
  • docs/guide-zh-CN/usage.md L93
  • docs/guide/usage.md L105

Add Docker Compose worker deployment guidance and update supported-worker driver references in each language guide.

  • docs/guide-ja/worker.md L37, L43 (removed lines), L46-86
  • docs/guide-ru/worker.md L38, L43, L48-87
  • docs/guide-zh-CN/worker.md L36, L41-85
  • docs/guide/worker.md L37, L43 (removed lines), L47-87

Rename the code-style tool and heading in the internals guide to PHP CS Fixer.

  • docs/guide/internals.md L7-11

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@s1lver s1lver added the type:docs Documentation label Nov 20, 2026
@s1lver s1lver added this to the 3.0.0 milestone Nov 20, 2026

@sourcery-ai sourcery-ai 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.

Hey - I've found 3 issues

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="src/gii/default/job.php" line_range="48" />
<code_context>
     /**
      * @inheritdoc
      */
-    public function execute($queue)
+    public function execute(\yii\queue\Queue $queue)
     {
</code_context>
<issue_to_address>
**Generated jobs fail to load**

When the configured base class has an `execute` or `canRetry` method with untyped or broader parameters, pHP rejects the generated overrides because their typed parameters narrow the inputs accepted by the base methods, so the generated job cannot be loaded.

Remove the parameter type declarations from the generated overrides, or otherwise make their parameter types compatible with the configured base class.

Also at `src/gii/default/job.php:64`.
</issue_to_address>

### Comment 2
<location path="docs/guide/tests.md" line_range="19" />
<code_context>
-# PHP 7.3 のみ
-make test73
+# 別のサポート対象バージョン。例: 8.4
+make test v=8.4
 ```

</code_context>
<issue_to_address>
**Versioned tests run on PHP 8.3**

When a user requests a non-default PHP version such as 8.4 or 8.5, `make test` does not forward `v` to `make build`, so the image is built with the default PHP 8.3; setting `PHP_VERSION` for the later run does not rebuild it, and PHPUnit runs on the wrong PHP version.

Forward the requested PHP version to the build so the image is built with the version used for the test run.

Also at `docs/guide-ja/tests.md:22`.
</issue_to_address>

### Comment 3
<location path="docs/guide/tests.md" line_range="22" />
<code_context>
-docker-compose run php73 vendor/bin/phpunit tests\\drivers\\sqs\\QueueTest /code/tests/drivers/sqs/QueueTest.php
-docker-compose down
-```
+`make test` builds the image, creates the LocalStack SQS queues, runs PHPUnit and stops the containers.

-Some tests can be disabled by default for various reasons (for example, the AWS SQS test require a queue set up in AWS).
</code_context>
<issue_to_address>
**Compose services remain running**

When the PHPUnit command exits nonzero, gNU make stops the `test` target at the failing PHPUnit command before it reaches `make down`, leaving the Compose services running.

Ensure the Compose cleanup runs even when PHPUnit fails.

Also at `docs/guide-ja/tests.md:22`.
</issue_to_address>

Sourcery assessment

Needs a human reviewer. 3 findings to address first, and if the new Gii method signatures are wrong, generated job classes can retain those signatures after this package is reverted; the affected source is bounded and can be edited or regenerated. The remaining changes are documentation and Composer branch-alias updates, which can be reverted normally.

Blocking findings: src/gii/default/job.php:48, docs/guide/tests.md:19, docs/guide/tests.md:22


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread src/gii/default/job.php Resolved
Comment thread docs/guide/tests.md Resolved
Comment thread docs/guide/tests.md Resolved
@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.21%. Comparing base (a4341b7) to head (b6c5729).

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #589   +/-   ##
=========================================
  Coverage     51.21%   51.21%           
  Complexity      493      493           
=========================================
  Files            41       41           
  Lines          1519     1519           
=========================================
  Hits            778      778           
  Misses          741      741           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@s1lver
s1lver merged commit 6a4a085 into master Nov 20, 2026
15 checks passed
@s1lver
s1lver deleted the chore/prepare-to-release branch November 20, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:docs Documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant