]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
dashboard-e2e: fix applitools BATCH_ID error 1908/head
authorErnesto Puerta <epuertat@redhat.com>
Tue, 21 Sep 2021 09:26:04 +0000 (11:26 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Wed, 29 Sep 2021 19:30:40 +0000 (21:30 +0200)
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
ceph-api-nightly/config/definitions/ceph-api-nightly.yml
ceph-dashboard-pull-requests/config/definitions/ceph-dashboard-pull-requests.yml

index 35ecc98a230e789fde40987964423e65d0547fd1..2840062defaf48ec17c2b8fd2e465fe70100da66 100644 (file)
             -  ../../../scripts/dashboard/{test_deps_script}
       - shell: |
           export CYPRESS_ARGS="--record --key $CYPRESS_RECORD_KEY --tag $JOB_NAME" COMMIT_INFO_MESSAGE="$JOB_NAME"
+          export APPLITOOLS_BATCH_ID="${{JOB_NAME}}_${{BUILD_TAG}}"
+          export APPLITOOLS_BRANCH_NAME="$ghprbSourceBranch"
+          export APPLITOOLS_PARENT_BRANCH_NAME="$ghprbTargetBranch"
+          mkdir -p .applitools
+          echo "$APPLITOOLS_BATCH_ID" > .applitools/BATCH_ID
           cd src/pybind/mgr/dashboard; timeout 2h ./{test_suite_script}
 
     wrappers:
index 27cb993d8be430a01be924965271c874a1ac6da3..45a2249cc1579f7d0ed3937748d6af515c8a2e4e 100644 (file)
             - ../../../scripts/dashboard/install-e2e-test-deps.sh
       - shell: |
           export CYPRESS_ARGS="--record --key $CYPRESS_RECORD_KEY --tag $ghprbTargetBranch" COMMIT_INFO_MESSAGE="$ghprbPullTitle"
+          export APPLITOOLS_BATCH_ID="PR-${ghprbPullId}_${BUILD_TAG}"
+          export APPLITOOLS_BRANCH_NAME="$ghprbSourceBranch"
+          export APPLITOOLS_PARENT_BRANCH_NAME="$ghprbTargetBranch"
+          mkdir -p .applitools
+          echo "$APPLITOOLS_BATCH_ID" > .applitools/BATCH_ID
           cd src/pybind/mgr/dashboard; timeout 7200 ./run-frontend-e2e-tests.sh
 
     wrappers: