-
Notifications
You must be signed in to change notification settings - Fork 620
chore: add 'lint:semconv-deps' #2569
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: add 'lint:semconv-deps' #2569
Conversation
This adds a lint step that checks that packages in the workspace are following our 'rule' that uses of the semconv pkg 'incubating' entry-point should *pin* the '@opentelemetry/semantic-conventions' dep. This is because (though rare) the incubating/unstable semconv exports can have breaking changes in minors. Refs: open-telemetry#2549 (comment) Refs: open-telemetry/opentelemetry-js#5182
|
Currently there is one package that is breaking this rule: I'll update that dep in a commit on this PR. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2569 +/- ##
=======================================
Coverage 92.40% 92.40%
=======================================
Files 171 171
Lines 8142 8142
Branches 1647 1647
=======================================
Hits 7524 7524
Misses 618 618 |
trivikr
left a comment
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.
Should instrumentation-aws-lambda be removed from commit message since the script is global?
This includes a change to instrumentation-aws-lambda's package.json#dependencies for which there should be a new version of this package, so I think it should stay. IIRC keeping it in the commit title is what gets the release process to notice that there should be a new version of this package. |
jj22ee
left a comment
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.
Approving update to instrumentation-aws-lambda's package.json.
|
Given the decision here: open-telemetry/opentelemetry-js#5182 (comment) |
|
Okay, I've switch over the linting behaviour to the final guidance from open-telemetry/opentelemetry-js#5182 (comment) In the current repo state there are these lint failures: Those were added recently in #2642. I'll open a PR to fix those. That one should be merged before this one. |
|
I'm not sure why I had added the |
pichlermarc
left a comment
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.
thanks 👍
This adds the same lint step added to the contrib repo in open-telemetry/opentelemetry-js-contrib#2569 It ensures that the semantic-conventions dep is being used as recommended: no usage of incubating, no pinning of the dep.
Co-authored-by: Marc Pichler <[email protected]>
This adds a lint step that checks that packages in the workspace
are following our "rules" on usage of '@opentelemetry/semantic-conventions'
dep: don't pin it, don't use the 'incubating' entry point.
https://github.com/open-telemetry/opentelemetry-js/tree/main/semantic-conventions#unstable-semconv
Refs: #2549 (comment)
Refs: open-telemetry/opentelemetry-js#5182
checklist