-
Notifications
You must be signed in to change notification settings - Fork 38
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
chore: Upgrade otel core to v114 #1714
base: main
Are you sure you want to change the base?
Conversation
oh yeah for v108 I removed ef1d4d4#diff-e8782025fe5d59d3c20654fab229e808933fbb3941c607950f88c694a58051dcL81 |
@chan-tim-sumo I have added the check for ensuring builder version back in the Makefile. |
0a98a1e
to
ea9c936
Compare
bb06233
to
4217617
Compare
@@ -193,7 +193,7 @@ jobs: | |||
run: | | |||
binary=${{ steps.set-binary-name.outputs.binary_name }} | |||
binary_path=otelcolbuilder/cmd/${binary} | |||
./ci/get_version_from_binary.sh otc "${binary_path}" | |||
./ci/get_version_from_binary.sh core "${binary_path}" |
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.
The script doesn't have an otc
argument. This wasn't working before
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.
I’m a little confused by the change from otelcol_version to version in the yaml. Are you sure about it?
Makefile
Outdated
OT_CONTRIB_VERSION := $(shell grep --max-count=1 '^ - gomod: github\.com/open-telemetry/opentelemetry-collector-contrib/' otelcolbuilder/.otelcol-builder.yaml | cut -d " " -f 6 | $(SED) "s/v//") | ||
# usage: make update-ot OT_CORE_NEW=x.x.x OT_CONTRIB_NEW=y.y.y | ||
.PHONY: update-ot | ||
update-ot: install-gsed | ||
@test $(OT_CORE_NEW) || (echo "usage: make update-ot OT_CORE_NEW=x.x.x OT_CONTRIB_NEW=y.y.y"; exit 1); | ||
@test $(OT_CONTRIB_NEW) || (echo "usage: make update-ot OT_CORE_NEW=x.x.x OT_CONTRIB_NEW=y.y.y"; exit 1); | ||
@echo "Updating OT core from $(OT_CORE_VERSION) to $(OT_CORE_NEW) and OT contrib from $(OT_CONTRIB_VERSION) to $(OT_CONTRIB_NEW)" | ||
$(SED) -i "s/\(otelcol_version:\) $(OT_CORE_VERSION)$$/\1 $(OT_CORE_NEW)/" otelcolbuilder/.otelcol-builder.yaml | ||
$(SED) -i "s/\(version:\) $(OT_CORE_VERSION)$$/\1 $(OT_CORE_NEW)/" otelcolbuilder/.otelcol-builder.yaml |
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.
As discussed, let’s not use sed for editing yaml files 😅
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.
yeah, it was sed
originally, I changed to use yq
in some places. I'll change this too.
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.
@echlebek I used yq to edit the version in the builder config. Replacing the version in all the dependencies listed in the builder config using yq seems tricky. Open to suggestions. Seems like we need to use regex along with yq
which defeats the purpose of using it maybe? The alternative is to replace each dep line by line which seems inefficient.
@echlebek yes I'm pretty sure, |
@@ -102,7 +102,7 @@ endif | |||
|
|||
.PHONY: _builder | |||
_builder: | |||
$(eval VERSION ?= $(shell git describe --tags --abbrev=5 --match "v[0-9]*")) | |||
$(eval VERSION ?= $(shell git describe --tags --abbrev=5 --match "v[0-9]*"| sed 's/^v//')) |
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.
Remove the prefix (v) from the version
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.
cc: @amdprophet
Upgrade otel core to v114. Notable changes include
otel_version
renamed toversion