Skip to content

Commit f2f0a17

Browse files
committed
ditchTestRunner
1 parent d03ccb3 commit f2f0a17

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- '*_maintenance'
8+
- '*'
89
pull_request:
910
branches:
1011
- '*'
@@ -41,11 +42,6 @@ jobs:
4142
buildType: RELEASE
4243
publish: true
4344
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
4945
sconsCacheMegabytes: 400
5046
jobs: 4
5147

@@ -54,7 +50,6 @@ jobs:
5450
buildType: DEBUG
5551
publish: false
5652
containerImage: ghcr.io/gafferhq/build/build:3.2.0
57-
testRunner: sudo -E -u testUser
5853
testArguments: -excludedCategories performance
5954
# Debug builds are ludicrously big, so we must use a larger cache
6055
# limit. In practice this compresses down to 4-500Mb.
@@ -66,11 +61,6 @@ jobs:
6661
buildType: RELEASE
6762
publish: false
6863
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
7464
sconsCacheMegabytes: 400
7565
jobs: 4
7666
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:
129119
run: |
130120
Xvfb :99 -screen 0 1280x1024x24 &
131121
metacity --display :99.0 &
132-
useradd -m testUser
133122
# The Docker container configures bash shells such that they enable the
134123
# software collections we want. If we could set GitHub's
135124
# `defaults.run.shell` to `bash` then all our build steps would pick up
@@ -203,7 +192,7 @@ jobs:
203192
timeout-minutes: 60
204193
run: |
205194
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 }}
207196
echo "::remove-matcher owner=unittest::"
208197
209198
- name: Build and test Arnold extension
@@ -232,7 +221,7 @@ jobs:
232221
testCommand = os.path.join( os.environ["GAFFER_BUILD_DIR"], "bin", "gaffer" if os.name != "nt" else "gaffer.cmd" )
233222
if os.name == "nt" :
234223
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"] )
236225
print( "::remove-matcher owner=unittest::" )
237226
238227
# Publish ARNOLD_ROOT to the environment for subsequent steps,
@@ -265,7 +254,7 @@ jobs:
265254
run: |
266255
scons -j ${{ matrix.jobs }} build BUILD_TYPE=${{ matrix.buildType }} OPTIONS=.github/workflows/main/sconsOptions
267256
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
269258
echo "::remove-matcher owner=unittest::"
270259
env:
271260
PYTHONUTF8: 1

0 commit comments

Comments
 (0)