Skip to content

Skip suite scripts whose prerequisites are missing, and say what they need - #66

Merged
themuffinator merged 1 commit into
themuffinator:mainfrom
danperisse-hue:test-suite-linux-prereqs
Nov 27, 2026
Merged

themuffinator merged 1 commit into
themuffinator:mainfrom
danperisse-hue:test-suite-linux-prereqs

Conversation

@danperisse-hue

Copy link
Copy Markdown
Contributor

First item from #62: python tools/validation/run_test_suite.py on Linux.

On d2510380c under WSL (Ubuntu 26.04, Python 3.14, clang), a full run gave 318 run, 302 passed and 16 new failures. None of the 16 is drift; each is a missing prerequisite:

  • 11 Android harnesses need a JDK.
  • audio_streaming needs imageio-ffmpeg, bc7_reference needs texture2ddecoder, and pbr_reference and endpoint_loopback need numpy. endpoint_loopback also needs pactl and parec there.
  • windows_text_store only runs on Windows.

With a JDK and the three modules installed in user space, 14 of the 16 pass. The two left are endpoint_loopback (no pactl/parec without sudo here) and windows_text_store.

One real bug turned up. android_interface_setup, android_touch_setup and android_touch_layout defaulted --javac to JAVA_HOME/bin/javac.exe even off Windows. Without a JDK they crashed on <repo>/bin/javac.exe instead of saying what was missing. They now look for javac the way android_host_storage does, and stop with a JDK is required (--javac or JAVA_HOME).

So that a Linux run tells drift from a missing tool, suite_status.json gains a requires table:

  • jdk: javac on PATH or under JAVA_HOME.
  • modules: importable by the Python running the suite.
  • commands: on PATH, for every platform or keyed by sys.platform prefix.
  • platforms: the sys.platform prefixes a script can run on.

The runner checks it before starting a script and reports one whose prerequisites are missing as skipped, naming what to install:

skip                 0.0s  bc7_reference  needs Python module texture2ddecoder
skip                 0.0s  windows_text_store  needs platform win32
...
3 run, 3 passed, 0 new failures, 0 known failures, 0 listed scripts skipped, 2 skipped for missing prerequisites

Where the prerequisites are present nothing changes: the scripts run and must pass. suite_status_contract checks the table (existing scripts, sorted, not also in a skipped group, only known keys) and the check itself. BUILDING.md's "Full Test-Suite Run" section lists the prerequisites.

Checks with this change on d2510380c:

  • WSL with the JDK and modules: 316 run, 316 passed, 0 new failures, 2 skipped for missing prerequisites (endpoint_loopback, windows_text_store); exit status 0.
  • WSL without them: 302 run, 302 passed, 0 new failures, 16 skipped for missing prerequisites; exit status 0.
  • Windows (Python 3.14, outside the developer environment, no JDK or modules): suite_status_contract, docs_link_integrity and source_charset_integrity pass, and the JDK and module scripts are skipped. windows_text_store still needs the Visual Studio environment, as BUILDING.md says.

… need

On Linux, a full run_test_suite.py run on d251038 reported 16 new
failures, none of them drift: 11 Android harnesses need a JDK, four
scripts need numpy, imageio-ffmpeg or texture2ddecoder (endpoint_loopback
also needs pactl and parec there), and windows_text_store only runs on
Windows. With those installed, every one passes except the two that
cannot run on that host.

suite_status.json gains a "requires" table: a JDK, Python modules,
commands (for every platform or per sys.platform prefix) and platforms.
The runner checks it before it starts a script, reports a script whose
prerequisites are missing as skipped with what to install, and runs it
wherever they are present. suite_status_contract checks the table and the
check itself, and BUILDING.md lists the prerequisites.

Three Android harnesses defaulted --javac to JAVA_HOME/bin/javac.exe
even off Windows, so without a JDK they crashed on a path like
<repo>/bin/javac.exe. They now look for javac the way android_host_storage
does and stop with "a JDK is required" when there is none.
@themuffinator
themuffinator merged commit 3d91f0b into themuffinator:main Nov 27, 2026
9 checks passed
themuffinator added a commit that referenced this pull request Nov 29, 2026
…round, and stop rewriting the config at launch

Ported from openPR06, the PREY port built on openQ4 (third round: pull
requests #53-#81 and issues #61-#78 by danperisse-hue).

- A deflated PK4 member keeps what it inflates once it is seeked (up to
  32 MiB), so a wave or model chunk scan no longer inflates the member again
  at every seek, and a seek to the current position does nothing (#53).
- Generated animation caches are built in memory and written, synced and
  closed by a writer thread, at most 16 files and 64 MiB queued; the main
  thread promotes them, and game shutdown waits for the queue (#54, as
  adapted to openQ4's version-3 cache in openPR06 a945a6b).
- idInternalCVar::Update flags CVAR_ARCHIVE only when the declaration makes
  a cvar archived, so a module registering archived cvars the config already
  set no longer rewrites openQ4Config.cfg on every launch (#63).
- idProgram::FindFreeResultDef finds a reusable <RESULT> temporary through a
  per-scope hash chain, newest first like the def list, instead of walking
  every result compiled so far (#64).
- Linux: the loose-directory memo runs on case-sensitive filesystems too,
  resolving case once per directory (#56); glibc malloc arenas are capped at
  two unless MALLOC_ARENA_MAX is set (#71); the fatal-breadcrumb directory is
  created like mkdir -p (#57).
- com_timestampPrints describes 1 as seconds and 2 as milliseconds (#60).
- Tests: filesystem_length_probe_contract follows the memo (#65),
  posix_memory_management checks the arena cap, and android_savepath
  extracts Posix_MkdirParents (openPR06 bd071e1).
- BUILDING.md: running the Linux stock smokes under a headless Weston (#81).

Prey-only or already in openQ4, and not ported: #48, #55, #59, #66-#68,
#70, #73, #74, #76, #77, #79, #80.

Co-authored-by: danperisse-hue <danperisse@gmail.com>
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.

2 participants