Skip to content

Commit

Permalink
CI: apply --disallow-focus to all itest jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Bromeon committed Sep 17, 2023
1 parent 6dcf807 commit 7569b02
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/composite/godot-itest/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,12 @@ runs:
# * grep -q: no output, use exit code 0 if found -> thus also &&
# * pkill: stop Godot execution (since it hangs in headless mode); simple 'head -1' did not work as expected
# * exit: the terminated process would return 143, but this is more explicit and future-proof
#
# --disallow-focus: fail if #[itest(focus)] is encountered, to prevent running only a few tests for full CI
run: |
cd itest/godot
echo "OUTCOME=itest" >> $GITHUB_ENV
$GODOT4_BIN --headless ${{ inputs.godot-args }} 2>&1 \
$GODOT4_BIN --headless -- --disallow-focus ${{ inputs.godot-args }} 2>&1 \
| tee "${{ runner.temp }}/log.txt" \
| tee >(grep -E "SCRIPT ERROR:|Can't open dynamic library" -q && {
printf "\n::error::godot-itest: unrecoverable Godot error, abort...\n";
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/full-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ jobs:
# Naming: {os}[-{runtimeVersion}]-{apiVersion}
# runtimeVersion = version of Godot binary; apiVersion = version of GDExtension API against which gdext is compiled.

# --disallow-focus: fail if #[itest(focus)] is encountered, to prevent running only a few tests for full CI

# Order this way because macOS typically has the longest duration, followed by Windows, so it benefits total workflow execution time.
# Additionally, the 'linux (msrv *)' special case will then be listed next to the other 'linux' jobs.
# Note: Windows uses '--target x86_64-pc-windows-msvc' by default as Cargo argument.
Expand Down Expand Up @@ -253,7 +251,6 @@ jobs:
os: ubuntu-20.04
artifact-name: linux-memcheck-clang-nightly
godot-binary: godot.linuxbsd.editor.dev.x86_64.llvm.san
godot-args: -- --disallow-focus
rust-toolchain: nightly
rust-env-rustflags: -Zrandomize-layout -Zsanitizer=address
rust-extra-args: --features godot/custom-godot
Expand All @@ -264,7 +261,6 @@ jobs:
os: ubuntu-20.04
artifact-name: linux-memcheck-clang-4.0.4
godot-binary: godot.linuxbsd.editor.dev.x86_64.llvm.san
godot-args: -- --disallow-focus
godot-prebuilt-patch: '4.0.4'
rust-toolchain: nightly
rust-env-rustflags: -Zrandomize-layout -Zsanitizer=address
Expand All @@ -279,7 +275,7 @@ jobs:
with:
artifact-name: godot-${{ matrix.artifact-name }}
godot-binary: ${{ matrix.godot-binary }}
godot-args: ${{ matrix.godot-args }}
godot-args: ${{ matrix.godot-args }} # currently unused
godot-prebuilt-patch: ${{ matrix.godot-prebuilt-patch }}
rust-extra-args: ${{ matrix.rust-extra-args }} --features godot/codegen-full
rust-toolchain: ${{ matrix.rust-toolchain || 'stable' }}
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/minimal-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ jobs:
os: ubuntu-20.04
artifact-name: linux-memcheck-clang-nightly
godot-binary: godot.linuxbsd.editor.dev.x86_64.llvm.san
godot-args: -- --disallow-focus
rust-toolchain: nightly
rust-env-rustflags: -Zrandomize-layout -Zsanitizer=address
rust-extra-args: --features godot/custom-godot
Expand All @@ -176,7 +175,6 @@ jobs:
os: ubuntu-20.04
artifact-name: linux-memcheck-clang-4.0.4
godot-binary: godot.linuxbsd.editor.dev.x86_64.llvm.san
godot-args: -- --disallow-focus
godot-prebuilt-patch: '4.0.4'
rust-toolchain: nightly
rust-env-rustflags: -Zrandomize-layout -Zsanitizer=address
Expand All @@ -191,7 +189,7 @@ jobs:
with:
artifact-name: godot-${{ matrix.artifact-name }}
godot-binary: ${{ matrix.godot-binary }}
godot-args: ${{ matrix.godot-args }}
godot-args: ${{ matrix.godot-args }} # currently unused
godot-prebuilt-patch: ${{ matrix.godot-prebuilt-patch }}
rust-extra-args: ${{ matrix.rust-extra-args }}
rust-toolchain: ${{ matrix.rust-toolchain || 'stable' }}
Expand Down

0 comments on commit 7569b02

Please sign in to comment.