-
Notifications
You must be signed in to change notification settings - Fork 575
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
Allow configuring timeout for external sources #1812
Open
pouyan021
wants to merge
43
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
43 commits
Select commit
Hold shift + click to select a range
4cbb4f0
adding abort-after property to external-sources
pouyan021 b8fe080
considering the timeout in java matcher
pouyan021 49ae4c9
make the maven search method respect the context time out
pouyan021 7043535
adding a number of additional tests for the external-sources time-out…
pouyan021 db426d2
facilitating java matcher mocks to imitate the external-sources abort…
pouyan021 1e947b6
updating readme to reflect the new changes in external-sources
pouyan021 0bf64dd
adjust multi level configuration + faster tests
wagoodman 2c79d3a
Merge branch 'main' into feat/allow-configuring-timeout-for-external-…
pouyan021 3d85ae1
chore(deps): bump anchore/sbom-action from 0.15.11 to 0.16.0 (#1871)
dependabot[bot] af3ff15
chore(deps): bump github/codeql-action from 2.13.4 to 3.25.6 (#1870)
dependabot[bot] c50a72a
chore(deps): update tools to latest versions (#1864)
anchore-actions-token-generator[bot] 09422ac
chore(deps): bump actions/checkout from 4.1.5 to 4.1.6 (#1868)
dependabot[bot] 75353d7
chore(deps): bump github.com/docker/docker (#1867)
dependabot[bot] 3cdc811
disable TUI for simpler commands (#1872)
wagoodman 84d7d80
feat: add config command (#1876)
kzantow 991513f
chore(deps): update tools to latest versions (#1883)
anchore-actions-token-generator[bot] 20ac044
chore(deps): bump github.com/gabriel-vasile/mimetype from 1.4.3 to 1.…
dependabot[bot] 5e77a81
chore(deps): bump github.com/charmbracelet/bubbletea (#1890)
dependabot[bot] 48fc783
chore(deps): update tools to latest versions (#1891)
anchore-actions-token-generator[bot] ff84a81
chore(deps): bump github.com/hashicorp/go-version from 1.6.0 to 1.7.0…
dependabot[bot] 6578ae8
chore(deps): bump github.com/charmbracelet/lipgloss (#1888)
dependabot[bot] ecee300
Update syft to 1.4.2-0.20240528141306-ac34808b9c55 (#1895)
wagoodman 5f6ff53
chore(deps): bump docker/login-action from 3.1.0 to 3.2.0 (#1896)
dependabot[bot] b3d1bcf
update syft to v1.5.0 (#1897)
wagoodman 20f16c4
chore(deps): update tools to latest versions (#1898)
anchore-actions-token-generator[bot] 0a2fdb4
fix: main mod pseudo version default off (#1894)
luhring f043899
fix: uppercased package in json (#1900)
kzantow c9ec282
fix: add note about TMPDIR env var (#1880)
avtar e5002a8
chore(deps): bump github.com/charmbracelet/bubbletea (#1902)
dependabot[bot] 2b08d92
chore(deps): bump github/codeql-action from 3.25.6 to 3.25.7 (#1901)
dependabot[bot] 5d1324f
use dco tool during gh app outage (#1910)
wagoodman 22ec108
remove dco workflow (#1914)
wagoodman 25c0b28
chore(deps): bump github.com/docker/docker (#1916)
dependabot[bot] ea1324c
chore(deps): bump github/codeql-action from 3.25.7 to 3.25.8 (#1909)
dependabot[bot] 92a889f
add skopeo to managed utilities (#1915)
wagoodman 237d79f
feat(signature): Checksum signature verification (#1670)
hibare 9decc9b
chore(deps): bump actions/checkout from 4.1.1 to 4.1.6 (#1920)
dependabot[bot] 417c9ea
chore(deps): update tools to latest versions (#1919)
anchore-actions-token-generator[bot] e561e7e
chore(deps): update tools to latest versions (#1921)
anchore-actions-token-generator[bot] 3433baf
chore(deps): update tools to latest versions (#1925)
anchore-actions-token-generator[bot] 8d9e74e
sort order for matches should consider fix info (#1933)
wagoodman ccd8c3e
Updating maven URLs in README.md (#1934)
JoshuaCooper 75a337c
Merge remote-tracking branch 'origin/feat/allow-configuring-timeout-f…
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 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 |
---|---|---|
|
@@ -277,9 +277,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://repo1.maven.org/maven2 | ||
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 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 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 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 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 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.