webgpu: update dawn to chromium/8021 (#10373) #760
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Postsubmit Tasks' | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| # Update the renderdiff goldens in filament-assets. This will add or merge the new goldens from | |
| # a branch on filament-assets. | |
| update-renderdiff-goldens: | |
| name: update-renderdiff-goldens | |
| runs-on: 'macos-14' | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| fetch-depth: 0 | |
| - id: get_commit_msg | |
| uses: ./.github/actions/get-commit-msg | |
| - name: Check if accepting new goldens | |
| id: check_accept | |
| env: | |
| COMMIT_MESSAGE: ${{ steps.get_commit_msg.outputs.msg }} | |
| run: | | |
| if echo "${COMMIT_MESSAGE}" | python3 test/renderdiff/src/commit_msg.py --mode=accept_new_goldens; then | |
| echo "accept=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "accept=false" >> "$GITHUB_OUTPUT" | |
| fi | |
| shell: bash | |
| - name: Renderdiff Generate for new goldens | |
| if: steps.check_accept.outputs.accept == 'true' | |
| uses: ./.github/actions/renderdiff-generate | |
| - name: Run update script | |
| env: | |
| GH_TOKEN: ${{ secrets.FILAMENTBOT_TOKEN }} | |
| COMMIT_MESSAGE: ${{ steps.get_commit_msg.outputs.msg }} | |
| COMMIT_HASH: ${{ steps.get_commit_msg.outputs.hash }} | |
| ACCEPT_OUTPUT: ${{ steps.check_accept.outputs.accept }} | |
| run: | | |
| GOLDEN_BRANCH=$(echo "${COMMIT_MESSAGE}" | python3 test/renderdiff/src/commit_msg.py) | |
| git config --global user.email "filament.bot@gmail.com" | |
| git config --global user.name "Filament Bot" | |
| git config --global credential.helper cache | |
| if [[ ${ACCEPT_OUTPUT} == "true" ]]; then | |
| SHORT_HASH="${COMMIT_HASH:0:8}" | |
| GOLDEN_BRANCH="accept-goldens-${SHORT_HASH}" | |
| echo "Generating new goldens for branch ${GOLDEN_BRANCH}" | |
| python3 test/renderdiff/src/update_golden.py \ | |
| --branch=${GOLDEN_BRANCH} \ | |
| --source=$(pwd)/out/renderdiff/renders \ | |
| --commit-msg="Auto-update goldens from ${COMMIT_HASH}" \ | |
| --push-to-remote \ | |
| --golden-repo-token=${GH_TOKEN} | |
| fi | |
| if [[ "${GOLDEN_BRANCH}" != "main" ]]; then | |
| echo "branch==${GOLDEN_BRANCH}" | |
| echo "hash==${COMMIT_HASH}" | |
| python3 test/renderdiff/src/update_golden.py --branch=${GOLDEN_BRANCH} \ | |
| --merge-to-main --filament-tag=${COMMIT_HASH} --golden-repo-token=${GH_TOKEN} | |
| fi | |
| # Update the /docs (offiicla github-hosted Filament site) if necessary | |
| update-docs: | |
| name: update-docs | |
| runs-on: 'ubuntu-24.04-4core' | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/linux-prereq | |
| - id: get_commit_msg | |
| uses: ./.github/actions/get-commit-msg | |
| - uses: ./.github/actions/web-prereq | |
| - name: Prerequisites | |
| run: | | |
| pip install selenium | |
| - name: Run update script | |
| env: | |
| GH_TOKEN: ${{ secrets.FILAMENTBOT_TOKEN }} | |
| COMMIT_HASH: ${{ steps.get_commit_msg.outputs.hash }} | |
| run: | | |
| bash docs_src/build/install_mdbook.sh && source ~/.bashrc | |
| git config --global user.email "filament.bot@gmail.com" | |
| git config --global user.name "Filament Bot" | |
| git config --global credential.helper cache | |
| bash docs_src/build/postsubmit.sh ${COMMIT_HASH} ${GH_TOKEN} | |
| # Produce a json that describes the android artifact sizes, and will push that json to a folder in | |
| # filament-assets | |
| update-sizeguard: | |
| name: update-sizeguard | |
| runs-on: 'ubuntu-24.04-4core' | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| with: | |
| fetch-depth: 0 | |
| - uses: ./.github/actions/linux-prereq | |
| - uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - id: get_commit_msg | |
| uses: ./.github/actions/get-commit-msg | |
| - name: Build and generate size report | |
| env: | |
| COMMIT_HASH: ${{ steps.get_commit_msg.outputs.hash }} | |
| run: | | |
| cd build/android && printf "y" | ./build.sh release all | |
| cd ../.. | |
| python3 test/sizeguard/dump_artifact_size.py out/*.tgz out/*.aar > "${COMMIT_HASH}.json" | |
| - name: Push to filament-assets | |
| env: | |
| GH_TOKEN: ${{ secrets.FILAMENTBOT_TOKEN }} | |
| COMMIT_HASH: "${{ steps.get_commit_msg.outputs.hash }}" | |
| run: | | |
| git config --global user.email "filament.bot@gmail.com" | |
| git config --global user.name "Filament Bot" | |
| git clone https://x-access-token:${GH_TOKEN}@github.com/google/filament-assets.git filament-assets | |
| mkdir -p filament-assets/sizeguard | |
| mv "${COMMIT_HASH}.json" filament-assets/sizeguard/ | |
| cd filament-assets | |
| git add sizeguard/"${COMMIT_HASH}.json" | |
| git commit -m "Update sizeguard for filament@${COMMIT_HASH}" || echo "No changes to commit" | |
| git push https://x-access-token:${GH_TOKEN}@github.com/google/filament-assets.git main |