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] delete code to set a version and date, as it it not used #10715

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

atoulme
Copy link
Contributor

@atoulme atoulme commented Jul 24, 2024

No description provided.

@atoulme atoulme requested review from a team and djaglowski July 24, 2024 04:09
@@ -123,7 +123,7 @@ configuration is provided, ocb will generate a default Collector.

func initConfig(flags *flag.FlagSet) error {
cfg.Logger.Info("OpenTelemetry Collector Builder",
zap.String("version", version), zap.String("date", date))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

date is never set.

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe it was set by ldflags in goreleaser.yml, which was now moved to opentelemetry-collector-releases. Dealing with issue open-telemetry/opentelemetry-collector-releases#664 now and am trying to narrow down why adding the ldflags back doesn't work, wondering if it has to do with version.go below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it wasn't used, so it had to go. If it's in usage, let's make sure it has tests and is exercised in this repository, and then it will be maintained and we can use it in the -releases repository. This might deserve its own issue in this repository.

Copy link
Contributor

Choose a reason for hiding this comment

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

I wrote some tests for it and opened a PR, happy to open an issue to mirror the one in releases

Copy link

codecov bot commented Jul 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.28%. Comparing base (4e44e32) to head (7c2a369).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10715      +/-   ##
==========================================
+ Coverage   92.24%   92.28%   +0.04%     
==========================================
  Files         403      403              
  Lines       18720    18714       -6     
==========================================
+ Hits        17268    17271       +3     
+ Misses       1097     1088       -9     
  Partials      355      355              

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

@bogdandrutu bogdandrutu merged commit b53f57d into open-telemetry:main Jul 30, 2024
50 checks passed
@github-actions github-actions bot added this to the next release milestone Jul 30, 2024
jackgopack4 added a commit to jackgopack4/opentelemetry-collector that referenced this pull request Sep 18, 2024
@atoulme atoulme deleted the delete_version_code branch September 19, 2024 19:58
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