From 2b2da8deabcf6be941f39ea2c5b07d0ce33a780d Mon Sep 17 00:00:00 2001 From: Emil Ghitta Date: Fri, 6 Dec 2024 17:25:36 +0200 Subject: [PATCH] - Bump playwright to use 6 threads and rerun tests on failure twice. --- .github/workflows/playwright.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index c690e38da0e..5dc72dd168c 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -107,34 +107,34 @@ jobs: declare all_test_suites=("homePageTests" "topNavbarTests" "footerSectionTests" "contributePagesTests" "messagingSystem" "messagingSystemCleanup" "userContributionTests" "userProfile" "userSettings" "editUserProfileTests" "userQuestions" "contactSupportPage" "productSolutionsPage" "productSupportPage" "productTopicsPage" "aaqPage" "postedQuestions" "kbProductsPage" "kbArticleCreationAndAccess" "beforeThreadTests" "articleThreads" "afterThreadTests" "kbArticleShowHistory" "recentRevisionsDashboard" "kbDashboard" "kbRestrictedVisibility" "kbArticleTranslation" "exploreByTopics" "searchTests" "userGroupsTests") if [ "$dispatch_test_suite" == "All" ] || [ "${{ github.event_name}}" == "schedule" ] ; then for test in "${all_test_suites[@]}"; do - if ! poetry run pytest -m ${test} --numprocesses 4 --browser ${{ env.BROWSER }} --reruns 1; then + if ! poetry run pytest -m ${test} --numprocesses 6 --browser ${{ env.BROWSER }} --reruns 2; then any_failures=true fi done elif [ "$dispatch_test_suite" == "User Pages" ]; then for test in "userContributionTests" "userProfile" "userSettings" "editUserProfileTests" "userQuestions"; do - if ! poetry run pytest -m ${test} --numprocesses 4 --browser ${{ env.BROWSER }} --reruns 1; then + if ! poetry run pytest -m ${test} --numprocesses 6 --browser ${{ env.BROWSER }} --reruns 2; then any_failures=true fi done elif [ "$dispatch_test_suite" == "AAQ" ]; then for test in "aaqPage" "postedQuestions"; do - if ! poetry run pytest -m ${test} --numprocesses 4 --browser ${{ env.BROWSER }} --reruns 1; then + if ! poetry run pytest -m ${test} --numprocesses 6 --browser ${{ env.BROWSER }} --reruns 2; then any_failures=true fi done elif [ "$dispatch_test_suite" == "KB Articles" ]; then for test in "kbProductsPage" "kbArticleCreationAndAccess" "beforeThreadTests" "articleThreads" "afterThreadTests" "kbArticleShowHistory"; do - if ! poetry run pytest -m ${test} --numprocesses 4 --browser ${{ env.BROWSER }} --reruns 1; then + if ! poetry run pytest -m ${test} --numprocesses 6 --browser ${{ env.BROWSER }} --reruns 2; then any_failures=true fi done elif [ "$dispatch_test_suite" == "KB Article Translation" ]; then - if ! poetry run pytest -m kbArticleTranslation --numprocesses 4 --browser ${{ env.BROWSER }} --reruns 1; then + if ! poetry run pytest -m kbArticleTranslation --numprocesses 6 --browser ${{ env.BROWSER }} --reruns 2; then any_failures=true fi else - if ! poetry run pytest -m $dispatch_test_suite --numprocesses 4 --browser ${{ env.BROWSER }} --reruns 1; then + if ! poetry run pytest -m $dispatch_test_suite --numprocesses 6 --browser ${{ env.BROWSER }} --reruns 2; then any_failures=true fi fi