grype icon indicating copy to clipboard operation
grype copied to clipboard

Allow configuring timeout for external sources

Open pouyan021 opened this issue 10 months ago • 10 comments

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.

pouyan021 avatar Apr 18 '24 09:04 pouyan021

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

spiffcs avatar Apr 22 '24 17:04 spiffcs

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

spiffcs avatar Apr 22 '24 17:04 spiffcs

@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 avatar Apr 22 '24 17:04 pouyan021

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

wagoodman avatar May 16 '24 15:05 wagoodman

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 avatar May 17 '24 03:05 pouyan021

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

pouyan021 avatar May 24 '24 11:05 pouyan021

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

pouyan021 avatar Jun 13 '24 11:06 pouyan021

@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 😄

spiffcs avatar Jul 02 '24 16:07 spiffcs

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

pouyan021 avatar Sep 17 '24 07:09 pouyan021

cc @wagoodman

pouyan021 avatar Sep 19 '24 13:09 pouyan021