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

fix: disable workspace default feature #1562

Merged

Conversation

TommyCpp
Copy link
Contributor

@TommyCpp TommyCpp commented Feb 19, 2024

Follow up on #1486 (comment)

Changes

  • Disable default feature for some workspace dependencies to allow each create to decide which feature to enable.
  • Remove integration tests from jaeger-propagator

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

Copy link

codecov bot commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 66.8%. Comparing base (98cd103) to head (74e6d81).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1562     +/-   ##
=======================================
+ Coverage   66.0%   66.8%   +0.8%     
=======================================
  Files        140     138      -2     
  Lines      19537   19290    -247     
=======================================
  Hits       12903   12903             
+ Misses      6634    6387    -247     

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

Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

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

Maybe this should block the release?

Cargo.toml Outdated
log = "0.4"
once_cell = "1.13"
ordered-float = "4.0"
pin-project-lite = "0.2"
prost = "0.12"
prost = "0.12"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: extraneous space.

@@ -43,7 +43,7 @@ tokio = { workspace = true, features = ["net", "sync"], optional = true }
wasm-bindgen = { version = "0.2", optional = true }
wasm-bindgen-futures = { version = "0.4.18", optional = true }

tonic = { workspace = true, optional = true }
tonic = { workspace = true, optional = true, default-features = true }
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of doing this, it would be nice to enable the minimal set of features actually needed to make this compile.

@@ -12,7 +12,7 @@ rust-version = "1.65"
[dependencies]
opentelemetry = { version = "0.21", path = "../opentelemetry/" }
opentelemetry-http = { version = "0.10", path = "../opentelemetry-http", optional = true }
async-std = { workspace = true, features = ["unstable"], optional = true }
async-std = { workspace = true, default-features = true, features = ["unstable"], optional = true }
Copy link
Contributor

Choose a reason for hiding this comment

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

Surprising that CI still fails on this...

@TommyCpp TommyCpp marked this pull request as ready for review February 24, 2024 04:54
@TommyCpp TommyCpp requested a review from a team as a code owner February 24, 2024 04:54
@TommyCpp
Copy link
Contributor Author

TommyCpp commented Feb 24, 2024

Interesting I think for some reason cargo clippy --all-targets --all-features doesn't detect all issues in creates. One example is in this commit d630375 I delete a required feature and the CI passed without an issue

- remove integration test in jaeger propagator
- add cargo clippy for every create
@djc
Copy link
Contributor

djc commented Feb 24, 2024

This likely happens because of feature unification? When compiling all crates together, some other crate might be enabling metrics such that it works.

scripts/lint.sh Outdated Show resolved Hide resolved
scripts/lint.sh Outdated Show resolved Hide resolved
hdost and others added 2 commits February 24, 2024 18:34
Co-authored-by: Ed Morley <501702+edmorley@users.noreply.github.com>
Co-authored-by: Ed Morley <501702+edmorley@users.noreply.github.com>
Copy link
Contributor

@hdost hdost left a comment

Choose a reason for hiding this comment

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

Glad to see!

@TommyCpp TommyCpp merged commit 6422524 into open-telemetry:main Feb 25, 2024
15 checks passed
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.

None yet

5 participants