Skip to content

Commit bf198bd

Browse files
committed
MC-34482: MFTF tests causing high load on Jenkins agents in MTSv1 platform
1 parent 5139f7d commit bf198bd

File tree

3 files changed

+41
-2
lines changed

3 files changed

+41
-2
lines changed

app/code/Magento/CatalogImportExport/Test/Mftf/Test/AdminExportGroupedProductWithSpecialPriceTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
<requiredEntity createDataKey="createSecondSimpleProduct"/>
4949
</updateData>
5050

51-
<magentoCron stepKey="runCron"/>
5251
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
5352
</before>
5453
<after>
@@ -68,7 +67,8 @@
6867
<!-- Export created below products -->
6968
<actionGroup ref="ExportAllProductsActionGroup" stepKey="exportCreatedProducts"/>
7069

71-
<magentoCron stepKey="runCronIndex" groups="index"/>
70+
<!-- Start message queue for export consumer -->
71+
<actionGroup ref="AdminStartMessageQueueConsumerActionGroup" stepKey="startMessageQueue"/>
7272

7373
<grabTextFrom selector="{{AdminExportAttributeSection.exportFileNameByPosition('0')}}" stepKey="grabNameFile"/>
7474

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="AdminStartMessageQueueConsumerActionGroup">
12+
<annotations>
13+
<description>Starts message queue for specific consumer.</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="consumer" defaultValue="AdminExportMessageConsumerData"/>
17+
</arguments>
18+
19+
<magentoCLI command="queue:consumers:start {{consumer.consumer_name}} --max-messages={{consumer.message_limit}} --single-thread" stepKey="startMessageQueue"/>
20+
<wait time="30" stepKey="waitForQueueStarting"/>
21+
<reloadPage stepKey="refreshPage"/>
22+
<waitForPageLoad stepKey="waitForPageLoaded"/>
23+
</actionGroup>
24+
</actionGroups>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd">
11+
<entity name="AdminExportMessageConsumerData">
12+
<data key="consumer_name">exportProcessor</data>
13+
<data key="message_limit">1</data>
14+
</entity>
15+
</entities>

0 commit comments

Comments
 (0)