Repository navigation
Conversation
Listing harvest results for partial coordinates used the storage path as a raw blob prefix, so `foo` also listed `foo.bar` and `1.0` also listed `1.0-beta`, and a short name scanned every blob whose name starts with it. End the prefix with `/` unless it already identifies a single tool version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e too many Listing walks every matching blob before anything is sent and kept doing so after the client had timed out. Stop when the response is closed, and answer 400 rather than list more than 100000 results. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bielu
marked this pull request as ready for review
October 17, 2026 13:18
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.
Refs #1636. Stacked on #1638: the first commit here is that PR, only the second commit is new.
GET /harvest/...?form=listbuilds the whole list before sending anything, and the time that takes grows with the number of matching blobs. Measured against api.clearlydefined.io (uncached):nuget/nuget/-/Newtonsoft.Jsonnpm/npmjs/-/lodashnpm/npmjs/-/typescriptnpm/npmjs/-/reactNothing stops the loop once the client has timed out, and a request such as
/harvest/npmasks for the whole container.Changes
listtakes an optional{ signal, limit }. It checks both before fetching each page.More than 100000 results, use more specific coordinatesinstead of listing further. 100,000 is more than a request can list within the 100 second edge timeout today.Other callers of
listpass no options and behave as before. The file store ignores the options; the route still applies the limit to its result.An aborted listing stops before the next page; the storage request already in flight is not cancelled.
Testing
tscandbiome checkpass. Mocha: 844 passing, 3 failing locally; the same 3 fail onmasteron my machine (Redis needs a container runtime, the Mongo memory server fails to spawn on Windows).🤖 Generated with Claude Code