|
5 | 5 | branches: |
6 | 6 | - main |
7 | 7 | - '*_maintenance' |
| 8 | + - '*' |
8 | 9 | pull_request: |
9 | 10 | branches: |
10 | 11 | - '*' |
|
41 | 42 | buildType: RELEASE |
42 | 43 | publish: true |
43 | 44 | containerImage: ghcr.io/gafferhq/build/build:3.2.0 |
44 | | - # GitHub container builds run as root. This causes failures for tests that |
45 | | - # assert that filesystem permissions are respected, because root doesn't |
46 | | - # respect permissions. So we run the final test suite as a dedicated |
47 | | - # test user rather than as root. |
48 | | - testRunner: sudo -E -u testUser |
49 | 45 | sconsCacheMegabytes: 400 |
50 | 46 | jobs: 4 |
51 | 47 |
|
|
54 | 50 | buildType: DEBUG |
55 | 51 | publish: false |
56 | 52 | containerImage: ghcr.io/gafferhq/build/build:3.2.0 |
57 | | - testRunner: sudo -E -u testUser |
58 | 53 | testArguments: -excludedCategories performance |
59 | 54 | # Debug builds are ludicrously big, so we must use a larger cache |
60 | 55 | # limit. In practice this compresses down to 4-500Mb. |
|
66 | 61 | buildType: RELEASE |
67 | 62 | publish: false |
68 | 63 | containerImage: ghcr.io/gafferhq/build/build:3.2.0 |
69 | | - # GitHub container builds run as root. This causes failures for tests that |
70 | | - # assert that filesystem permissions are respected, because root doesn't |
71 | | - # respect permissions. So we run the final test suite as a dedicated |
72 | | - # test user rather than as root. |
73 | | - testRunner: sudo -E -u testUser |
74 | 64 | sconsCacheMegabytes: 400 |
75 | 65 | jobs: 4 |
76 | 66 | dependenciesURL: https://github.com/ImageEngine/cortex/releases/download/10.5.15.3/cortex-10.5.15.3-linux-gcc11.tar.gz |
@@ -129,7 +119,6 @@ jobs: |
129 | 119 | run: | |
130 | 120 | Xvfb :99 -screen 0 1280x1024x24 & |
131 | 121 | metacity --display :99.0 & |
132 | | - useradd -m testUser |
133 | 122 | # The Docker container configures bash shells such that they enable the |
134 | 123 | # software collections we want. If we could set GitHub's |
135 | 124 | # `defaults.run.shell` to `bash` then all our build steps would pick up |
@@ -203,7 +192,7 @@ jobs: |
203 | 192 | timeout-minutes: 60 |
204 | 193 | run: | |
205 | 194 | echo "::add-matcher::./.github/workflows/main/problemMatchers/unittest.json" |
206 | | - ${{ matrix.testRunner }} ${{ env.GAFFER_BUILD_DIR }}/bin/gaffer test ${{ matrix.testArguments }} |
| 195 | + ${{ env.GAFFER_BUILD_DIR }}/bin/gaffer test ${{ matrix.testArguments }} |
207 | 196 | echo "::remove-matcher owner=unittest::" |
208 | 197 |
|
209 | 198 | - name: Build and test Arnold extension |
@@ -232,7 +221,7 @@ jobs: |
232 | 221 | testCommand = os.path.join( os.environ["GAFFER_BUILD_DIR"], "bin", "gaffer" if os.name != "nt" else "gaffer.cmd" ) |
233 | 222 | if os.name == "nt" : |
234 | 223 | testCommand = testCommand.lstrip( "./\\" ) |
235 | | - subprocess.check_call( "${{ matrix.testRunner }} " + testCommand + " test IECoreArnoldTest GafferArnoldTest GafferArnoldUITest", shell = True ) |
| 224 | + subprocess.check_call( [ testCommand, "test", "IECoreArnoldTest", "GafferArnoldTest", "GafferArnoldUITest"] ) |
236 | 225 | print( "::remove-matcher owner=unittest::" ) |
237 | 226 |
|
238 | 227 | # Publish ARNOLD_ROOT to the environment for subsequent steps, |
@@ -265,7 +254,7 @@ jobs: |
265 | 254 | run: | |
266 | 255 | scons -j ${{ matrix.jobs }} build BUILD_TYPE=${{ matrix.buildType }} OPTIONS=.github/workflows/main/sconsOptions |
267 | 256 | echo "::add-matcher::./.github/workflows/main/problemMatchers/unittest.json" |
268 | | - ${{ matrix.testRunner }} ${{ env.GAFFER_BUILD_DIR }}/bin/gaffer test ${{ matrix.testArguments }} IECoreRenderManTest GafferRenderManTest GafferRenderManUITest |
| 257 | + ${{ env.GAFFER_BUILD_DIR }}/bin/gaffer test ${{ matrix.testArguments }} IECoreRenderManTest GafferRenderManTest GafferRenderManUITest |
269 | 258 | echo "::remove-matcher owner=unittest::" |
270 | 259 | env: |
271 | 260 | PYTHONUTF8: 1 |
|
0 commit comments