Repository navigation
#3108: Infra DR13: Carried comment-check copies match their source again - #38
Open
jparker2006 wants to merge 2 commits into
Open
jparker2006 wants to merge 2 commits into
jparker2006 wants to merge 2 commits into
Conversation
Member
Author
Review #38 at 98da5f6I inferred Grok (xAI) from the Cursor attribution and date. This review is from OpenAI Codex.
Verified the checker and contract byte for byte against OpenWiz VERDICT: APPROVE at 98da5f6 |
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.
No launch-fleet start record on the ticket yet; a record author (jparker2006 / openwiz[bot]) must post it before merge.
Closes openwizdev/OpenWiz#3108
Summary
tools/comment-check/check.pyis byte-identical to OpenWiz2b0b0d192d9013f223279d507bc7a809540f66da(tools/comment-check/check.py, blobd1a205ca51232dd8736e4be4a17d40dfffa1b574).tools/comment-check/drift.pyfails when this copy differs from that pinned commit.contracts/comments.v1.mdwas already the same blob (9183cb01d185e7ef576d6dcf3609794da41e3e34) and is unchanged.The checks job already runs
sh ci/comment-check.sh HEAD^1. The next step in that same job ispython3 -I tools/comment-check/drift.py.check.pystays the pinned bytes, so the comparison is not inside it.origin/mainis still154c1d81c4feab8be447ac872e549477c4ed7c2f.F4 grant request
#3108does not own.github/workflows/checks.yml. No grant is recorded for that file. This is a request, not a grant, for the one added steppython3 -I tools/comment-check/drift.pyin the job that already runs comment-check.Bench & Eval
Head
98da5f67bf1257dca5a5e3330c92240dfa74d77d. OpenWiz source commit2b0b0d192d9013f223279d507bc7a809540f66da.python3 -I tools/comment-check/drift.pyafter appending one byte: exit 1,source bytes 30813, copy bytes 30814python3 -I tools/comment-check/drift.pyon the restored copy: exit 0, matches the pinsh ci/comment-check.sh origin/main:comment-check: oksh ci/test-comment-check.sh: 11 lines startingok: catches:, exit 0ci/check.sh:check: no private identifierspython3 -I ci/validate.py: exit 1,FileNotFoundError: openwiz(theopenwizbinary atOPENWIZ_REVis not installed here). Catalog files were not changed.Evidence
Before: appending one byte to the identical copy made
drift.pyexit 1 (copy bytes 30814). After: the restored copy matches2b0b0d192d9013f223279d507bc7a809540f66da(exit 0).Self-check
python3 -I tools/comment-check/drift.pyprinted exit 1 and copy bytes 30814python3 -I tools/comment-check/drift.pyprinted exit 0 and matches openwizdev/OpenWiz@2b0b0d1sh ci/comment-check.sh origin/mainprinted comment-check: oksh ci/test-comment-check.shprinted ok: catches: and exit 0Merge danger
Door: two-way. Blast radius: small. The checker judges new comments the way OpenWiz already does. Old comments on unchanged lines still do not fail a pull request. The new step fails that same job when the carried copy is not the pinned bytes.
Rulings
check.pystays the pinned bytes. Why: the copy has to match the pinned commit byte for byte, and that job is what already runs the checker. Cost if wrong: low: the existing comment-check step is unchanged, and the added command is the drift script.Facts
cursor/comment-check-source-pin-214e98da5f67bf1257dca5a5e3330c92240dfa74d77dbd56ae754bad80804cd40b8565ba4c683280bcc4tools/comment-check/check.py,tools/comment-check/drift.py,.github/workflows/checks.ymlpython3 -I tools/comment-check/drift.pycatches: acheck.pythat differs from OpenWiz2b0b0d192d9013f223279d507bc7a809540f66da. The checks job runs that command.2b0b0d192d9013f223279d507bc7a809540f66da; the checks job runsdrift.py; that command fails when the copy differssh ci/check.shcould not runopenwiz loop validatebecause theopenwizbinary is not installed in this environment.