-
Notifications
You must be signed in to change notification settings - Fork 661
Allow configuring timeout for external sources #1812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pouyan021
wants to merge
10
commits into
anchore:main
Choose a base branch
from
pouyan021:feat/allow-configuring-timeout-for-external-sources
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4eb934b
adding abort-after property to external-sources
pouyan021 e4de296
considering the timeout in java matcher
pouyan021 24c60ab
adding a number of additional tests for the external-sources time-out…
pouyan021 0c10e0d
facilitating java matcher mocks to imitate the external-sources abort…
pouyan021 06e610f
updating readme to reflect the new changes in external-sources
pouyan021 9d7732a
adjust multi level configuration + faster tests
wagoodman 6a3fbe6
feat: add config command (#1876)
kzantow fade0b3
use dco tool during gh app outage (#1910)
wagoodman bad877d
remove dco workflow (#1914)
wagoodman 4194a93
feat: enhance Maven searcher with rate limiting and context timeout h…
pouyan021 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -288,10 +288,12 @@ feature is currently disabled by default. To enable this feature add the followi | |
```yaml | ||
external-sources: | ||
enable: true | ||
abort-after: 10m | ||
maven: | ||
search-upstream-by-sha1: true | ||
wagoodman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
base-url: https://search.maven.org/solrsearch/select | ||
rate-limit: 300ms # Time between Maven API requests | ||
abort-after: 5m #override the global config | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc @wagoodman - I know he's pretty sensitive to duplicate fields that override each other so I'd like him to chime in on where he sees this going or what his preference would be |
||
``` | ||
|
||
You can also configure the base-url if you're using another registry as your maven endpoint. | ||
|
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
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
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can clarify what this means by changing the name some. This could be interpreted as either:
a. aborting looking up from external sources in general after the duration elapses
b. aborting a single request to an external source after the duration elapses
From the functionality implemented
b
is implied.Regarding naming and the above context,
request-timeout
feels like a more descriptive name.