diff --git a/.github/workflows/reassurePerformanceTests.yml b/.github/workflows/reassurePerformanceTests.yml index fffdb32c3b70..7ede3eae4122 100644 --- a/.github/workflows/reassurePerformanceTests.yml +++ b/.github/workflows/reassurePerformanceTests.yml @@ -5,7 +5,6 @@ on: types: [opened, synchronize] branches-ignore: [staging, production] paths-ignore: [docs/**, .github/**, contributingGuides/**, tests/**, workflow_tests/**, '**.md', '**.sh'] - jobs: perf-tests: if: ${{ github.actor != 'OSBotify' }} @@ -21,7 +20,6 @@ jobs: run: | git config --global user.email "test@test.com" git config --global user.name "Test" - - name: Run performance testing script shell: bash run: | @@ -29,48 +27,21 @@ jobs: BASELINE_BRANCH=${BASELINE_BRANCH:="main"} git fetch origin "$BASELINE_BRANCH" --no-tags --depth=1 git switch "$BASELINE_BRANCH" - - # Clear node_modules and reinstall dependencies - rm -rf node_modules npm install --force - - # Check if the patch files exist and apply them - if [ -d "patches" ]; then - for file in patches/*.patch; do - if [ -e "$file" ]; then - npx patch-package `basename $file | sed -e 's/+[0-9]*+.*.patch$//'` - fi - done - fi - npx reassure --baseline git switch --force --detach - git merge --no-commit --allow-unrelated-histories "$BASELINE_BRANCH" -X ours - - # Repeat clearing node_modules and reinstalling for the feature branch - rm -rf node_modules npm install --force - - if [ -d "patches" ]; then - for file in patches/*.patch; do - if [ -e "$file" ]; then - npx patch-package `basename $file | sed -e 's/+[0-9]*+.*.patch$//'` - fi - done - fi - npx reassure --branch - - name: Read output.json id: reassure uses: juliangruber/read-file-action@v1 with: path: .reassure/output.json - - name: Validate output.json id: validateReassureOutput uses: ./.github/actions/javascript/validateReassureOutput with: DURATION_DEVIATION_PERCENTAGE: 20 COUNT_DEVIATION: 0 - REGRESSION_OUTPUT: ${{ steps.reassure.outputs.content }} + REGRESSION_OUTPUT: ${{ steps.reassure.outputs.content }} \ No newline at end of file