Skip to content

CI: fail on an empty Runtime CTest suite - #7991

Open
Barbital11111 wants to merge 1 commit into
ItsNotRexed:mainfrom
Barbital11111:fix/ci-ctest-empty
Open

Barbital11111 wants to merge 1 commit into
ItsNotRexed:mainfrom
Barbital11111:fix/ci-ctest-empty

Conversation

@Barbital11111

Copy link
Copy Markdown
Contributor

Coordination: CI-CTEST-EMPTY (claim).

The Runtime workflow can finish its CTest step successfully even when CTest discovers zero tests. Set CTest's built-in CTEST_NO_TESTS_ACTION=error for the Windows, Linux and macOS jobs. This is supported from CMake 3.26, and the current hosted images all ship newer versions.

Validation

  • Native Windows 11, CTest 3.31.6-msvc6. The existing Runtime command returned 0 for an empty synthetic CTest manifest. With the workflow setting, it returned 8. Passing tests still returned 0 and failing tests still returned 8. JSON inventory generation remained successful and reported the actual test count.
  • Ran the workflow's macOS Bash wrapper under Git for Windows Bash with native CTest and a synthetic CPU count. It returned 1 for the empty suite and an unexpected failure, and returned 0 for a passing test or a listed expected failure.
  • test_ci_expected_failures.py (12 tests), test_ctest_registration.py (4 tests), git diff --check, and the modified-file no-game-data scan passed.
  • Local merge simulations with current main, CI: build and test GameInput on Windows #7113, and CI: require a runnable Windows GameInput test #7961 succeeded. No dependency on another PR.

CPU-only validation, no game files. Hosted runner execution is pending. AI-assisted (Codex).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant