Skip to content

Commit 13dcae6

Browse files
committed
Merge branch 'rc/1.69.5' into release
2 parents 847d657 + 48592d7 commit 13dcae6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+801
-345
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: 'Renderdiff Generate'
2+
description: 'Sets up prerequisites and runs the generate script for renderdiff'
3+
runs:
4+
using: "composite"
5+
steps:
6+
- uses: ./.github/actions/mac-prereq
7+
- uses: ./.github/actions/get-gltf-assets
8+
- uses: ./.github/actions/get-mesa
9+
- uses: ./.github/actions/get-vulkan-sdk
10+
- name: Prerequisites
11+
run: |
12+
# Must have at least clang-16 for a webgpu/dawn build.
13+
sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
14+
shell: bash
15+
- name: Generate images
16+
run: |
17+
TEST_DIR=test/renderdiff
18+
source ${TEST_DIR}/src/preamble.sh
19+
set -eux
20+
bash ${TEST_DIR}/generate.sh
21+
set +eux
22+
shell: bash
23+
- name: Build diffimg tool
24+
run: |
25+
./build.sh release diffimg
26+
shell: bash

.github/workflows/postsubmit-main.yml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,52 @@ jobs:
1010
# a branch on filament-assets.
1111
update-renderdiff-goldens:
1212
name: update-renderdiff-goldens
13-
runs-on: 'ubuntu-24.04-4core'
13+
runs-on: 'macos-14-xlarge'
1414
steps:
1515
- uses: actions/checkout@v4.1.6
1616
with:
1717
fetch-depth: 0
18-
- uses: ./.github/actions/linux-prereq
1918
- id: get_commit_msg
2019
uses: ./.github/actions/get-commit-msg
21-
- name: Build diffimg
22-
run: ./build.sh release diffimg
20+
- name: Check if accepting new goldens
21+
id: check_accept
22+
env:
23+
COMMIT_MESSAGE: ${{ steps.get_commit_msg.outputs.msg }}
24+
run: |
25+
if echo "${COMMIT_MESSAGE}" | python3 test/renderdiff/src/commit_msg.py --mode=accept_new_goldens; then
26+
echo "accept=true" >> "$GITHUB_OUTPUT"
27+
else
28+
echo "accept=false" >> "$GITHUB_OUTPUT"
29+
fi
30+
shell: bash
31+
- name: Renderdiff Generate for new goldens
32+
if: steps.check_accept.outputs.accept == 'true'
33+
uses: ./.github/actions/renderdiff-generate
2334
- name: Run update script
2435
env:
2536
GH_TOKEN: ${{ secrets.FILAMENTBOT_TOKEN }}
2637
COMMIT_MESSAGE: ${{ steps.get_commit_msg.outputs.msg }}
2738
run: |
2839
GOLDEN_BRANCH=$(echo "${COMMIT_MESSAGE}" | python3 test/renderdiff/src/commit_msg.py)
2940
COMMIT_HASH="${{ steps.get_commit_msg.outputs.hash }}"
41+
42+
git config --global user.email "filament.bot@gmail.com"
43+
git config --global user.name "Filament Bot"
44+
git config --global credential.helper cache
45+
46+
if [[ "${{ steps.check_accept.outputs.accept }}" == "true" ]]; then
47+
SHORT_HASH="${COMMIT_HASH:0:8}"
48+
GOLDEN_BRANCH="accept-goldens-${SHORT_HASH}"
49+
echo "Generating new goldens for branch ${GOLDEN_BRANCH}"
50+
python3 test/renderdiff/src/update_golden.py \
51+
--branch=${GOLDEN_BRANCH} \
52+
--source=$(pwd)/out/renderdiff/renders \
53+
--commit-msg="Auto-update goldens from ${COMMIT_HASH}" \
54+
--push-to-remote \
55+
--golden-repo-token=${GH_TOKEN}
56+
fi
57+
3058
if [[ "${GOLDEN_BRANCH}" != "main" ]]; then
31-
git config --global user.email "filament.bot@gmail.com"
32-
git config --global user.name "Filament Bot"
33-
git config --global credential.helper cache
3459
echo "branch==${GOLDEN_BRANCH}"
3560
echo "hash==${COMMIT_HASH}"
3661
python3 test/renderdiff/src/update_golden.py --branch=${GOLDEN_BRANCH} \

.github/workflows/presubmit.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,18 +126,24 @@ jobs:
126126
- uses: actions/checkout@v4.1.6
127127
with:
128128
fetch-depth: 0
129-
- uses: ./.github/actions/mac-prereq
130-
- uses: ./.github/actions/get-gltf-assets
131-
- uses: ./.github/actions/get-mesa
132-
- uses: ./.github/actions/get-vulkan-sdk
133129
- id: get_commit_msg
134130
uses: ./.github/actions/get-commit-msg
135-
- name: Prerequisites
131+
- name: Check if accepting new goldens
132+
id: check_accept
133+
env:
134+
COMMIT_MESSAGE: ${{ steps.get_commit_msg.outputs.msg }}
136135
run: |
137-
# Must have at least clang-16 for a webgpu/dawn build.
138-
sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
136+
if echo "${COMMIT_MESSAGE}" | python3 test/renderdiff/src/commit_msg.py --mode=accept_new_goldens; then
137+
echo "accept=true" >> "$GITHUB_OUTPUT"
138+
else
139+
echo "accept=false" >> "$GITHUB_OUTPUT"
140+
fi
139141
shell: bash
142+
- name: Renderdiff Generate
143+
if: steps.check_accept.outputs.accept != 'true'
144+
uses: ./.github/actions/renderdiff-generate
140145
- name: Render and compare
146+
if: steps.check_accept.outputs.accept != 'true'
141147
id: render_compare
142148
env:
143149
COMMIT_MESSAGE: ${{ steps.get_commit_msg.outputs.msg }}
@@ -146,9 +152,6 @@ jobs:
146152
source ${TEST_DIR}/src/preamble.sh
147153
set -eux
148154
GOLDEN_BRANCH=$(echo "${COMMIT_MESSAGE}" | python3 ${TEST_DIR}/src/commit_msg.py)
149-
bash ${TEST_DIR}/generate.sh
150-
# Build diffimg tool
151-
./build.sh release diffimg
152155
153156
python3 ${TEST_DIR}/src/golden_manager.py \
154157
--branch=${GOLDEN_BRANCH} \
@@ -172,10 +175,12 @@ jobs:
172175
fi
173176
shell: bash
174177
- uses: actions/upload-artifact@v4
178+
if: steps.check_accept.outputs.accept != 'true'
175179
with:
176180
name: presubmit-renderdiff-result
177181
path: ./out/renderdiff
178182
- name: Compare result
183+
if: steps.check_accept.outputs.accept != 'true'
179184
run: |
180185
ERROR_STR="${{ steps.render_compare.outputs.err }}"
181186
if [ -n "${ERROR_STR}" ]; then

NEW_RELEASE_NOTES.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,3 @@
66
appropriate header in [RELEASE_NOTES.md](./RELEASE_NOTES.md).
77

88
## Release notes for next branch cut
9-
10-
- engine: fix crash when using variance shadow maps

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repositories {
3131
}
3232
3333
dependencies {
34-
implementation 'com.google.android.filament:filament-android:1.69.4'
34+
implementation 'com.google.android.filament:filament-android:1.69.5'
3535
}
3636
```
3737

@@ -50,7 +50,7 @@ Here are all the libraries available in the group `com.google.android.filament`:
5050
iOS projects can use CocoaPods to install the latest release:
5151

5252
```shell
53-
pod 'Filament', '~> 1.69.4'
53+
pod 'Filament', '~> 1.69.5'
5454
```
5555

5656
## Documentation

RELEASE_NOTES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ A new header is inserted each time a *tag* is created.
77
Instead, if you are authoring a PR for the main branch, add your release note to
88
[NEW_RELEASE_NOTES.md](./NEW_RELEASE_NOTES.md).
99

10+
## v1.69.5
11+
12+
- engine: fix crash when using variance shadow maps
13+
1014
## v1.69.4
1115

1216

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
GROUP=com.google.android.filament
2-
VERSION_NAME=1.69.4
2+
VERSION_NAME=1.69.5
33

44
POM_DESCRIPTION=Real-time physically based rendering engine for Android.
55

build/common/upload-release-assets/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/dup/intro.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ <h3 id="android"><a class="header" href="#android">Android</a></h3>
181181
}
182182

183183
dependencies {
184-
implementation 'com.google.android.filament:filament-android:1.69.2'
184+
implementation 'com.google.android.filament:filament-android:1.69.3'
185185
}
186186
</code></pre>
187187
<p>Here are all the libraries available in the group <code>com.google.android.filament</code>:</p>
@@ -195,7 +195,7 @@ <h3 id="android"><a class="header" href="#android">Android</a></h3>
195195
</div>
196196
<h3 id="ios"><a class="header" href="#ios">iOS</a></h3>
197197
<p>iOS projects can use CocoaPods to install the latest release:</p>
198-
<pre><code class="language-shell">pod 'Filament', '~&gt; 1.69.2'
198+
<pre><code class="language-shell">pod 'Filament', '~&gt; 1.69.3'
199199
</code></pre>
200200
<h2 id="documentation"><a class="header" href="#documentation">Documentation</a></h2>
201201
<ul>

docs/dup/test_ci_renderdiff.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,27 @@ <h3 id="manually-updating-the-golden-repo"><a class="header" href="#manually-upd
263263
<li>If the PR is merged, then there is another workflow that will merge <code>my-pr-branch-golden</code>
264264
to the <code>main</code> branch of the golden repo.</li>
265265
</ul>
266+
<h3 id="automated-update-via-commit-message"><a class="header" href="#automated-update-via-commit-message">Automated update via commit message</a></h3>
267+
<p>Alternatively, if you are confident in your changes and want the CI to handle the update
268+
for you, you can use the following tag in your commit message:</p>
269+
<ul>
270+
<li>In the commit message of your working branch on <code>filament</code>, add the following line:
271+
<pre><code>RDIFF_ACCEPT_NEW_GOLDENS
272+
</code></pre>
273+
</li>
274+
</ul>
275+
<p>This has the following effects:</p>
276+
<ul>
277+
<li>The presubmit test <code>test-renderdiff</code> will be bypassed (it will not perform rendering or
278+
comparison).</li>
279+
<li>When the PR is merged, the postsubmit CI will automatically:
280+
<ol>
281+
<li>Build Filament and generate the new images.</li>
282+
<li>Upload them to a temporary branch in <code>filament-assets</code>.</li>
283+
<li>Merge that branch into <code>main</code>.</li>
284+
</ol>
285+
</li>
286+
</ul>
266287
<h2 id="viewing-test-results"><a class="header" href="#viewing-test-results">Viewing test results</a></h2>
267288
<p>We provide a viewer for looking at the result of a test run. The viewer is a webapp that can
268289
be used by pointing your browser to a localhost port. If you input the viewer with a PR or a

0 commit comments

Comments
 (0)