-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Upgrade prometheus library #28023
Upgrade prometheus library #28023
Conversation
Pinging @elastic/integrations (Team:Integrations) |
This pull request is now in conflicts. Could you fix it? 🙏
|
19d4d22
to
2f9ae15
Compare
💔 Build Failed
Expand to view the summary
Build stats
Steps errorsExpand to view the steps failures
|
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.
It is weird that updating prometheus requires so many changes, including so many projects that need overrides in the license checker. But well, if this is needed, it LGTM, pinging some more people for awareness of these changes.
dev-tools/notice/overrides.json
Outdated
{"name": "github.com/lightstep/lightstep-tracer-common/golang/gogo", "licenceType": "MIT"} | ||
{"name": "github.com/pascaldekloe/goe", "licenceType": "CC0-1.0"} | ||
{"name": "github.com/streadway/handy", "licenceType": "BSD-2-Clause"} | ||
{"name": "gonum.org/v1/plot", "licenceType": "BSD-3-Clause"} |
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.
Interesting that the license checker cannot identify all these licenses 🤔
dev-tools/notice/overrides.json
Outdated
{"name": "github.com/lightstep/lightstep-tracer-common/golang/gogo", "licenceType": "MIT"} | ||
{"name": "github.com/pascaldekloe/goe", "licenceType": "CC0-1.0"} | ||
{"name": "github.com/streadway/handy", "licenceType": "BSD-2-Clause"} | ||
{"name": "gonum.org/v1/plot", "licenceType": "BSD-3-Clause"} |
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.
Consider alphabetically sorting the whole file.
go.mod
Outdated
cloud.google.com/go v0.83.0 | ||
cloud.google.com/go/bigquery v1.8.0 | ||
cloud.google.com/go/pubsub v1.3.1 | ||
cloud.google.com/go/storage v1.10.0 |
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.
go.mod
Outdated
github.com/Azure/go-autorest/autorest/adal v0.9.15 | ||
github.com/Azure/go-autorest/autorest/azure/auth v0.4.2 | ||
github.com/Azure/go-autorest/autorest/date v0.3.0 | ||
github.com/Masterminds/semver v1.4.2 | ||
github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5 | ||
github.com/Microsoft/go-winio v0.4.16 |
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.
Pinging @narph for awareness on these changes.
go.mod
Outdated
@@ -28,7 +27,7 @@ require ( | |||
github.com/antlr/antlr4 v0.0.0-20200820155224-be881fa6b91d | |||
github.com/apoydence/eachers v0.0.0-20181020210610-23942921fe77 // indirect | |||
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 | |||
github.com/aws/aws-lambda-go v1.6.0 | |||
github.com/aws/aws-lambda-go v1.13.3 |
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.
Pinging @kaiyan-sheng and @aspacca for awareness on these changes.
go.mod
Outdated
code.cloudfoundry.org/go-diodes v0.0.0-20190809170250-f77fb823c7ee // indirect | ||
code.cloudfoundry.org/go-loggregator v7.4.0+incompatible | ||
code.cloudfoundry.org/rfc5424 v0.0.0-20180905210152-236a6d29298a // indirect | ||
github.com/Azure/azure-event-hubs-go/v3 v3.1.2 | ||
github.com/Azure/azure-sdk-for-go v37.1.0+incompatible | ||
github.com/Azure/azure-sdk-for-go v55.2.0+incompatible |
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.
It's not that simple to upgrade this library since the interfaces have been changed and requires some tuning. Fortunately it will be upgraded properly by #28028 so we can wait for it.
Currently waiting for #28028 as described at #28023 (comment). |
It seems weird to me too :). It's also weird why the licence-checker could not identify the licences in so many libraries but it's most probably because in some projects the licence is not in the proper format. For example the licence of |
This pull request does not have a backport label. Could you fix it @ChrsMark? 🙏
NOTE: |
It really seems something is off here with the license part. Also for the NOTICE.txt file:
We should make sure to understand why this is. |
@ruflin I just tried to update the Prometheus library and then the |
Detailed licence checks for libs:
|
9668563
to
ba0da4d
Compare
Thanks for the detailed investigation into the license part. For the diff on the version that are updated: I have the suspicion many of these are not directly related to prometheus but got updated to the most recent version. We should update these libs but not as part of this PR. Ideally we would have update the libs already in the past. What I suggest is that we do several smaller PR's. 1 for updating the There is a chance that everything is connected and depends on each other and then we need to do it all at once, but I strongly hope this is not the case. |
This pull request is now in conflicts. Could you fix it? 🙏
|
@ruflin thanks for your feedback here! I agree with your suggestions to split the upgrades into smaller chunks.
I can create a different meta issue for this if you prefer or we can keep using this issue as reference. I prefer keep using this one to avoid the extra overhead :). |
@ChrsMark Thanks for putting this together. Lets keep it here. Seems like we already made quite a big of progress! |
ba0da4d
to
71204c2
Compare
Continuing at #28716 |
What does this PR do?
This PR updates the
github.com/prometheus/prometheus
and makes the proper LICENCE overrides for the dependencies:This is a prerequisite for #27269
Detailed licence checks for libs:
github.com/ajstarks/svgo
-> CC-BY-4.0github.aaakk.us.kg/bmizerany/pat
-> from README.mdgithub.aaakk.us.kg/cactus/go-statsd-client/statsd
-> MITgithub.aaakk.us.kg/dnaeon/go-vcr
-> BSD-2-Clausegithub.aaakk.us.kg/golang/freetype
-> GPL-2.0github.aaakk.us.kg/hudl/fargo
-> [MIT] from README.mdgithub.aaakk.us.kg/influxdata/line-protocol
-> MITgithub.aaakk.us.kg/lightstep/lightstep-tracer-common/golang/gogo
-> MITgithub.aaakk.us.kg/pascaldekloe/goe
-> CC0-1.0github.aaakk.us.kg/streadway/handy
-> [BSD 2-Clause ] from README.mdgonum.org/v1/plot
-> BSD-3-Clause