diff --git a/.github/workflows/update_v8_snapshot_cache.yml b/.github/workflows/update_v8_snapshot_cache.yml index fc36072a2606..8305e509424a 100644 --- a/.github/workflows/update_v8_snapshot_cache.yml +++ b/.github/workflows/update_v8_snapshot_cache.yml @@ -57,14 +57,20 @@ jobs: steps: - name: Determine snapshot files - Windows if: ${{ matrix.platform == 'windows-latest' }} - run: echo "SNAPSHOT_FILES='tooling\v8-snapshot\cache\win32\snapshot-meta.json'" >> $GITHUB_ENV + run: | + echo "SNAPSHOT_FILES='tooling\v8-snapshot\cache\win32\snapshot-meta.json'" >> $GITHUB_ENV + echo "PLATFORM='windows'" >> $GITHUB_ENV shell: bash - name: Determine snapshot files - Linux if: ${{ matrix.platform == 'ubuntu-latest' }} - run: echo "SNAPSHOT_FILES='tooling/v8-snapshot/cache/linux/snapshot-meta.json'" >> $GITHUB_ENV + run: | + echo "SNAPSHOT_FILES='tooling/v8-snapshot/cache/linux/snapshot-meta.json'" >> $GITHUB_ENV + echo "PLATFORM='linux'" >> $GITHUB_ENV - name: Determine snapshot files - Mac if: ${{ matrix.platform == 'macos-latest' }} - run: echo "SNAPSHOT_FILES='tooling/v8-snapshot/cache/darwin/snapshot-meta.json'" >> $GITHUB_ENV + run: | + echo "SNAPSHOT_FILES='tooling/v8-snapshot/cache/darwin/snapshot-meta.json'" >> $GITHUB_ENV + echo "PLATFORM='darwin'" >> $GITHUB_ENV - name: Install setuptools - Mac if: ${{ matrix.platform == 'macos-latest' }} run: sudo -H pip install setuptools @@ -85,7 +91,8 @@ jobs: node-version: 18 cache: 'yarn' - name: Run yarn - run: yarn + # set the timeout here to try and deal with Windows slowness + run: yarn --network-timeout 300000 - name: Run build run: yarn build - name: Generate prod snapshot from scratch @@ -108,8 +115,8 @@ jobs: - name: Determine branch name - commit to separate branch if: ${{ inputs.commit_directly_to_branch != true }} run: | - echo "BRANCH_NAME=update-v8-snapshot-cache-on-${{ env.BASE_BRANCH }}" >> $GITHUB_ENV - echo "BRANCH_EXISTS=$(git show-ref --verify --quiet refs/remotes/origin/update-v8-snapshot-cache-on-${{ env.BASE_BRANCH }} && echo 'true')" >> $GITHUB_ENV + echo "BRANCH_NAME=update-v8-snapshot-cache-on-${{ env.BASE_BRANCH }}-${{ env.PLATFORM }}" >> $GITHUB_ENV + echo "BRANCH_EXISTS=$(git show-ref --verify --quiet refs/remotes/origin/update-v8-snapshot-cache-on-${{ env.BASE_BRANCH }}-${{ env.PLATFORM }} && echo 'true')" >> $GITHUB_ENV shell: bash - name: Check need for PR or branch update id: check-need-for-pr @@ -152,7 +159,7 @@ jobs: github, baseBranch: '${{ env.BASE_BRANCH }}', branchName: '${{ env.BRANCH_NAME }}', - description: 'Update v8 snapshot cache', + description: 'Update v8 snapshot cache - ${{ env.PLATFORM }}', body: 'This PR was automatically generated by the [update-v8-snapshot-cache](https://github.com/cypress-io/cypress/actions/workflows/update_v8_snapshot_cache.yml) github action.', reviewers: ['ryanthemanuel'] })