You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ECR credentials provider in k8schain makes revision reconciler tests slow #10878
area/APIAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.triage/acceptedIssues which should be fixed (post-triage)
When iterating on tests in reconciler/revision I noticed they take 10+ seconds to run. The main culprit seems to be TestResolve() which (via Resolve()) creates a k8schain to test resolving digests. Unfortunately this code iterates all the credential providers to auto-detect what to use and the ECR provider, at least on my computer, takes ages to fail :(.
Passing --tags disable_aws to disable that provider drops the test from seconds to milliseconds, but I doubt many people will guess to do this (and they shouldn't have to). There may be some other magic way to disable ECR from k8schain, but because it gets loaded implicitly via init if the file isn't excluded via build tags I couldn't find anything obvious.
An easy workaround for now may be to just move resolve*.go to its own subpackage, which is probably a worthwhile refactor anyway so I'll probably look at doing that if no-one hates the idea for any reason. Or maybe we should just disable the test in --short mode 🤷.
area/APIAPI objects and controllerskind/featureWell-understood/specified features, ready for coding.triage/acceptedIssues which should be fixed (post-triage)
Activity
dprotaso commentedon Mar 3, 2021
quick question: are you on VPN or anything?
markusthoemmes commentedon Mar 3, 2021
VPN has nothing to do with it, I have the same RCA on my todo list to fix. Thanks for writing it up @julz.
For more context: I've once traced the slowness down to a call against the EC2 service that's just really slow. See https://kubernetes.slack.com/archives/C0LRMHZ1T/p1610643195004300
evankanderson commentedon Mar 15, 2021
/assign @markusthoemmes
/triage accepted
markusthoemmes commentedon Dec 3, 2021
/unassign
Not working on this.