Repository navigation
Preflight: count archives by leading-byte signature, not only by name (Part of #8412) - #8675
Merged
Merged
Conversation
… (Part of #8412) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
This was referenced Nov 19, 2026
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.
Part of #8412 (checklist item: Archived members).
Checklist: partial [c:289b607d] -- TERSE content sniff (no citable header signature, so TERSE is still counted by
.terse/.trsname only) and unpacking (the issue says it can come later, as a separate line).#8419 landed the name-based archive count, the authored zip fixture and the rule that an archive refuses the clone-defect label (rule 10). Its stated leftover was the signature sniff. This PR adds it:
gap_prevalence.archive_filesnow also counts a file whose first 512 bytes match zip / gzip / bzip2 / xz / 7z / rar / tar (ustarat 257) / XMIT (theINMR01control record) / IEBCOPY unload (COPYR1 id), so an archive renamedMEMBERS.datno longer hides its members from the preflight finding. A file matched by name and by bytes counts once. Nothing is unpacked, no name is kept.Files:
tests/tools/gap_prevalence.py,tests/tools/cics_preflight.py(docstring only),tests/tools/test_gap_prevalence.py,tests/tools/test_cics_preflight.py.Class / Sibling gaps
Class: archive containers that hide COPY members from the resolver and from the independent file search, so a missing-copybook gap must not be labelled a clone defect. Members: zip, tar, gzip, bzip2, xz, 7z, rar (name + signature: handled here); XMIT, IEBCOPY / PDS unload (name + signature: handled here); TERSE (name only: partial, the header is not pinned by a source we can cite, a TERSE file with another name is not counted).
Sibling gaps: unpacking members for the resolver (not here: separate mechanism, no burned estate ships an archive that hides a copybook, #8419); TERSE signature (needs a citable header); archives inside archives (never opened, so a nested one is counted once as its container). Other #8412 lines untouched.
Gates
pr_gates.py --fast: 8/9 pass; theaffectedgate shows 2 failures in files this PR does not touch or import:tests/tools/test_estate_size.py::test_the_record_matches_a_live_count_of_the_corpora(example-health-apis count differs from the record) andtests/cobol_mainframe/test_container_datatype_change_reach_5005.py::test_no_burned_put_names_a_data_type_but_char. Both read the local corpora checkouts; the same two tests fail identically on an unchanged origin/main (control run, 2 failed / 6 passed), so they are not this PR's.--ratchetsnot run (no golden, ledger or generated file is touched). The 79 tests reaching the changed files, includingtest_gap_prevalence.pyandtest_cics_preflight.py(244 tests), pass.Lessons for agents
None.
🤖 Generated with Claude Code