Skip to content
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] Update uses of configgrpc for v0.111 #35580

Closed

Conversation

jade-guiton-dd
Copy link
Contributor

@jade-guiton-dd jade-guiton-dd commented Oct 3, 2024

Description:
In v0.110 of the core libraries, new versions of ClientConfig.ToClientConn and ServerConfig.ToServer from configgrpc were added to support a new option type, and the old versions were deprecated. Contrib was updated in #35352.

In v0.111, the old versions will be removed, and the new versions will be renamed back to the original names, with deprecated aliases remaining for one more version (cf. this PR).

This PR updates the core libraries to a pre-release version past this PR and updates Contrib to match this change (simply rename ToClientConnWithOptions/ToServerWithOptions to ToClientConn/ToServer).

Link to tracking Issue:
Part of #9480 on Core

@@ -50,9 +50,9 @@ extensions:
- gomod: github.com/open-telemetry/opentelemetry-collector-contrib/extension/encoding/zipkinencodingextension v0.110.0

exporters:
- gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.110.0
- gomod: go.opentelemetry.io/collector/exporter/debugexporter v0.110.1-0.20240927195042-40396d5fc50c
- gomod: go.opentelemetry.io/collector/exporter/nopexporter v0.110.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please update all the core modules so we have a consistent snapshot of the core repo?

@mx-psi mx-psi mentioned this pull request Oct 4, 2024
@mx-psi
Copy link
Member

mx-psi commented Oct 4, 2024

Superseded by #35598, thanks Jade for the PR, we had to make a quick update for the v0.111.0 release so this was included in that PR

@mx-psi mx-psi closed this Oct 4, 2024
MovieStoreGuy pushed a commit that referenced this pull request Oct 22, 2024
**Description:**

When working on #35580, it seemed that `make update-otel` was not
properly updating the `builder-config.yaml` files. I traced this down to
the `updatehelper` script not working as intended. This turned out to be
because it uses some features of the `sed` utility which do not exist on
macOS, causing no updates to be made.

The `\s` (whitespace) regex class is a GNU extension for `sed`; the
POSIX-compatible equivalent is `[[:space:]]` ([related SO
question](https://stackoverflow.com/questions/18840175/find-and-replace-with-spaces-using-sed-mac-terminal)).

Moreover, on macOS, the `-i` (in-place) option requires an argument,
even if empty; otherwise the `-e` following it is parsed as that
argument, creating an unnecessary backup file ([related SO
question](https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux)).

**Testing:**

I manually tested this change as part of developing the aforementioned
PR; the script seems to work on macOS now. It would be good for someone
to test this change on Linux to make sure nothing has broken there.
@jade-guiton-dd jade-guiton-dd deleted the configgrpc-update branch November 27, 2024 13:38
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
**Description:**

When working on open-telemetry#35580, it seemed that `make update-otel` was not
properly updating the `builder-config.yaml` files. I traced this down to
the `updatehelper` script not working as intended. This turned out to be
because it uses some features of the `sed` utility which do not exist on
macOS, causing no updates to be made.

The `\s` (whitespace) regex class is a GNU extension for `sed`; the
POSIX-compatible equivalent is `[[:space:]]` ([related SO
question](https://stackoverflow.com/questions/18840175/find-and-replace-with-spaces-using-sed-mac-terminal)).

Moreover, on macOS, the `-i` (in-place) option requires an argument,
even if empty; otherwise the `-e` following it is parsed as that
argument, creating an unnecessary backup file ([related SO
question](https://stackoverflow.com/questions/4247068/sed-command-with-i-option-failing-on-mac-but-works-on-linux)).

**Testing:**

I manually tested this change as part of developing the aforementioned
PR; the script seems to work on macOS now. It would be good for someone
to test this change on Linux to make sure nothing has broken there.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants