Repository navigation
Prepare to release - #589
Conversation
Reviewer's GuideImplementationUpdate the generated job template to emit the typed queue and retryable-job method signatures required by the release.
ConfigurationPrepare Composer metadata and scripts for the 3.0 development branch and current test command.
DocumentationUpdate upgrade guidance and driver references to reflect removal of the legacy RabbitMQ driver and use of AMQP Interop.
Revise retryable-job examples and supported-driver descriptions for typed signatures and the AMQP Interop driver.
Correct Redis driver dependency guidance across the English and Japanese guides.
Refresh test setup instructions for the root Compose stack, supported PHP versions and LocalStack-backed SQS tests.
Update usage guidance to identify AMQP Interop as lacking job-status support and remove obsolete RabbitMQ limitations.
Add Docker Compose worker deployment guidance and update supported-worker driver references in each language guide.
Rename the code-style tool and heading in the internals guide to PHP CS Fixer.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
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
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
Summary by Sourcery
Prepare the project documentation and package metadata for the 3.0 release while documenting modern worker and test workflows.
New Features:
Enhancements:
Build:
Documentation: