Skip to content

Comments

renderdiff: enable update goldens on commit merge#8771

Merged
poweifeng merged 1 commit intomainfrom
pf/renderdiff-brach-comp-update
Jun 2, 2025
Merged

renderdiff: enable update goldens on commit merge#8771
poweifeng merged 1 commit intomainfrom
pf/renderdiff-brach-comp-update

Conversation

@poweifeng
Copy link
Contributor

No description provided.

@poweifeng poweifeng added the internal Issue/PR does not affect clients label May 22, 2025
@poweifeng poweifeng changed the base branch from pf/renderdiff-add-viewer to main May 22, 2025 22:54
@poweifeng poweifeng force-pushed the pf/renderdiff-brach-comp-update branch 2 times, most recently from 49a6a3c to fbcfbc1 Compare May 22, 2025 23:02
@poweifeng poweifeng force-pushed the pf/renderdiff-brach-comp-update branch from fbcfbc1 to ff0f8eb Compare May 22, 2025 23:04
@poweifeng poweifeng force-pushed the pf/renderdiff-brach-comp-update branch 21 times, most recently from fa7fdae to 237ef4d Compare May 23, 2025 05:24
@poweifeng poweifeng changed the base branch from main to pf/renderdiff-add-viewer May 23, 2025 05:25
@poweifeng poweifeng force-pushed the pf/renderdiff-brach-comp-update branch from 237ef4d to 34878e8 Compare May 23, 2025 21:36
@poweifeng poweifeng force-pushed the pf/renderdiff-brach-comp-update branch 9 times, most recently from 0af75aa to 622c126 Compare May 23, 2025 23:25
@poweifeng poweifeng force-pushed the pf/renderdiff-brach-comp-update branch 8 times, most recently from b1199dc to 636a922 Compare May 24, 2025 00:14
Comment on lines +13 to +38
name: update-renderdiff-goldens
runs-on: 'ubuntu-24.04-4core'
steps:
- uses: actions/checkout@v4.1.6
with:
fetch-depth: 0
- uses: ./.github/actions/linux-prereq
- id: get_commit_msg
uses: ./.github/actions/get-commit-msg
- name: Prerequisites
run: pip install tifffile numpy
- name: Run update script
env:
GH_TOKEN: ${{ secrets.FILAMENTBOT_TOKEN }}
run: |
GOLDEN_BRANCH=$(echo "${{ steps.get_commit_msg.outputs.msg }}" | python3 test/renderdiff/src/commit_msg.py)
COMMIT_HASH=$(echo "${{ steps.get_commit_msg.outputs.msg }}" | head -n 1 | tr -d 'commit ')
if [[ "${GOLDEN_BRANCH}" != "main" ]]; then
git config --global user.email "filament.bot@gmail.com"
git config --global user.name "Filament Bot"
git config --global credential.helper cache
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

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
@poweifeng poweifeng changed the base branch from main to pf/renderdiff-add-viewer May 24, 2025 05:04
@poweifeng poweifeng changed the title DRAFT renderdiff: enable update goldens on commit merge renderdiff: enable update goldens on commit merge May 28, 2025
@poweifeng poweifeng marked this pull request as ready for review May 28, 2025 19:51
Base automatically changed from pf/renderdiff-add-viewer to main June 2, 2025 19:37
@poweifeng poweifeng force-pushed the pf/renderdiff-brach-comp-update branch from 636a922 to 75888ec Compare June 2, 2025 20:46
@poweifeng poweifeng requested review from bejado and z3moon June 2, 2025 20:47
@poweifeng poweifeng merged commit 3da7dab into main Jun 2, 2025
17 checks passed
@poweifeng poweifeng deleted the pf/renderdiff-brach-comp-update branch June 2, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Issue/PR does not affect clients

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants