Repository navigation
advisory-match: add --rejected-candidates - #24224
Merged
Merged
Conversation
Skip new candidates whose record IDs are listed in the given rejection file before querying other platforms or walking history. Ingest deletes these candidates after matching anyway. Existing records, aliases, --no-history and reconciliation are unchanged. Signed-off-by: Patrick Linnane <patrick@linnane.io>
p-linnane
added this pull request to stack #24226
October 11, 2026 06:15
MikeMcQuaid
approved these changes
Oct 11, 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.
Ingest deletes candidates listed in Homebrew/advisory-database's
data/rejected-candidates.txtafter matching, butbrew advisory-matchstill walks their history on every platform.--rejected-candidates=<file>skips those new candidates first, using the same rules as Ingest's filter.brew benchmark --execover a seeded replay of ansible, httpie and poetry with frozen OSV responses (3 runs): 546.1 ± 24.0 s without the flag, 217.3 ± 1.6 s with it (main: 184.8 ± 4.0 s).brew benchmarkresults.brewcommands to reproduce the bug?brew lgtm(style, typechecking and tests) locally?Codex (GPT-6 Astra) drafted the change and tests and ran
brew lgtm --online; Claude Code (Opus 5.5) reviewed it, ranbrew lgtm --onlineon this commit and ran the benchmark. I reviewed the diff.