diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fab04696..d3b9819c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -268,7 +268,6 @@ jobs: docker/sdk cli composer dump-autoload -o -a --apcu docker/sdk testing codecept run -c codeception.api.yml - php-83-mariadb-acceptance-alpine-dynamic-store-off: name: "PHP 8.3 / MariaDB / Acceptance / Alpine / Dynamic Store OFF" runs-on: ubuntu-22.04 @@ -876,7 +875,7 @@ jobs: run: | git clone https://github.com/spryker/docker-sdk.git ./docker docker/sdk boot deploy.ci.acceptance.yml - sudo bash -c "echo '127.0.0.1 backend-api.eu.spryker.local backend-api.us.spryker.local backend-gateway.eu.spryker.local backend-gateway.us.spryker.local backoffice.eu.spryker.local backoffice.us.spryker.local glue-backend.eu.spryker.local glue-backend.us.spryker.local glue-storefront.eu.spryker.local glue-storefront.us.spryker.local glue.eu.spryker.local glue.us.spryker.local mail.spryker.local mp.eu.spryker.local mp.us.spryker.local queue.spryker.local scheduler.spryker.local spryker.local swagger.spryker.local yves.eu.spryker.local yves.us.spryker.local' >> /etc/hosts" + sudo bash -c "echo '127.0.0.1 backend-api.eu.spryker.local backend-api.us.spryker.local backend-gateway.eu.spryker.local backend-gateway.us.spryker.local backoffice.eu.spryker.local backoffice.us.spryker.local glue-backend.eu.spryker.local glue-backend.us.spryker.local glue-storefront.eu.spryker.local glue-storefront.us.spryker.local glue.eu.spryker.local glue.us.spryker.local mail.spryker.local mp.eu.spryker.local mp.us.spryker.local queue.spryker.local spryker.local swagger.spryker.local yves.eu.spryker.local yves.us.spryker.local' >> /etc/hosts" docker/sdk up -t docker/sdk cli composer dump-autoload -o -a --apcu docker/sdk testing console queue:worker:start --stop-when-empty @@ -923,7 +922,7 @@ jobs: run: | git clone https://github.com/spryker/docker-sdk.git ./docker docker/sdk boot deploy.ci.api.mariadb.robot.yml - sudo bash -c "echo '127.0.0.1 backend-api.eu.spryker.local backend-api.us.spryker.local backend-gateway.eu.spryker.local backend-gateway.us.spryker.local backoffice.eu.spryker.local backoffice.us.spryker.local glue-backend.eu.spryker.local glue-backend.us.spryker.local glue-storefront.eu.spryker.local glue-storefront.us.spryker.local glue.eu.spryker.local glue.us.spryker.local mail.spryker.local mp.eu.spryker.local mp.us.spryker.local queue.spryker.local scheduler.spryker.local spryker.local swagger.spryker.local yves.eu.spryker.local yves.us.spryker.local' >> /etc/hosts" + sudo bash -c "echo '127.0.0.1 backend-api.eu.spryker.local backend-api.us.spryker.local backend-gateway.eu.spryker.local backend-gateway.us.spryker.local backoffice.eu.spryker.local backoffice.us.spryker.local glue-backend.eu.spryker.local glue-backend.us.spryker.local glue-storefront.eu.spryker.local glue-storefront.us.spryker.local glue.eu.spryker.local glue.us.spryker.local mail.spryker.local mp.eu.spryker.local mp.us.spryker.local queue.spryker.local spryker.local swagger.spryker.local yves.eu.spryker.local yves.us.spryker.local' >> /etc/hosts" docker/sdk up -t docker/sdk cli composer dump-autoload -o -a --apcu docker/sdk console queue:worker:start --stop-when-empty @@ -1022,7 +1021,7 @@ jobs: run: | git clone https://github.com/spryker/docker-sdk.git ./docker docker/sdk boot deploy.ci.acceptance.mariadb.cypress.yml - sudo bash -c "echo '127.0.0.1 backend-api.eu.spryker.local backend-api.us.spryker.local backend-gateway.eu.spryker.local backend-gateway.us.spryker.local backoffice.eu.spryker.local backoffice.us.spryker.local glue-backend.eu.spryker.local glue-backend.us.spryker.local glue-storefront.eu.spryker.local glue-storefront.us.spryker.local glue.eu.spryker.local glue.us.spryker.local mail.spryker.local mp.eu.spryker.local mp.us.spryker.local queue.spryker.local scheduler.spryker.local spryker.local swagger.spryker.local yves.eu.spryker.local yves.us.spryker.local' >> /etc/hosts" + sudo bash -c "echo '127.0.0.1 backend-api.eu.spryker.local backend-api.us.spryker.local backend-gateway.eu.spryker.local backend-gateway.us.spryker.local backoffice.eu.spryker.local backoffice.us.spryker.local glue-backend.eu.spryker.local glue-backend.us.spryker.local glue-storefront.eu.spryker.local glue-storefront.us.spryker.local glue.eu.spryker.local glue.us.spryker.local mail.spryker.local mp.eu.spryker.local mp.us.spryker.local queue.spryker.local spryker.local swagger.spryker.local yves.eu.spryker.local yves.us.spryker.local' >> /etc/hosts" docker/sdk up -t docker/sdk cli composer dump-autoload -o -a --apcu - name: Publish & Sync @@ -1077,7 +1076,7 @@ jobs: run: | git clone https://github.com/spryker/docker-sdk.git ./docker docker/sdk boot deploy.ci.acceptance.mariadb.yml - sudo bash -c "echo '127.0.0.1 backend-api.eu.spryker.local backend-api.us.spryker.local backend-gateway.eu.spryker.local backend-gateway.us.spryker.local backoffice.eu.spryker.local backoffice.us.spryker.local glue-backend.eu.spryker.local glue-backend.us.spryker.local glue-storefront.eu.spryker.local glue-storefront.us.spryker.local glue.eu.spryker.local glue.us.spryker.local mail.spryker.local mp.eu.spryker.local mp.us.spryker.local queue.spryker.local scheduler.spryker.local spryker.local swagger.spryker.local yves.eu.spryker.local yves.us.spryker.local' >> /etc/hosts" + sudo bash -c "echo '127.0.0.1 backend-api.eu.spryker.local backend-api.us.spryker.local backend-gateway.eu.spryker.local backend-gateway.us.spryker.local backoffice.eu.spryker.local backoffice.us.spryker.local glue-backend.eu.spryker.local glue-backend.us.spryker.local glue-storefront.eu.spryker.local glue-storefront.us.spryker.local glue.eu.spryker.local glue.us.spryker.local mail.spryker.local mp.eu.spryker.local mp.us.spryker.local queue.spryker.local spryker.local swagger.spryker.local yves.eu.spryker.local yves.us.spryker.local' >> /etc/hosts" docker/sdk up -t docker/sdk cli composer dump-autoload -o -a --apcu docker/sdk testing console queue:worker:start --stop-when-empty @@ -1124,7 +1123,7 @@ jobs: run: | git clone https://github.com/spryker/docker-sdk.git ./docker docker/sdk boot deploy.ci.acceptance.mariadb.yml - sudo bash -c "echo '127.0.0.1 backend-api.eu.spryker.local backend-api.us.spryker.local backend-gateway.eu.spryker.local backend-gateway.us.spryker.local backoffice.eu.spryker.local backoffice.us.spryker.local glue-backend.eu.spryker.local glue-backend.us.spryker.local glue-storefront.eu.spryker.local glue-storefront.us.spryker.local glue.eu.spryker.local glue.us.spryker.local mail.spryker.local mp.eu.spryker.local mp.us.spryker.local queue.spryker.local scheduler.spryker.local spryker.local swagger.spryker.local yves.eu.spryker.local yves.us.spryker.local' >> /etc/hosts" + sudo bash -c "echo '127.0.0.1 backend-api.eu.spryker.local backend-api.us.spryker.local backend-gateway.eu.spryker.local backend-gateway.us.spryker.local backoffice.eu.spryker.local backoffice.us.spryker.local glue-backend.eu.spryker.local glue-backend.us.spryker.local glue-storefront.eu.spryker.local glue-storefront.us.spryker.local glue.eu.spryker.local glue.us.spryker.local mail.spryker.local mp.eu.spryker.local mp.us.spryker.local queue.spryker.local spryker.local swagger.spryker.local yves.eu.spryker.local yves.us.spryker.local' >> /etc/hosts" docker/sdk up -t docker/sdk cli composer dump-autoload -o -a --apcu docker/sdk testing console queue:worker:start --stop-when-empty diff --git a/.github/workflows/robot-ui-e2e-tests.yml b/.github/workflows/robot-ui-e2e-tests.yml index 589c645ea..13e6b574a 100644 --- a/.github/workflows/robot-ui-e2e-tests.yml +++ b/.github/workflows/robot-ui-e2e-tests.yml @@ -40,23 +40,14 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - - name: Install packages - run: | - python3 -m pip install --upgrade pip - python3 -m pip install -U robotframework - python3 -m pip install -U robotframework-requests - python3 -m pip install -U robotframework-jsonlibrary - python3 -m pip install -U robotframework-databaselibrary - python3 -m pip install -U robotframework-browser - python3 -m pip install PyMySQL - sudo npx playwright install-deps + - name: Install robotframework-suite-tests folder + run: | + cd ./data && composer require "spryker/robotframework-suite-tests:dev-master" --dev --no-interaction + cp -r vendor ../vendor - name: Install docker-compose run: | sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - - name: Install Robot tests - run: | - git clone https://github.com/spryker/robotframework-suite-tests.git --single-branch --branch master robotframework-tests - name: Install Project continue-on-error: false run: | @@ -73,24 +64,20 @@ jobs: id: run_tests continue-on-error: true run: | - cd robotframework-tests - rfbrowser init - robot -v env:ui_mp_b2c -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_one -s '*'.tests.ui.mp_b2c . - touch results/time.txt && echo $(date) > results/time.txt + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_one -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework touch results/time.txt && echo $(date) > results/time.txt - name: Rerun Failed Tests if: steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - robot -v env:ui_mp_b2c -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . - name: Merge Test Results if: always() && steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - rebot -d results --merge results/output.xml results/rerun/rerun.xml + docker/sdk exec robot-framework rebot -d results --merge results/output.xml results/rerun/rerun.xml - name: Upload artifacts if: failure() run: | - AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp robotframework-tests/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/mp_b2c_regression/group1/${GITHUB_RUN_ID}/PHP8.3MariaDBRobotUi/ \ + AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp .robot/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/mp_b2c_regression/group1/${GITHUB_RUN_ID}/PHP8.3MariaDBRobotUi/ \ --recursive \ --expires "$(date -d '+7 days' --utc +'%Y-%m-%dT%H:%M:%SZ')" @@ -122,23 +109,14 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - - name: Install packages - run: | - python3 -m pip install --upgrade pip - python3 -m pip install -U robotframework - python3 -m pip install -U robotframework-requests - python3 -m pip install -U robotframework-jsonlibrary - python3 -m pip install -U robotframework-databaselibrary - python3 -m pip install -U robotframework-browser - python3 -m pip install PyMySQL - sudo npx playwright install-deps + - name: Install robotframework-suite-tests folder + run: | + cd ./data && composer require "spryker/robotframework-suite-tests:dev-master" --dev --no-interaction + cp -r vendor ../vendor - name: Install docker-compose run: | sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - - name: Install Robot tests - run: | - git clone https://github.com/spryker/robotframework-suite-tests.git --single-branch --branch master robotframework-tests - name: Install Project continue-on-error: false run: | @@ -155,24 +133,20 @@ jobs: id: run_tests continue-on-error: true run: | - cd robotframework-tests - rfbrowser init - robot -v env:ui_mp_b2c -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_two -s '*'.tests.ui.mp_b2c . - touch results/time.txt && echo $(date) > results/time.txt + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_two -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework touch results/time.txt && echo $(date) > results/time.txt - name: Rerun Failed Tests if: steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - robot -v env:ui_mp_b2c -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . - name: Merge Test Results if: always() && steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - rebot -d results --merge results/output.xml results/rerun/rerun.xml + docker/sdk exec robot-framework rebot -d results --merge results/output.xml results/rerun/rerun.xml - name: Upload artifacts if: failure() run: | - AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp robotframework-tests/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/mp_b2c_regression/group2/${GITHUB_RUN_ID}/PHP8.3MariaDBRobotUi/ \ + AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp .robot/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/mp_b2c_regression/group2/${GITHUB_RUN_ID}/PHP8.3MariaDBRobotUi/ \ --recursive \ --expires "$(date -d '+7 days' --utc +'%Y-%m-%dT%H:%M:%SZ')" @@ -202,24 +176,14 @@ jobs: key: ${{ runner.os }}-pip-${{ hashFiles('composer.lock') }} restore-keys: | ${{ runner.os }}-pip- - - - name: Install packages - run: | - python3 -m pip install --upgrade pip - python3 -m pip install -U robotframework - python3 -m pip install -U robotframework-requests - python3 -m pip install -U robotframework-jsonlibrary - python3 -m pip install -U robotframework-databaselibrary - python3 -m pip install -U robotframework-browser - python3 -m pip install PyMySQL - sudo npx playwright install-deps + - name: Install robotframework-suite-tests folder + run: | + cd ./data && composer require "spryker/robotframework-suite-tests:dev-master" --dev --no-interaction + cp -r vendor ../vendor - name: Install docker-compose run: | sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - - name: Install Robot tests - run: | - git clone https://github.com/spryker/robotframework-suite-tests.git --single-branch --branch master robotframework-tests - name: Install Project continue-on-error: false run: | @@ -236,24 +200,20 @@ jobs: id: run_tests continue-on-error: true run: | - cd robotframework-tests - rfbrowser init - robot -v env:ui_mp_b2c -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_tree -s '*'.tests.ui.mp_b2c . - touch results/time.txt && echo $(date) > results/time.txt + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_tree -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework touch results/time.txt && echo $(date) > results/time.txt - name: Rerun Failed Tests if: steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - robot -v env:ui_mp_b2c -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v headless:true -v ignore_console:false -v dms:true -v glue_env:http://glue.eu.spryker.local -v bapi_env:http://glue-backend.eu.spryker.local -v sapi_env:http://glue-storefront.eu.spryker.local -v yves_env:http://yves.eu.spryker.local -v zed_env:http://backoffice.eu.spryker.local -v mp_root_env:http://mp.eu.spryker.local/ -v mp_env:http://mp.eu.spryker.local/security-merchant-portal-gui/login/ -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . - name: Merge Test Results if: always() && steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - rebot -d results --merge results/output.xml results/rerun/rerun.xml + docker/sdk exec robot-framework rebot -d results --merge results/output.xml results/rerun/rerun.xml - name: Upload artifacts if: failure() run: | - AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp robotframework-tests/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/mp_b2c_regression/group3/${GITHUB_RUN_ID}/PHP8.3MariaDBRobotUi/ \ + AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp .robot/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/mp_b2c_regression/group3/${GITHUB_RUN_ID}/PHP8.3MariaDBRobotUi/ \ --recursive \ --expires "$(date -d '+7 days' --utc +'%Y-%m-%dT%H:%M:%SZ')" @@ -282,24 +242,14 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - - name: Install packages - run: | - python3 -m pip install --upgrade pip - python3 -m pip install -U robotframework - python3 -m pip install -U robotframework-requests - python3 -m pip install -U robotframework-jsonlibrary - python3 -m pip install -U robotframework-databaselibrary - python3 -m pip install -U robotframework-browser - python3 -m pip install psycopg2 - sudo npx playwright install-deps - + - name: Install robotframework-suite-tests folder + run: | + cd ./data && composer require "spryker/robotframework-suite-tests:dev-master" --dev --no-interaction + cp -r vendor ../vendor - name: Install docker-compose run: | sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - - name: Install Robot tests - run: | - git clone https://github.com/spryker/robotframework-suite-tests.git --single-branch --branch master robotframework-tests - name: Install Project continue-on-error: false run: | @@ -317,24 +267,20 @@ jobs: id: run_tests continue-on-error: true run: | - cd robotframework-tests - rfbrowser init - robot -v env:ui_mp_b2c -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_one -s '*'.tests.ui.mp_b2c . - touch results/time.txt && echo $(date) > results/time.txt + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_one -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework touch results/time.txt && echo $(date) > results/time.txt - name: Rerun Failed Tests if: steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - robot -v env:ui_mp_b2c -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . - name: Merge Test Results if: always() && steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - rebot -d results --merge results/output.xml results/rerun/rerun.xml + docker/sdk exec robot-framework rebot -d results --merge results/output.xml results/rerun/rerun.xml - name: Upload artifacts if: failure() run: | - AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp robotframework-tests/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/dynamic-store-off/mp_b2c_regression/group1/${GITHUB_RUN_ID}/PHP8.2PostgreSQLRobotUI/ \ + AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp .robot/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/dynamic-store-off/mp_b2c_regression/group1/${GITHUB_RUN_ID}/PHP8.2PostgreSQLRobotUI/ \ --recursive \ --expires "$(date -d '+7 days' --utc +'%Y-%m-%dT%H:%M:%SZ')" @@ -363,24 +309,14 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - - name: Install packages - run: | - python3 -m pip install --upgrade pip - python3 -m pip install -U robotframework - python3 -m pip install -U robotframework-requests - python3 -m pip install -U robotframework-jsonlibrary - python3 -m pip install -U robotframework-databaselibrary - python3 -m pip install -U robotframework-browser - python3 -m pip install psycopg2 - sudo npx playwright install-deps - + - name: Install robotframework-suite-tests folder + run: | + cd ./data && composer require "spryker/robotframework-suite-tests:dev-master" --dev --no-interaction + cp -r vendor ../vendor - name: Install docker-compose run: | sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - - name: Install Robot tests - run: | - git clone https://github.com/spryker/robotframework-suite-tests.git --single-branch --branch master robotframework-tests - name: Install Project continue-on-error: false run: | @@ -398,24 +334,20 @@ jobs: id: run_tests continue-on-error: true run: | - cd robotframework-tests - rfbrowser init - robot -v env:ui_mp_b2c -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_two -s '*'.tests.ui.mp_b2c . - touch results/time.txt && echo $(date) > results/time.txt + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_two -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework touch results/time.txt && echo $(date) > results/time.txt - name: Rerun Failed Tests if: steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - robot -v env:ui_mp_b2c -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . - name: Merge Test Results if: always() && steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - rebot -d results --merge results/output.xml results/rerun/rerun.xml + docker/sdk exec robot-framework rebot -d results --merge results/output.xml results/rerun/rerun.xml - name: Upload artifacts if: failure() run: | - AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp robotframework-tests/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/dynamic-store-off/mp_b2c_regression/group2/${GITHUB_RUN_ID}/PHP8.2PostgreSQLRobotUI/ \ + AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp .robot/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/dynamic-store-off/mp_b2c_regression/group2/${GITHUB_RUN_ID}/PHP8.2PostgreSQLRobotUI/ \ --recursive \ --expires "$(date -d '+7 days' --utc +'%Y-%m-%dT%H:%M:%SZ')" @@ -444,24 +376,14 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - - name: Install packages - run: | - python3 -m pip install --upgrade pip - python3 -m pip install -U robotframework - python3 -m pip install -U robotframework-requests - python3 -m pip install -U robotframework-jsonlibrary - python3 -m pip install -U robotframework-databaselibrary - python3 -m pip install -U robotframework-browser - python3 -m pip install psycopg2 - sudo npx playwright install-deps - + - name: Install robotframework-suite-tests folder + run: | + cd ./data && composer require "spryker/robotframework-suite-tests:dev-master" --dev --no-interaction + cp -r vendor ../vendor - name: Install docker-compose run: | sudo curl -L "https://github.com/docker/compose/releases/download/2.12.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose - - name: Install Robot tests - run: | - git clone https://github.com/spryker/robotframework-suite-tests.git --single-branch --branch master robotframework-tests - name: Install Project continue-on-error: false run: | @@ -479,23 +401,19 @@ jobs: id: run_tests continue-on-error: true run: | - cd robotframework-tests - rfbrowser init - robot -v env:ui_mp_b2c -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_tree -s '*'.tests.ui.mp_b2c . - touch results/time.txt && echo $(date) > results/time.txt + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results --exclude skip-due-to-issueORskip-due-to-refactoring --include group_tree -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework touch results/time.txt && echo $(date) > results/time.txt - name: Rerun Failed Tests if: steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - robot -v env:ui_mp_b2c -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . + docker/sdk exec robot-framework robot -v env:ui_mp_b2c -v docker:True -v db_engine:psycopg2 -v headless:true -v ignore_console:false -d results/rerun --runemptysuite --rerunfailed results/output.xml --output rerun.xml -s '*'.tests.ui.mp_b2c . - name: Merge Test Results if: always() && steps.run_tests.outcome != 'success' run: | - cd robotframework-tests - rebot -d results --merge results/output.xml results/rerun/rerun.xml + docker/sdk exec robot-framework rebot -d results --merge results/output.xml results/rerun/rerun.xml - name: Upload artifacts if: failure() run: | - AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp robotframework-tests/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/dynamic-store-off/mp_b2c_regression/group3/${GITHUB_RUN_ID}/PHP8.2PostgreSQLRobotUI/ \ + AWS_DEFAULT_REGION=${{env.ROBOT_TESTS_ARTIFACTS_BUCKET_REGION}} AWS_ACCESS_KEY_ID=${{ secrets.ROBOT_TESTS_ARTIFACTS_KEY }} AWS_SECRET_ACCESS_KEY=${{ secrets.ROBOT_TESTS_ARTIFACTS_SECRET }} aws s3 cp .robot/results s3://${{vars.ROBOT_TESTS_ARTIFACTS_BUCKET}}/master-robot-ui-ci/dynamic-store-off/mp_b2c_regression/group3/${GITHUB_RUN_ID}/PHP8.2PostgreSQLRobotUI/ \ --recursive \ --expires "$(date -d '+7 days' --utc +'%Y-%m-%dT%H:%M:%SZ')" diff --git a/deploy.ci.acceptance.mariadb.dynamic-store-off.yml b/deploy.ci.acceptance.mariadb.dynamic-store-off.yml index 1a1448d8a..5fd178c66 100644 --- a/deploy.ci.acceptance.mariadb.dynamic-store-off.yml +++ b/deploy.ci.acceptance.mariadb.dynamic-store-off.yml @@ -151,10 +151,6 @@ services: search: engine: elastic version: '7.10' - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true mail_catcher: engine: mailhog webdriver: diff --git a/deploy.ci.acceptance.mariadb.yml b/deploy.ci.acceptance.mariadb.yml index a595377ee..4c961cc8f 100644 --- a/deploy.ci.acceptance.mariadb.yml +++ b/deploy.ci.acceptance.mariadb.yml @@ -114,10 +114,6 @@ services: search: engine: elastic version: '7.10' - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true mail_catcher: engine: mailhog webdriver: diff --git a/deploy.ci.acceptance.yml b/deploy.ci.acceptance.yml index 280f4b9cf..ffa36ac3d 100644 --- a/deploy.ci.acceptance.yml +++ b/deploy.ci.acceptance.yml @@ -110,10 +110,6 @@ services: search: engine: elastic version: '7.10' - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true mail_catcher: engine: mailhog webdriver: diff --git a/deploy.ci.api.dynamic-store-off.yml b/deploy.ci.api.dynamic-store-off.yml index 31db8e59c..412ec315c 100644 --- a/deploy.ci.api.dynamic-store-off.yml +++ b/deploy.ci.api.dynamic-store-off.yml @@ -143,12 +143,6 @@ services: search: engine: elastic version: '7.10' - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true - mail_catcher: - engine: mailhog docker: diff --git a/deploy.ci.api.mariadb.dynamic-store-off.yml b/deploy.ci.api.mariadb.dynamic-store-off.yml index 5931eba96..1bea672d0 100644 --- a/deploy.ci.api.mariadb.dynamic-store-off.yml +++ b/deploy.ci.api.mariadb.dynamic-store-off.yml @@ -26,10 +26,6 @@ composer: regions: EU: services: - mail: - sender: - name: Spryker No-Reply - email: no-reply@spryker.local database: database: eu-docker username: spryker @@ -148,12 +144,6 @@ services: search: engine: elastic version: '7.10' - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true - mail_catcher: - engine: mailhog docker: diff --git a/deploy.ci.api.mariadb.yml b/deploy.ci.api.mariadb.yml index 54bcfc3b2..b4bc3fd8f 100644 --- a/deploy.ci.api.mariadb.yml +++ b/deploy.ci.api.mariadb.yml @@ -25,10 +25,6 @@ composer: regions: EU: services: - mail: - sender: - name: Spryker No-Reply - email: no-reply@spryker.local database: database: eu-docker username: spryker @@ -108,14 +104,6 @@ services: search: engine: elastic version: '7.10' - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true - mail_catcher: - engine: mailhog - webdriver: - engine: chromedriver docker: ssl: diff --git a/deploy.ci.api.yml b/deploy.ci.api.yml index 57680fac0..dc209d313 100644 --- a/deploy.ci.api.yml +++ b/deploy.ci.api.yml @@ -26,10 +26,6 @@ composer: regions: EU: services: - mail: - sender: - name: Spryker No-Reply - email: no-reply@spryker.local database: database: eu-docker username: spryker @@ -108,14 +104,6 @@ services: search: engine: elastic version: 7.6 - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true - mail_catcher: - engine: mailhog - webdriver: - engine: chromedriver docker: ssl: diff --git a/deploy.ci.functional.dynamic-store-off.yml b/deploy.ci.functional.dynamic-store-off.yml index d2388ddb1..83159f008 100644 --- a/deploy.ci.functional.dynamic-store-off.yml +++ b/deploy.ci.functional.dynamic-store-off.yml @@ -129,12 +129,6 @@ services: search: engine: elastic version: '7.10' - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true - mail_catcher: - engine: mailhog docker: diff --git a/deploy.ci.functional.mariadb.dynamic-store-off.yml b/deploy.ci.functional.mariadb.dynamic-store-off.yml index c8295a59e..9070cebfb 100644 --- a/deploy.ci.functional.mariadb.dynamic-store-off.yml +++ b/deploy.ci.functional.mariadb.dynamic-store-off.yml @@ -130,12 +130,6 @@ services: search: engine: elastic version: '7.10' - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true - mail_catcher: - engine: mailhog docker: diff --git a/deploy.ci.functional.mariadb.yml b/deploy.ci.functional.mariadb.yml index 4d6ae0722..9901ba40a 100644 --- a/deploy.ci.functional.mariadb.yml +++ b/deploy.ci.functional.mariadb.yml @@ -26,10 +26,6 @@ composer: regions: EU: services: - mail: - sender: - name: Spryker No-Reply - email: no-reply@spryker.local database: database: eu-docker username: spryker @@ -111,14 +107,6 @@ services: search: engine: elastic version: '7.10' - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true - mail_catcher: - engine: mailhog - webdriver: - engine: chromedriver docker: ssl: diff --git a/deploy.ci.functional.yml b/deploy.ci.functional.yml index e090db8b0..a3592b454 100644 --- a/deploy.ci.functional.yml +++ b/deploy.ci.functional.yml @@ -26,10 +26,6 @@ composer: regions: EU: services: - mail: - sender: - name: Spryker No-Reply - email: no-reply@spryker.local database: database: eu-docker username: spryker @@ -107,14 +103,6 @@ services: search: engine: elastic version: '7.10' - scheduler: - engine: jenkins - version: '2.442' - csrf-protection-enabled: true - mail_catcher: - engine: mailhog - webdriver: - engine: chromedriver docker: ssl: