Skip to content

Flaky test in B2B module #36879

Closed
Closed
@hostep

Description

@hostep

Preconditions and environment

  • Magento 2.4-develop branch

Steps to reproduce

Run integration test for Magento\Company\LoggingTest around 58/59 seconds after the minute. (this is only guessing here, I just ran into this accidentally)

Expected result

Test never fails

Actual result

Test is flaky and seems to depend on 2 different minutes in timestamps:

PHPUnit 9.5.20 �[44m#StandWith�[0m�[43mUkraine�[0m

Warning:       Using a custom test suite loader is deprecated

..........................................F....II....             53 / 53 (100%)

Time: 05:29.716, Memory: 623.00 MB

There was 1 failure:

1) Magento\Company\LoggingTest::testEditCompanyActionLogging
Failed asserting that '2023-02-16 18:26:59' contains "2023-02-16 18:27".

/var/www/html/dev/tests/integration/testsuite/Magento/Company/LoggingTest.php:301
/var/www/html/dev/tests/integration/testsuite/Magento/Company/LoggingTest.php:88

FAILURES!
Tests: 53, Assertions: 134, Failures: 1, Incomplete: 2.

=== Memory Usage System Stats ===
Memory usage (OS):	787.79M (127.27% of 619.00M reported by PHP)
Estimated memory leak:	168.79M (21.43% of used memory)

See https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/36878/eef3786f3239a5598253a3f3f349ee87/Integration/console-error-logs.html

Additional information

Ran into this while working on #36878

Release note

Not important to include in release notes

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Adobe CommerceThe issue related to the Adobe Commerce(EE) or B2B functionalityIssue: needs updateAdditional information is require, waiting for responseReported on 2.4.xIndicates original Magento version for the Issue report.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions