Skip to content

Conversation

@SergiuBota1
Copy link
Member

Logged the messages that failed to process. I also created 2 commands which accepts optional flags --start, --end, --limit used to filter by period logs of messages that failed or succeeded in processing.

Signed-off-by: bota <Bota@dotkernel.com>
@github-actions
Copy link

github-actions bot commented Jul 22, 2025

Qodana for PHP

19 new problems were found

Inspection name Severity Problems
Undefined class 🔶 Warning 12
Undefined namespace 🔶 Warning 5
Property can be 'readonly' ◽️ Notice 2

☁️ View the detailed Qodana report

Detected 61 dependencies

Third-party software list

This page lists the third-party software dependencies used in project

Dependency Version Licenses
brick/varexporter 0.5.0 MIT
doctrine/collections 2.3.0 MIT
doctrine/dbal 4.3.0 MIT
doctrine/deprecations 1.1.5 MIT
doctrine/event-manager 2.0.1 MIT
doctrine/inflector 2.0.10 MIT
doctrine/instantiator 2.0.0 MIT
doctrine/lexer 3.0.1 MIT
doctrine/orm 3.5.0 MIT
doctrine/persistence 4.0.0 MIT
dotkernel/dot-cli 3.9.0 MIT
dotkernel/dot-dependency-injection 1.2.0 MIT
dotkernel/dot-errorhandler 4.2.1 MIT
dotkernel/dot-log 5.1.0 MIT
fig/http-message-util 1.1.5 MIT
gsteel/dot 1.8.0 MIT
laminas/laminas-cli 1.11.0 BSD-3-Clause
laminas/laminas-component-installer 3.5.0 BSD-3-Clause
laminas/laminas-config-aggregator 1.18.0 BSD-3-Clause
laminas/laminas-diactoros 3.6.0 BSD-3-Clause
laminas/laminas-httphandlerrunner 2.12.0 BSD-3-Clause
laminas/laminas-servicemanager 4.4.0 BSD-3-Clause
laminas/laminas-stdlib 3.20.0 BSD-3-Clause
laminas/laminas-stratigility 3.13.0 BSD-3-Clause
laminas/laminas-translator 1.1.0 BSD-3-Clause
laminas/laminas-validator 3.4.2 BSD-3-Clause
mezzio/mezzio-router 3.18.0 BSD-3-Clause
mezzio/mezzio-template 2.11.0 BSD-3-Clause
mezzio/mezzio 3.21.0 BSD-3-Clause
netglue/laminas-messenger 2.4.0 MIT
nikic/php-parser v5.5.0 BSD-3-Clause
psr/cache 3.0.0 MIT
psr/clock 1.0.0 MIT
psr/container 2.0.2 MIT
psr/event-dispatcher 1.0.0 MIT
psr/http-client 1.0.3 MIT
psr/http-factory 1.1.0 MIT
psr/http-message 2.0 MIT
psr/http-server-handler 1.0.2 MIT
psr/http-server-middleware 1.0.2 MIT
psr/log 3.0.2 MIT
symfony/clock v7.3.0 MIT
symfony/console v7.3.1 MIT
symfony/dependency-injection v7.3.1 MIT
symfony/deprecation-contracts v3.6.0 MIT
symfony/event-dispatcher-contracts v3.6.0 MIT
symfony/event-dispatcher v7.3.0 MIT
symfony/messenger v7.3.1 MIT
symfony/polyfill-ctype v1.32.0 MIT
symfony/polyfill-intl-grapheme v1.32.0 MIT
symfony/polyfill-intl-normalizer v1.32.0 MIT
symfony/polyfill-mbstring v1.32.0 MIT
symfony/polyfill-php83 v1.32.0 MIT
symfony/polyfill-php84 v1.32.0 MIT
symfony/redis-messenger v7.3.0 MIT
symfony/serializer v7.3.1 MIT
symfony/service-contracts v3.6.0 MIT
symfony/string v7.3.0 MIT
symfony/var-exporter v7.3.0 MIT
webimpress/safe-writer 2.2.0 BSD-2-Clause
webmozart/assert 1.11.0 MIT
Contact Qodana team

Contact us at qodana-support@jetbrains.com

'eof' => "\n",
],
],
'fail-safe' => [
Copy link
Member

Choose a reason for hiding this comment

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

add some comment what is this

Copy link
Member

Choose a reason for hiding this comment

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

what are those ? seconds or miliseconds ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Milliseconds

Signed-off-by: bota <Bota@dotkernel.com>
@codecov
Copy link

codecov bot commented Jul 22, 2025

Codecov Report

Attention: Patch coverage is 5.60748% with 101 lines in your changes missing coverage. Please review.

Project coverage is 5.88%. Comparing base (b042747) to head (0c876f6).
Report is 3 commits behind head on 1.0.

Files with missing lines Patch % Lines
src/Swoole/Command/GetFailedMessagesCommand.php 0.00% 38 Missing ⚠️
src/Swoole/Command/GetProcessedMessagesCommand.php 0.00% 38 Missing ⚠️
src/App/Message/ExampleMessageHandler.php 0.00% 25 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               1.0     #30      +/-   ##
==========================================
- Coverage     7.69%   5.88%   -1.81%     
- Complexity      50      95      +45     
==========================================
  Files           14      16       +2     
  Lines          221     323     +102     
==========================================
+ Hits            17      19       +2     
- Misses         204     304     +100     

☔ View full report in Codecov by Sentry.
📢 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.

@arhimede arhimede merged commit 1532224 into 1.0 Jul 22, 2025
10 of 30 checks passed
@alexmerlin alexmerlin deleted the logs-management branch July 22, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants