Repository navigation
Deduplicate the scan-packages baseline, and gate it with tests - #8110
Conversation
|
The four Confirmed by comparing this branch with #8115/#8110: the two share no files with each other and neither touches Fixed in #8120, with a guard that reads the tuple width from the function's own return annotation so the next arity change cannot drift past the tests again. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
unslothai#8135 re-baselined the huggingface_hub 1.x backoff loop, so that half of this branch is done upstream. What is left is a defect it did not touch: the shipped baseline carries five openai entries twice. openai/_base_client.py C2 polling/beaconing loop openai/auth/_workload.py IMDS + network calls openai/resources/beta/responses/responses.py C2 polling/beaconing loop openai/resources/realtime/realtime.py C2 polling/beaconing loop openai/resources/responses/responses.py C2 polling/beaconing loop 223 entries, 218 distinct. A duplicated suppression is not harmless: whoever removes one copy to un-suppress a finding still gets no finding, because the second copy is still matching. The 111 tests here cover the baseline's shape and matching semantics, including the duplicate check that caught this. Every one passes against main once the five copies are gone.
b9cb548 to
3cf73eb
Compare
|
Rebased onto main and narrowed, because half of this landed without it. #8135 re-baselined the huggingface_hub 1.x backoff loop, so I dropped that part. What remains is a defect #8135 did not touch: the shipped baseline carries five
223 entries, 218 distinct, measured on The 111 tests here cover the baseline shape and the matching semantics, including the duplicate check that found this. Against unmodified main, Worth recording separately: the CI deadlock this PR was caught in has cleared. #8132 repaired the three test files that were reddening the Backend and Repo test jobs, and on a fresh |
pip scan-packages :: hf-stackand:: extrasare failing on every open PR, on one CRITICAL:That is
http_backoff's retry loop, and the same loop is already in the baseline twice for the same file (L462 and L298). huggingface_hub 1.27.0 was published at 12:48 today, shifting the loop by one line and adding a comment inside it:The baseline key is a hash over the matched code, deliberately, so that changed code reopens a reviewed finding. It did its job; the code is benign and the entry is added.
The timing pins it to the release rather than to any PR: #7866 passed both legs at 11:58 and 12:10, #7867 failed them at 12:51 and 12:57, and nothing else changed in between.
Also in here
Five
openaientries appear twice, byte for byte, from two--write-baselineruns. Dropped, and two tests added so neither problem is silent again:evidence_hashmust recompute from its ownevidence. A hand-added entry with a stale hash suppresses nothing, because the key is the hash, so the finding stays red while the entry reads as a review that happened.tests/security/test_scan_packages.py: 105 passed.