Skip to content

Commit 25f3d3d

Browse files
committed
Merge release v25.05
2 parents 47117bc + 822f0ae commit 25f3d3d

File tree

1,945 files changed

+170904
-18460
lines changed

Some content is hidden

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

1,945 files changed

+170904
-18460
lines changed

.github/pull_request_template.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
### Checklist
88

9-
[ ] I have created this PR based on the dev branch
9+
- [ ] I have created this PR based on the dev branch
1010

11-
[ ] I have followed the [coding conventions](https://openusd.org/release/api/_page__coding__guidelines.html)
11+
- [ ] I have followed the [coding conventions](https://openusd.org/release/api/_page__coding__guidelines.html)
1212

13-
[ ] I have added unit tests that exercise this functionality (Reference:
14-
[testing guidelines](https://openusd.org/release/api/_page__testing__guidelines.html))
13+
- [ ] I have added unit tests that exercise this functionality (Reference:
14+
[testing guidelines](https://openusd.org/release/api/_page__testing__guidelines.html))
1515

16-
[ ] I have verified that all unit tests pass with the proposed changes
16+
- [ ] I have verified that all unit tests pass with the proposed changes
1717

18-
[ ] I have submitted a signed Contributor License Agreement (Reference:
19-
[Contributor License Agreement instructions](https://openusd.org/release/contributing_to_usd.html#contributor-license-agreement))
18+
- [ ] I have submitted a signed Contributor License Agreement (Reference:
19+
[Contributor License Agreement instructions](https://openusd.org/release/contributing_to_usd.html#contributor-license-agreement))

.github/workflows/buildusd.yml

Lines changed: 52 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@ on:
55
branches:
66
- dev
77
- release
8-
issue_comment:
8+
issue_comment:
99
types: [created]
1010

11-
env:
12-
PYTHON_VERSION: "3.9"
13-
PYTHON_VERSION_MAC: "3.11"
14-
1511
jobs:
1612
GetUser:
17-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-22.04
1814
timeout-minutes: 5
1915
outputs:
2016
require-result: ${{ steps.check.outputs.require-result }}
@@ -24,8 +20,9 @@ jobs:
2420
with:
2521
require: 'write'
2622
username: ${{ github.event.comment.user.login }}
23+
2724
GetGitRef:
28-
runs-on: ubuntu-20.04
25+
runs-on: ubuntu-22.04
2926
timeout-minutes: 5
3027
outputs:
3128
ref: ${{ steps.setter.outputs.ref }}
@@ -45,13 +42,17 @@ jobs:
4542
id: setter
4643
run: |
4744
echo "ref=$REF" >> "$GITHUB_OUTPUT"
45+
4846
Linux:
49-
needs: [GetUser, GetGitRef]
47+
needs:
48+
- GetUser
49+
- GetGitRef
5050
if: ${{ (github.event.issue.pull_request && contains(github.event.comment.body, '/AzurePipelines run') && needs.GetUser.outputs.require-result == 'true' ) || github.event_name == 'push' }}
51-
runs-on: ubuntu-20.04
51+
runs-on: ubuntu-22.04
52+
env:
53+
PYTHON_VERSION: "3.9"
5254
timeout-minutes: 120
5355
steps:
54-
- run: echo ${{ needs.GetUser.outputs.require-result }}
5556
- name: Checkout code
5657
uses: actions/checkout@v4
5758
with:
@@ -76,27 +77,35 @@ jobs:
7677
pip install PySide2 PyOpenGL
7778
- name: Build USD
7879
run: |
79-
python3 build_scripts/build_usd.py --no-materialx --build USDgen/build --src USDgen/src USDinst -v
80+
# Not using '--tests' to avoid building extra dependencies that are unneeded for headless tests
81+
python3 build_scripts/build_usd.py --no-materialx --build USDgen/build --src USDgen/src USDinst --build-args USD,"-DPXR_HEADLESS_TEST_MODE=ON -DPXR_BUILD_TESTS=ON" -v
8082
- name: Save build artifacts to cache
8183
if: steps.cache-usd-build-dependency.outputs.cache-hit != 'true'
8284
uses: actions/cache/save@v4
8385
with:
8486
path: |
8587
USDinst
86-
key: ${{ runner.os }}-BuildUSD-py${{ env.PYTHON_VERSION }}-${{ hashFiles('build_scripts/**/*') }}
88+
key: ${{ steps.cache-usd-build-dependency.outputs.cache-primary-key }}
8789
- name: Upload artifacts
8890
uses: actions/upload-artifact@v4
8991
with:
9092
name: usd-linux
9193
path: USDinst
94+
- name: Test USD
95+
working-directory: ./USDgen/build/OpenUSD
96+
run: |
97+
ctest -V -C Release
9298
9399
macOS:
94-
needs: [GetUser, GetGitRef]
100+
needs:
101+
- GetUser
102+
- GetGitRef
95103
if: ${{ (github.event.issue.pull_request && contains(github.event.comment.body, '/AzurePipelines run') && needs.GetUser.outputs.require-result == 'true' ) || github.event_name == 'push' }}
96104
runs-on: macos-13
105+
env:
106+
PYTHON_VERSION: "3.11"
97107
timeout-minutes: 120
98108
steps:
99-
- run: echo ${{ needs.GetUser.outputs.require-result }}
100109
- name: Checkout code
101110
uses: actions/checkout@v4
102111
with:
@@ -107,11 +116,11 @@ jobs:
107116
with:
108117
path: |
109118
USDinst
110-
key: ${{ runner.os }}-BuildUSD-py${{ env.PYTHON_VERSION_MAC }}-${{ hashFiles('build_scripts/**/*') }}
119+
key: ${{ runner.os }}-BuildUSD-py${{ env.PYTHON_VERSION }}-${{ hashFiles('build_scripts/**/*') }}
111120
- name: Install Python
112121
uses: actions/setup-python@v5
113122
with:
114-
python-version: ${{ env.PYTHON_VERSION_MAC }}
123+
python-version: ${{ env.PYTHON_VERSION }}
115124
check-latest: false
116125
- name: Install dependencies
117126
run: |
@@ -124,28 +133,37 @@ jobs:
124133
export -n SYSTEM_VERSION_COMPAT
125134
- name: Build USD
126135
run: |
136+
# Not using '--tests' to avoid building extra dependencies that are unneeded for headless tests
127137
export PATH=/Applications/CMake.app/Contents/bin:$PATH
128-
python3 build_scripts/build_usd.py --no-materialx --generator Xcode --build USDgen/build --src USDgen/src USDinst -v
138+
python3 build_scripts/build_usd.py --no-materialx --generator Xcode --build USDgen/build --src USDgen/src USDinst --build-args USD,"-DPXR_HEADLESS_TEST_MODE=ON -DPXR_BUILD_TESTS=ON" -v
129139
- name: Save build artifacts to cache
130140
if: steps.cache-usd-build-dependency.outputs.cache-hit != 'true'
131141
uses: actions/cache/save@v4
132142
with:
133143
path: |
134144
USDinst
135-
key: ${{ runner.os }}-BuildUSD-py${{ env.PYTHON_VERSION_MAC }}-${{ hashFiles('build_scripts/**/*') }}
145+
key: ${{ steps.cache-usd-build-dependency.outputs.cache-primary-key }}
136146
- name: Upload artifacts
137147
uses: actions/upload-artifact@v4
138148
with:
139149
name: usd-macOS
140150
path: USDinst
151+
- name: Test USD
152+
working-directory: ./USDgen/build/OpenUSD
153+
run: |
154+
export PATH=/Applications/CMake.app/Contents/bin:$PATH
155+
ctest -V -C Release
141156
142157
Windows:
143-
needs: [GetUser, GetGitRef]
158+
needs:
159+
- GetUser
160+
- GetGitRef
144161
if: ${{ (github.event.issue.pull_request && contains(github.event.comment.body, '/AzurePipelines run') && needs.GetUser.outputs.require-result == 'true' ) || github.event_name == 'push' }}
145162
runs-on: windows-2019
163+
env:
164+
PYTHON_VERSION: "3.9"
146165
timeout-minutes: 120
147166
steps:
148-
- run: echo ${{ needs.GetUser.outputs.require-result }}
149167
- name: Checkout code
150168
uses: actions/checkout@v4
151169
with:
@@ -168,23 +186,27 @@ jobs:
168186
python -m pip install PyOpenGL PySide2
169187
- name: Build USD
170188
run: |
171-
REM Unset BOOST_ROOT on Windows. The VS2017-Win2016 image
172-
REM sets this env var to a pre-installed boost which causes
173-
REM the USD build to favor this over the boost built by
174-
REM build_usd.py. This causes the build to fail, because
175-
REM the pre-installed boost does not include boost_python27
176-
call set BOOST_ROOT=
177-
python build_scripts/build_usd.py --no-materialx --generator "Visual Studio 16 2019" --build USDgen/build --src USDgen/src USDinst --build-args USD,"-DPXR_ENABLE_PRECOMPILED_HEADERS=OFF" -v
178-
shell: cmd
189+
# Not using '--tests' to avoid building extra dependencies that are unneeded for headless tests
190+
python build_scripts/build_usd.py --no-materialx --generator "Visual Studio 16 2019" --build USDgen/build --src USDgen/src USDinst --build-args USD,"-DPXR_ENABLE_PRECOMPILED_HEADERS=OFF -DPXR_HEADLESS_TEST_MODE=ON -DPXR_BUILD_TESTS=ON" -v
191+
shell: cmd
179192
- name: Save build artifacts to cache
180193
if: steps.cache-usd-build-dependency.outputs.cache-hit != 'true'
181194
uses: actions/cache/save@v4
182195
with:
183196
path: |
184197
USDinst
185-
key: ${{ runner.os }}-BuildUSD-py${{ env.PYTHON_VERSION }}-${{ hashFiles('build_scripts/**/*') }}
198+
key: ${{ steps.cache-usd-build-dependency.outputs.cache-primary-key }}
186199
- name: Upload artifacts
187200
uses: actions/upload-artifact@v4
188201
with:
189202
name: usd-win64
190-
path: USDinst
203+
path: USDinst
204+
- name: Test USD
205+
working-directory: ./USDgen/build/OpenUSD
206+
run: |
207+
call set PATH=D:\a\OpenUSD\OpenUSD\USDinst\bin;D:\a\OpenUSD\OpenUSD\USDinst\lib;D:\a\OpenUSD\OpenUSD\USDinst\share\usd\examples\plugin;D:\a\OpenUSD\OpenUSD\USDinst\plugin\usd;%PATH%
208+
call set PYTHONPATH=D:\a\OpenUSD\OpenUSD\USDinst\lib\python;%PYTHONPATH%
209+
# Internal ticket USD-8035
210+
ctest -V -C Release --exclude-regex "TfPathUtils"
211+
shell: cmd
212+

.github/workflows/pypi.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- TAG: cp312
4141
INTERPRETER: /opt/python/cp312-cp312/bin/python
4242
VERSION_SPEC: '3.12'
43-
runs-on: ubuntu-20.04
43+
runs-on: ubuntu-22.04
4444
timeout-minutes: 60
4545
steps:
4646
- name: Checkout code
@@ -257,23 +257,23 @@ jobs:
257257
BUILD_CONFIG:
258258
- NAME: Linux_Python38
259259
PYTHON_VERSION_SPEC: '3.8'
260-
IMAGE: ubuntu-20.04
260+
IMAGE: ubuntu-22.04
261261
PYTHON_INTERPRETER: python3
262262
- NAME: Linux_Python39
263263
PYTHON_VERSION_SPEC: '3.9'
264-
IMAGE: ubuntu-20.04
264+
IMAGE: ubuntu-22.04
265265
PYTHON_INTERPRETER: python3
266266
- NAME: Linux_Python310
267267
PYTHON_VERSION_SPEC: '3.10'
268-
IMAGE: ubuntu-20.04
268+
IMAGE: ubuntu-22.04
269269
PYTHON_INTERPRETER: python3
270270
- NAME: Linux_Python311
271271
PYTHON_VERSION_SPEC: '3.11'
272-
IMAGE: ubuntu-20.04
272+
IMAGE: ubuntu-22.04
273273
PYTHON_INTERPRETER: python3
274274
- NAME: Linux_Python312
275275
PYTHON_VERSION_SPEC: '3.12'
276-
IMAGE: ubuntu-20.04
276+
IMAGE: ubuntu-22.04
277277
PYTHON_INTERPRETER: python3
278278
- NAME: Mac_Python38
279279
PYTHON_VERSION_SPEC: '3.8'

BUILDING.md

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ Alembic library specified in ALEMBIC_DIR.
333333

334334
See [3rd Party Library and Application Versions](VERSIONS.md) for version information.
335335

336-
Support for Alembic files using the HDF5 backend is enabled by default but can be
337-
disabled by specifying the cmake flag `PXR_ENABLE_HDF5_SUPPORT=FALSE`. HDF5
338-
support requires the following dependencies:
336+
Support for Alembic files using the HDF5 backend can be enabled by specifying
337+
the cmake flag `PXR_ENABLE_HDF5_SUPPORT=TRUE`. HDF5 support requires the
338+
following dependencies:
339339

340340
| Dependency Name | Description |
341341
| ------------------ |---------------- |
@@ -469,25 +469,6 @@ pxr/pxr.h, which facilitates using namespaces:
469469
| PXR_NS | Explicit qualification on items, e.g. `PXR_NS::TfToken foo = ...`|
470470
| PXR_NAMESPACE_USING_DIRECTIVE | Enacts a using-directive, e.g. `using namespace PXR_NS;` |
471471

472-
##### ASCII Parser Editing/Validation
473-
474-
There is an ASCII parser for the USD file format, which can be found in
475-
[sdf](pxr/usd/sdf). Most users will not have a need to edit the parser, but
476-
for the adventurous ones, there are a couple additional requirements.
477-
478-
If you choose to edit the ASCII parsers, make sure
479-
`PXR_VALIDATE_GENERATED_CODE` is set to `TRUE`. This flag enables tests
480-
that check the generated code in [sdf](pxr/usd/lib/sdf) and
481-
[gf](pxr/base/lib/gf).
482-
483-
| Dependency Name | Description |
484-
| ------------------ | ------------------------------------------------------- |
485-
| FLEX_EXECUTABLE | Path to [flex](http://flex.sourceforge.net/) executable |
486-
| BISON_EXECUTABLE | Path to [bison](https://www.gnu.org/software/bison/) executable |
487-
488-
See [3rd Party Library and Application Versions](VERSIONS.md) for version information.
489-
490-
491472
##### USD Schema Generation
492473

493474
USD generates some code through a process called [schema

0 commit comments

Comments
 (0)