Repository navigation
portgovpx: regeneration gate; carry the hand edits as Patches - #11
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…he gate in CI Co-Authored-By: Claude Sonnet 5.5 <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.
What
TestRegenerationMatchesCommitted(tools/portgovpx) regenerates the port from govpx v0.5.3 with the real closure roots and compares every emitted file byte for byte with the committed one. It also fails if a committed file that carries the generated header is not emitted. CI fetches the pinned source withgo mod download github.com/thesyncim/govpx@v0.5.3(checksum database verified) and setsGOVPX_REQUIRED=1, so a missing source fails the lane instead of skipping. Locally the test skips with a message when the source is absent (GOVPX_SRCor the module cache).The gate FAILING before any move (commit 1 of this PR)
Five files, not two: the two of v0.5.1 (
vp9_decoder_modes.go,header.go) and the three of the VPMADDUBSW kernel hand-wired in #3 (Refs #3;internal/pixel/filter_{arm64,avx2,six_simd}.go).Two further defects were found on the way, both in the generator, not in the committed files: Emit dropped the doc comment of every declaration in a rewritten file (the committed files have them), and the closure roots were not recorded anywhere (the test now records them, including
NewVP8DecoderandNewVP9Decoder).The fix
The five hand edits move into
Patches(tools/portgovpx/patches_stalls.go); Emit keeps doc comments. The committed generated files are NOT touched: the gate passes against them as they are, so the generated output is unchanged and no release is needed.Passes:
go test ./...in tools/portgovpx, gofmt clean.🤖 Generated with Claude Code