Repository navigation
ci: coverage gate independent of the runner's CPU; README speed table re-measured at the merged code - #150
Merged
Conversation
main went red on the merge commit of #149 (run 46292291989, job "test, GOEXPERIMENT=simd (ubuntu-latest)": upscale coverage 94.4% < 100%) although the same tree had 21 green checks on the pull request. upscale/easu_perm_amd64.go, added by #147, runs only with AVX-512, and a hosted amd64 runner has it or not from one job to the next. Reproduced on a Ryzen 9 7950X at 0a15a86: 100.0% natively, 94.5% under GODEBUG=cpu.avx512f=off, the only functions below 100% being usePerm and permGather. The gate was a draw since #147. tools/covgate (cobra, a module of its own, 100% covered, parser fuzzed) requires every block of the profile and excuses the blocks of one named file only when /proc/cpuinfo lacks the named flag, printing a warning that counts the statements that were not measured. An unreadable cpuinfo, an empty profile and a malformed line are refusals, not passes. Not solved here: on a runner without AVX-512 the permute gather is not executed at all, so a commit can be released with that kernel untested by CI. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The table merged with #149 was measured one commit before its head. At 0a15a86 on the same core (Ryzen 9 7950X, core 9, interleaved runs) the Scaler takes 28.7 to 29.3 ms per frame, not 26.2: the only non-test difference is the integer position of an output pixel (72c6376), and why it costs 10 % with the per-pixel code unchanged is not established. Multicore figures re-measured: 14.5, 7.5, 5.4 and 3.6 ms at 2, 4, 8 and 16 workers; with several workers -benchmem reports 0 allocs/op and 1 to 522 B/op. covgate also says, on a CPU that has the flag, that the file is held like the rest, so the job log states which of the two the runner was. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
mainis red at 0a15a86, the merge commit of the Scaler pull request (Refs #149, Refs #141), andv0.25.0could not be tagged: run 46292291989, jobtest, GOEXPERIMENT=simd (ubuntu-latest), stepupscale coverage gate, vector lane:upscale coverage 94.4% < 100%. The same tree had 21 green checks on the pull request.Cause (measured)
upscale/easu_perm_amd64.go(Refs #147, which added it) runs only with AVX-512, and a hosted amd64 runner has it or not from one job to the next. On a Ryzen 9 7950X at 0a15a86:./upscaleGOEXPERIMENT=simd go test -coverGODEBUG=cpu.avx512f=offUnder the second, the only functions below 100 % are
usePerm(50 %) andpermGather(8.8 %). The gate has been a draw since then; the Scaler pull request did not change it.That the failing runner lacked AVX-512 is inferred from the identical figure: the job log does not print the CPU.
Change
tools/covgate(cobra, a module of its own, stdlib parser, 100 % covered, parser fuzzed, 10 of 10 mutated refusals caught): fails unless every block of a profile ran;--needs-cpu FLAG=FILEexcuses the blocks of one file only when/proc/cpuinfolacks the flag, and prints a::warning::with the number of statements that were not measured. An unreadable cpuinfo, an empty profile and a malformed line are refusals.--needs-cpu avx512f=upscale/easu_perm_amd64.go.tools/covgateCI lane (ubuntu, macOS) that gates the tool with itself.Checked on the 7950X at this head: native profile
582 of 582 statements ran, exit 0; thecpu.avx512f=offprofile on that same CPU (which does report avx512f) is refused,32 statement(s) never ran, exit 1.README: the speed table was one commit stale
Re-measuring on the 7950X for this pull request showed that the table merged with the Scaler pull request was measured before its last commit. On core 9, interleaved runs, 3 each:
mainat 0a15a86The only non-test difference between the two trees is that commit (
git diff --stat), which changes the per-axis setup and not the per-pixel code; why it costs 10 % is not established. The README now carries the figures of the merged code (28.7 to 29.3 on one core; 14.5, 7.5, 5.4, 3.6 ms at 2, 4, 8, 16 workers; 10.4 times slower than lanczos on one core) and says so. With several workers-benchmemreports 0 allocs/op and 1 to 522 B/op, also stated.Tried and not shipped
Moving the two AVX-512 closures of
permGatherto a file of their own, so that everything else could be forced by tests on any CPU and the excuse narrowed from 32 statements to 16, made the Scaler 21 % slower on the same core (28.8 to 34.9 ms, 3 runs each, same session), with the closure bodies unchanged. Unexplained, so the kernel file is untouched here and the whole of it is excused on a CPU without AVX-512.Not solved here
On a runner without AVX-512 the permute gather is not executed at all, so a commit can pass CI with that kernel untested; the warning says so in the job, nothing more. Holding it would need a runner with a known CPU.
🤖 Generated with Claude Code