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 additional modules to psuedo versions #11503

Merged
merged 5 commits into from
Oct 21, 2024

Conversation

evan-bradley
Copy link
Contributor

Description

Convert additional modules to use pseudo-version numbers. In cases where the module already has a released version, upgrade to pseudo versions to prevent ambiguous import errors (e.g. processor and processortest).

@evan-bradley evan-bradley requested a review from a team as a code owner October 21, 2024 19:22
@bogdandrutu
Copy link
Member

Why is this important and where?

@evan-bradley
Copy link
Contributor Author

Running make update-otel in contrib produces errors like unknown revision pipeline/pipelineprofiles/v0.111.0. I think the larger-than-usual number of modules we're creating this release is making this issue stand out.

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.47%. Comparing base (5cd035b) to head (4c95b2a).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11503   +/-   ##
=======================================
  Coverage   91.47%   91.47%           
=======================================
  Files         433      433           
  Lines       23616    23616           
=======================================
  Hits        21603    21603           
  Misses       1645     1645           
  Partials      368      368           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bogdandrutu
Copy link
Member

Running make update-otel in contrib produces errors like unknown revision pipeline/pipelineprofiles/v0.111.0. I think the larger-than-usual number of modules we're creating this release is making this issue stand out.

After we do the release this is not a problem correct? So then why not doing the release?

@evan-bradley
Copy link
Contributor Author

The first step in the releasing document says to run this to check for errors. You're right that this shouldn't be a problem after the release, but this is my first release, so I'm looking to play it safe and double-check before releasing core.

@bogdandrutu
Copy link
Member

I understand, but I am confused about changes to go.opentelemetry.io/collector/consumer

@evan-bradley
Copy link
Contributor Author

go.opentelemetry.io/collector/consumer/consumererror was made its own module, but go.opentelemetry.io/collector/consumer@v0.111.0 includes go.opentelemetry.io/collector/consumer/consumererror as a package. go.opentelemetry.io/collector/consumer/consumererror then becomes an ambiguous import because it can come from the package inside of consumer or from its own module. Therefore I had to update consumer to a version that doesn't include the go.opentelemetry.io/collector/consumer/consumererror package.

This shouldn't impact the version of the module that is obtained, but is technically a better psuedo-version number
@bogdandrutu bogdandrutu merged commit 4884781 into open-telemetry:main Oct 21, 2024
49 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 21, 2024
@evan-bradley evan-bradley deleted the pseudo-versions branch October 22, 2024 12:14
mx-psi pushed a commit that referenced this pull request Oct 22, 2024
…pendencies (#11509)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Say we have three modules, A, B, and C, with dependencies C->B->A. If we
are on commit 1, and make a new commit, 2, where we change the
dependencies such that the go.mod files read C@2->B@1->A@1, we will
still get a failure, because at commit 1 we had not yet made the changes
necessary to properly resolve these modules. Specifically, at commit 2
we have B@1->A@#, where A@# is not externally-resolvable.

We therefore need to make a new commit 3, where we can have
C@2->B@2->A@2, and at commit 2 all modules are externally-resolvable.

This PR is a necessary update to
#11503.

When running `make update-otel` in contrib, I am seeing the following
errors:

```
go: downloading go.opentelemetry.io/collector/connector/connectortest v0.0.0-20241021181817-007f06b7c4a8
go: go.opentelemetry.io/collector/pipeline/pipelineprofiles@v0.111.0: reading go.opentelemetry.io/collector/pipeline/pipelineprofiles/go.mod at revision pipeline/pipelineprofiles/v0.111.0: unknown revision pipeline/pipelineprofiles/v0.111.0
```

connectortest has an indirect dependency on pipelineprofiles, and at
commit `007f06b7c4a8` pipelineprofiles is versioned at v0.111.0. The
latest commit, `403c782d50c6`, will version it at `007f06b7c4a8`. Since
pipelineprofiles has no dependencies, this will not result in any
issues.
djaglowski pushed a commit to djaglowski/opentelemetry-collector that referenced this pull request Nov 21, 2024
…11503)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Convert additional modules to use pseudo-version numbers. In cases where
the module already has a released version, upgrade to pseudo versions to
prevent ambiguous import errors (e.g. processor and processortest).
djaglowski pushed a commit to djaglowski/opentelemetry-collector that referenced this pull request Nov 21, 2024
…pendencies (open-telemetry#11509)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Say we have three modules, A, B, and C, with dependencies C->B->A. If we
are on commit 1, and make a new commit, 2, where we change the
dependencies such that the go.mod files read C@2->B@1->A@1, we will
still get a failure, because at commit 1 we had not yet made the changes
necessary to properly resolve these modules. Specifically, at commit 2
we have B@1->A@#, where A@# is not externally-resolvable.

We therefore need to make a new commit 3, where we can have
C@2->B@2->A@2, and at commit 2 all modules are externally-resolvable.

This PR is a necessary update to
open-telemetry#11503.

When running `make update-otel` in contrib, I am seeing the following
errors:

```
go: downloading go.opentelemetry.io/collector/connector/connectortest v0.0.0-20241021181817-007f06b7c4a8
go: go.opentelemetry.io/collector/pipeline/pipelineprofiles@v0.111.0: reading go.opentelemetry.io/collector/pipeline/pipelineprofiles/go.mod at revision pipeline/pipelineprofiles/v0.111.0: unknown revision pipeline/pipelineprofiles/v0.111.0
```

connectortest has an indirect dependency on pipelineprofiles, and at
commit `007f06b7c4a8` pipelineprofiles is versioned at v0.111.0. The
latest commit, `403c782d50c6`, will version it at `007f06b7c4a8`. Since
pipelineprofiles has no dependencies, this will not result in any
issues.
HongChenTW pushed a commit to HongChenTW/opentelemetry-collector that referenced this pull request Dec 19, 2024
…11503)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Convert additional modules to use pseudo-version numbers. In cases where
the module already has a released version, upgrade to pseudo versions to
prevent ambiguous import errors (e.g. processor and processortest).
HongChenTW pushed a commit to HongChenTW/opentelemetry-collector that referenced this pull request Dec 19, 2024
…pendencies (open-telemetry#11509)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Say we have three modules, A, B, and C, with dependencies C->B->A. If we
are on commit 1, and make a new commit, 2, where we change the
dependencies such that the go.mod files read C@2->B@1->A@1, we will
still get a failure, because at commit 1 we had not yet made the changes
necessary to properly resolve these modules. Specifically, at commit 2
we have B@1->A@#, where A@# is not externally-resolvable.

We therefore need to make a new commit 3, where we can have
C@2->B@2->A@2, and at commit 2 all modules are externally-resolvable.

This PR is a necessary update to
open-telemetry#11503.

When running `make update-otel` in contrib, I am seeing the following
errors:

```
go: downloading go.opentelemetry.io/collector/connector/connectortest v0.0.0-20241021181817-007f06b7c4a8
go: go.opentelemetry.io/collector/pipeline/pipelineprofiles@v0.111.0: reading go.opentelemetry.io/collector/pipeline/pipelineprofiles/go.mod at revision pipeline/pipelineprofiles/v0.111.0: unknown revision pipeline/pipelineprofiles/v0.111.0
```

connectortest has an indirect dependency on pipelineprofiles, and at
commit `007f06b7c4a8` pipelineprofiles is versioned at v0.111.0. The
latest commit, `403c782d50c6`, will version it at `007f06b7c4a8`. Since
pipelineprofiles has no dependencies, this will not result in any
issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants