+
Skip to content

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
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

pouyan021
Copy link

@pouyan021 pouyan021 commented Apr 18, 2024

This pull request closes #1624. It adds and enforces the ability to set a new property abort-after to external sources. As discussed in the issue, it supports both a global prop and a maven property that overrides the global if it is set.

spiffcs
spiffcs previously approved these changes Apr 22, 2024
@spiffcs
Copy link
Contributor

spiffcs commented Apr 22, 2024

@pouyan021 Approved and running checks now - Thank you so much for the contribution!

@spiffcs
Copy link
Contributor

spiffcs commented Apr 22, 2024

@pouyan021 looks like there is a small change needed where go mod tidy is run

@pouyan021 pouyan021 force-pushed the feat/allow-configuring-timeout-for-external-sources branch 2 times, most recently from 5cc6f4b to e5ed88d Compare April 22, 2024 17:46
@pouyan021
Copy link
Author

pouyan021 commented Apr 22, 2024

@spiffcs Appreciate your support, thanks a lot! The problem with go.mod is addressed but I forgot to sign-off my commit! I fixed that and pushed again. Could you kindly approve the checks once more?

@pouyan021 pouyan021 requested a review from spiffcs April 25, 2024 06:19
Copy link
Contributor

@spiffcs spiffcs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything else LGTM - Just waiting for @wagoodman and his final say on the config direction he wants to go here

base-url: https://search.maven.org/solrsearch/select
abort-after: 5m #override the global config
Copy link
Contributor

Choose a reason for hiding this comment

The 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

@spiffcs spiffcs self-requested a review April 25, 2024 18:34
@spiffcs spiffcs dismissed their stale review April 25, 2024 18:35

stale review and waiting for IC input

@wagoodman wagoodman changed the title Feat/allow configuring timeout for external sources Allow configuring timeout for external sources May 16, 2024
Copy link
Contributor

@wagoodman wagoodman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the functionality looks good, but have some comments on testing and configuration. I'll push up some changes shortly to help out.

I do think that RequestTimeout is a better name for this config item -- what do you think @pouyan021 ?

@@ -278,9 +278,11 @@ feature is currently disabled by default. To enable this feature add the followi
```yaml
external-sources:
enable: true
abort-after: 10m
Copy link
Contributor

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.

@wagoodman wagoodman force-pushed the feat/allow-configuring-timeout-for-external-sources branch from ca5d50c to 0bf64dd Compare May 16, 2024 15:29
@wagoodman
Copy link
Contributor

note: I force pushed to get this branch rebased onto the latest commit on main

@pouyan021
Copy link
Author

pouyan021 commented May 17, 2024

Overall the functionality looks good, but have some comments on testing and configuration. I'll push up some changes shortly to help out.

I do think that RequestTimeout is a better name for this config item -- what do you think @pouyan021 ?

Hey @wagoodman thanks a lot for the thorough review and your additional changes. The name was chosen as abort-after based on the suggestion by one of the contributors here. I agree with you that RequestTimeout is more self-explanatory.

@pouyan021
Copy link
Author

Hey @wagoodman should I go for the requestTimeout as per your suggestion?

@pouyan021
Copy link
Author

Hey @wagoodman @spiffcs I resolved the conflict on this branch recently, any plans for this to move forward?

@spiffcs
Copy link
Contributor

spiffcs commented Jul 2, 2024

@pouyan021 I'm so sorry here - I've approved and have run the final checks and will get this merged - I did not see the notification for this and apologize for letting it sit

I'll get the commits in the wrap this up 😄

@pouyan021
Copy link
Author

Hey @spiffcs, I rebased this branch again, could you please trigger the checks so we can hopefully merge this?

@pouyan021
Copy link
Author

cc @wagoodman

@kzantow
Copy link
Contributor

kzantow commented Feb 28, 2025

Hi @pouyan021, it looks like this PR has been through a lot! There have been some other enhancements to the Maven search function, including rate limiting, but I think that's not exactly the same thing as you are hoping to get merged here. Another change will currently result in a scan failure if a user does end up getting rate limited. I'd like to make sure this doesn't get lost in the noise, and get it moved forward if we can.

I hate to ask you to rebase this again; let me know if you'd like help getting this to the finish line. It seems like we might need to think about how all these options/behaviors should work together.

@kzantow kzantow assigned kzantow and unassigned kzantow Feb 28, 2025
pouyan021 and others added 7 commits March 14, 2025 22:59
Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
… functionality

Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
…-after functionality

Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
Signed-off-by: Keith Zantow <kzantow@gmail.com>
wagoodman and others added 3 commits March 14, 2025 23:11
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
…andling

Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
@pouyan021 pouyan021 force-pushed the feat/allow-configuring-timeout-for-external-sources branch from 75a337c to 4194a93 Compare March 14, 2025 19:22
@pouyan021
Copy link
Author

@kzantow It's been quite a while since I worked on this and as you mentioned many things have changed. I rebased though the best way I could. Hope it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow configurting timeout for external-sources
4 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载