DGI9-637: More specific logging for failed enqueues.#175
Conversation
📝 WalkthroughWalkthroughCapture exceptions during Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🔇 Additional comments (3)
✏️ Tip: You can disable this entire section by setting Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/MigrateBatchExecutable.php (1)
185-190: Consider using\Throwableinstead of\Exceptionfor broader compatibility.The
enqueueExceptionproperty is typed as?\Exception, but using?\Throwablewould be more robust since it catches bothExceptionandErrortypes. This aligns with your existingformatException()method at line 277, which already accepts\Throwable.🔎 Proposed refactor
/** * Stash any exception encountered during enqueueing, so it can be reported. * - * @var \Exception|null + * @var \Throwable|null */ - protected ?\Exception $enqueueException = NULL; + protected ?\Throwable $enqueueException = NULL;
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Jira integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
src/MigrateBatchExecutable.php
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
- GitHub Check: PHPUnit / Drupal 10.5 | PHP 8.4
- GitHub Check: PHPUnit / Drupal 10.3 | PHP 8.2
- GitHub Check: PHPUnit / Drupal 10.4 | PHP 8.3
- GitHub Check: PHPUnit / Drupal 10.5 | PHP 8.3
- GitHub Check: PHPUnit / Drupal 10.4 | PHP 8.4
🔇 Additional comments (3)
src/MigrateBatchExecutable.php (3)
215-233: LGTM! Requirements exception properly captured.The
RequirementsExceptionis correctly stored for later propagation inprepareBatch(), while still displaying the immediate error message to the user.
238-247: LGTM! Source plugin exception properly captured.The exception from the source plugin is correctly stored for later propagation in
prepareBatch(), while ensuring the migration status is reset and the error message is displayed.
162-166: The codebase already uses multiple PHP 8.0+ features (named parameters inNaiveFileCopy.phpand match expressions inLockingMigrationLookup.phpandFoxmlFile.php), confirming that PHP 8.0 is the minimum requirement. The named parameter syntax on line 164 is consistent with the existing codebase and does not require changes.
Is rather more important during drush invocations. Might be somewhat spammy with the migration ID in the GUI?
|
Tag generated by PR: v3.18.3 |
This may be somewhat spammy, with things such as:
however, the additional verbosity should help identify underlying errors.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.