-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[admin] Usage of GOPROXY in releases #7629
Comments
cc @open-telemetry/collector-approvers @open-telemetry/collector-contrib-approvers I will bring this up on the next Collector SIG if we haven't decided then, but would appreciate if you have an opinion about this. |
@TylerHelmuth awesome, let's keep this open only for whether we should add |
I would definitely support having a CI workflow using |
One concern brought up by @MovieStoreGuy is that we might get rate limited by Github. Authenticating on the workflow (see here) may help here (although I don't see anything explicit on the docs?). Per @bogdandrutu, we should ask on golang/go first for guidance. I will sync with @djaglowski about the specific problems we had. |
From the related issues filed at the same time, I guess this is due to proxy.golang.org's 30min negative cache time? Upstream are unlikely to change it for now, ref: golang/go#42809 If the only issue was with collector components, you could consider the below config, GOPROXY='https://proxy.golang.org,direct' # default
GOPRIVATE='go.opentelemetry.io/collector,github.com/open-telemetry/opentelemetry-collector-contrib' |
Thanks @seankhliao, I think we should try that. On the v0.76.x release cycle we were getting a 404 (concretely):
but it does sound like the same kind of issue. One of the Go team members on that issue now works at my company so I will reach out to them in private as well about this to confirm :) |
I followed up with @katiehockman who used to work on this. An alternative to avoiding the Go proxy is to ensure we wait a few minutes to avoid the negative cache (the proxy caches the 404 for ~30 minutes max). To sum up the discussion, we have four options so far:
And there are four dimensions that we can judge them by:
This table summarizes the dimension's values for each option and the current state:
|
This happened again during the v0.111.0 release |
During the v0.76.x we faced some issues with the Go proxy that delayed the release and caused confusion. We could disable the Go proxy by using
GOPROXY=direct
, although this would come at the expense of speed and possibly reliability. Another disadvantage is that we won't put the released libraries up in Go proxy ourselves, but rather wait until the first usage of them.Even if we don't disable the Go proxy on release jobs, we may want to document that disabling the Go proxy may be useful during the release in the Troubleshooting section.(Done in #7597)Relates to #7576
The text was updated successfully, but these errors were encountered: