Skip to content

Commit 01d2c5c

Browse files
committed
MC-34482: MFTF tests causing high load on Jenkins agents in MTSv1 platform
1 parent 3e5d058 commit 01d2c5c

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/AdminUpdateFlatCategoryIncludeInNavigationTest.xml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,15 @@
2929
<actionGroup ref="CreateStoreViewActionGroup" stepKey="createCustomStoreViewFr">
3030
<argument name="storeView" value="customStoreFR"/>
3131
</actionGroup>
32-
<!--Run full reindex and clear caches -->
33-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
34-
<magentoCLI command="cache:flush" stepKey="flushCache"/>
3532
<!--Enable Flat Catalog Category -->
3633
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 1"/>
3734
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
3835
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="schedule" />
39-
<!-- Run cron twice -->
40-
<magentoCLI command="cron:run" stepKey="runCron1"/>
41-
<magentoCLI command="cron:run" stepKey="runCron2"/>
36+
<!-- Reindex invalidated indices and clear caches -->
37+
<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
38+
<magentoCLI command="cache:flush" stepKey="flushCache"/>
4239
</before>
4340
<after>
44-
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>
45-
<magentoCLI stepKey="setIndexersMode" command="indexer:set-mode" arguments="realtime" />
46-
<magentoCLI stepKey="indexerReindex" command="indexer:reindex" />
4741
<deleteData stepKey="deleteCategory" createDataKey="createCategory"/>
4842
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreViewEn">
4943
<argument name="customStore" value="customStoreEN"/>
@@ -52,6 +46,9 @@
5246
<argument name="customStore" value="customStoreFR"/>
5347
</actionGroup>
5448
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
49+
<magentoCLI command="config:set catalog/frontend/flat_catalog_category 0 " stepKey="setFlatCatalogCategory"/>
50+
<magentoCLI command="indexer:set-mode" arguments="realtime" stepKey="setIndexersMode"/>
51+
<magentoCron groups="index" stepKey="reindexInvalidatedIndicesAgain"/>
5552
</after>
5653
<!--Verify Category is not listed in navigation menu-->
5754
<amOnPage url="/{{CatNotIncludeInMenu.name_lwr}}.html" stepKey="openCategoryPage"/>

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
<requiredEntity createDataKey="createConfigProduct"/>
9090
</createData>
9191

92-
<magentoCron stepKey="runCronIndex" groups="index"/>
92+
<magentoCron groups="index" stepKey="runCronIndex"/>
9393
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
9494
</before>
9595
<after>
@@ -113,7 +113,8 @@
113113
<argument name="attributeData" value="$$createConfigProduct.sku$$"/>
114114
</actionGroup>
115115

116-
<magentoCron stepKey="runCron"/>
116+
<!-- Start message queue for export consumer -->
117+
<actionGroup ref="AdminStartMessageQueueConsumerActionGroup" stepKey="startMessageQueue"/>
117118

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

0 commit comments

Comments
 (0)