The same in-process numpy check, in the file whose CLI tests spawn
`python -I`: HAVE_NUMPY stayed for the tests that call numpy here, and the
nine CLI gates now use NUMPY_VISIBLE_TO_TOOL, the isolated probe.
Measured on main b8bd37111, Windows 11, Python 3.13: 3 failed, 23 passed,
5 skipped before; 21 passed, 10 skipped after. Where -I sees numpy the probe
returns true and every gate opens as before.
Written with an AI assistant.
HAVE_NUMPY used importlib.util.find_spec in this process, while the tests run
the tool with python -I, which hides the --user install this machine has. The
gate opened and four cases died on "needs numpy" instead of testing what they
name. The file already did this correctly for Pillow (HAVE_PIL_ISOLATED); this
applies the same probe to numpy and gates the four cases that reach it, keeping
the eleven that test behaviour before numpy.
Measured on main b8bd37111, Windows 11, Python 3.13: 5 failed, 12 passed before;
11 passed, 4 skipped after. Where -I sees numpy the probe returns true and the
four run as before.
Written with an AI assistant.
Two things kept this test file red on a machine where numpy came from
pip install --user:
- the tool imported numpy at module level, so a bad --width reported
"needs numpy" instead of "must be at least 1". numpy is imported late now
and only the computation requires it;
- the skip gate asked whether numpy imports *here*, while the tests run the
tool with -I, which hides the user site. It now probes the way the tool runs.
Measured on main b8bd37111, Windows, Python 3.13: 9 failed, 8 passed, 3 skipped
before; 14 passed, 6 skipped after. On a machine where -I sees numpy, the probe
returns true and the three gated cases run exactly as before.
Written with an AI assistant.
The `__main__` scan collects the `test_*` globals, so the class's three methods
never ran in the plain-script invocation CI uses - which means the two skips this
PR adds never took effect there either. The class is loaded explicitly now.
Measured here: the script run goes from 13 top-level tests to those plus
"Ran 3 tests ... OK (skipped=2)", and pytest still reports 14 passed, 2 skipped.
Written with an AI assistant.
They fail on Windows today, and CI cannot see it because that file runs on Linux
there: FeatureScanAtomicOutputTests' two "failed write" cases pass
preexec_fn=fail_file_writes to subprocess, which is POSIX-only.
Measured on main b8bd37111, Windows 11, Python 3.13: 2 failed, 14 passed before;
14 passed, 2 skipped after, with the reason printed. On POSIX nothing changes.
Written with an AI assistant.
merzleckeier measured what a bigger limit buys and it is not enough: at a 1024x
slowdown the 1000x draft still failed 0/3, while comparing the run's baseline
back against the file it was given passed 3/3. A limit measures the runner;
the numbers do not.
So the case now reads the measured values out of the baseline it just wrote and
asserts the second run used exactly those, with no --max-slowdown on that
invocation. The over-limit behaviour keeps its own deterministic test
(--max-slowdown 0.01 must report one), untouched.
Verified here: 10 passed, 5 subtests; and substituting a different baseline
makes the case fail (1 failed), which is what the assertion is for.
Written with an AI assistant.
test_a_local_baseline_replaces_the_committed_one asks that a locally written
baseline replaces the committed one; the 5x limit was incidental to that, and on
a shared runner it turned the case into a performance test whose only observed
failure was a contended box (macos-python on #2641: returncode 1 with empty
stderr, i.e. the tool's own over-limit verdict).
The over-limit behaviour keeps its deterministic coverage: --max-slowdown 0.01
must report one, and that case asserts it.
Written with an AI assistant.
merzleckeier found it: the early `continue` on an Ogg that --skip-existing keeps
also skipped `frame_limits[cid]`, so a rebuilt cue sheet described only the
channels this run wrote.
The kept file's own EOS granule is the authority - recomputing the limit from
this run's packets would describe a file that was not written - so read it back
with ogg_last_granule(). The regression test fails without the change.
Written with an AI assistant.
The assets test asserted the command line without the flag this branch adds,
so it failed as soon as the stage started passing it. The flag is the point of
the change: a stopped export leaves most of the Ogg files written and no
marker, and --skip-existing makes the restart keep the ones already done.
Written with an AI assistant.
awc_opus.py repacked every bank on every run, so a stopped assets run redid
the whole Ogg Opus step: on one machine 664,446 .ogg files were already
written and the restart began at bank 0. The stage marks the step done only
after it finishes, so there was no per-bank resume.
--skip-existing leaves an output that exists alone before packing a music
channel or writing a stream's .ogg/.wav, and make_game.py passes it in the
audio step. The staged writer publishes atomically, so an existing file is
always complete.
Measured on a 1 MB bank with 29 outputs: first export 0.8 s, second with the
flag 0.23 s and 0 files rewritten, while the same export without the flag
does rewrite them. tests/test_awc_opus.py covers that with the control.
Current main after #2566. New conflict on top of the earlier carry merge:
tools/rdna2spirv.py, _translate (straight-line and CFG paths): main passes
extra=meta_extra to _shader_meta.collect and reads the literal samplers
after it; the PR's g.note_pops_word(insns) runs right after that block,
before fit_shared_memory / needs_barrier_rounds as before.
Co-authored-by: QemmHD <290605352+QemmHD@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Current main after #2566. New conflict on top of the earlier carry merge:
docs/design.md, DPP row: main rewrote the absent-lane part of the row
(present-lane ballot for FI=1); main's text is kept and the PR's sentence on
Gen.dpp_insn forwarding neg/abs is inserted at the same place as before,
after the HW-DPP-NEG-INVALID-LANE sentence.
Co-authored-by: ShotTechOp <95485630+ShotTechOp@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main's new test mocks exactly two subprocess.run calls (the ftz32 probe and the
translator); unset, build.py's --lod-bias probe ran first and used one of them,
so the translator call raised StopIteration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tools/rdna2spirv.py: main's float-only typed implicit sample (OpImageSampleImplicitLod)
is used only without --explicit-lod-bias; with the flag the Grad path still
scales the derivatives by the S# bias.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes over #1837: since #2028, main reports "time limit reached" only when
the run's seconds reach the limit, so the UTF-8 BOM case writes 60 s for a
60 s limit instead of 45; what it checks (both files parsed through the BOM)
is unchanged.
Co-authored-by: kirigayakazima <46666711+kirigayakazima@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NVIDIA (RTX 3090, driver 610.88) moves NEAREST mip selection to level 1 at
about +0.289, inside Vulkan's 0.25..0.5 range, so a single +0.3 already read
level 1 there (found by zmasi). +-0.26 stays under that on every driver, and
the bias counted twice (+-0.52) still crosses 0.5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The launcher column saw one way of assigning of four, three kinds were wrong,
names read by turns through a constant, a function or asked_for! were missing,
and test modules with a brace in a raw string were cut short. measuring_fps.md
now says how to give LEONIDA_AB to the launcher and what GPU_TIMING and
PROFILE need.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>