-
Notifications
You must be signed in to change notification settings - Fork 533
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: remove the non-publishing packages from the npm workspace #1938
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1938 +/- ##
==========================================
- Coverage 91.04% 91.02% -0.02%
==========================================
Files 147 146 -1
Lines 7530 7491 -39
Branches 1507 1501 -6
==========================================
- Hits 6856 6819 -37
+ Misses 674 672 -2 |
I think so, yes :) I think it works better than archive and this should be a dir that we can easily re-name (since it's not released, there wouldn't be a lot of links pointing towards this)
That's unfortunate, but I think it's fine. Up-to-date examples are important, but I'd put a higher priority on releasing on time. |
Sorry for the delay. I'll get to this tomorrow (Wednesday). |
Because they cause difficulties with updating `@opentelemetry/*` dependencies. This is "Option 3" from open-telemetry#1917 Refs: open-telemetry#1917
…s to release-please config) from open-telemetry#1928
a690109
to
35ba546
Compare
'npm install --package-lock-only' did not accomplish this. This regen was necessary because those vestigial entries caused surprising breakage in some 'npm install --no-save ...' commands such as TAV is doing. It broke TAV tests with [email protected].
Here is/was a nice surprise (sarcasm) with npm. With the above changes the TAV (test-all-versions) tests were failing, but just with
It took a while to notice that while I had removed the "plugins/node/opentelemetry-instrumentation-mongodb/examples" directory, the "package-lock.json" file still had that vestigial entry. Using If I manually make this change to that vestigial entry:
Then it works:
Basically I think there are at least a couple bugs in npm here:
The only things I know to do here are:
The latter seems fraught -- there is a possible whole dep tree that I don't
Sigh. The result is an inpenetrable 52k line diff. (IME, npm package-lock updates are unstable on whether some fields are included, e.g.: resolved, integrity, license. The package-lock stability could be because I'm jumping around on npm versions, but I'm not aware of docs here.) We do see the removal of the vestigial ".../examples/" entries, e.g.: - "plugins/node/opentelemetry-instrumentation-mongodb/examples": {
- "name": "mongodb-example",
- "version": "0.28.0",
- "extraneous": true,
- "license": "Apache-2.0",
- "dependencies": {
- "@opentelemetry/api": "^1.0.0",
- "@opentelemetry/exporter-jaeger": "^1.0.0",
- "@opentelemetry/exporter-zipkin": "^1.0.0",
- "@opentelemetry/instrumentation": "^0.48.0",
- "@opentelemetry/instrumentation-http": "^0.48.0",
- "@opentelemetry/instrumentation-mongodb": "^0.32.0",
- "@opentelemetry/sdk-trace-base": "^1.0.0",
- "@opentelemetry/sdk-trace-node": "^1.0.0",
- "mongodb": "^3.6.11"
- },
- "devDependencies": {
- "cross-env": "^7.0.3",
- "ts-node": "^10.6.0",
- "typescript": "4.4.4"
- },
- "engines": {
- "node": ">=8.12.0"
- }
- }, |
.release-please-manifest.json
Outdated
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.
reviewer note: This change removes the non-publishing package entries that were added in #1939.
examples/express/README.md
Outdated
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.
reviewer note: This diff makes it look like a total re-write, but I only changed the "Installation" section.
@@ -8,13 +8,12 @@ | |||
"zipkin:client": "cross-env EXPORTER=zipkin ts-node src/client.ts", | |||
"jaeger:server": "cross-env EXPORTER=jaeger ts-node src/server.ts", | |||
"jaeger:client": "cross-env EXPORTER=jaeger ts-node src/client.ts", | |||
"compile": "tsc -p .", | |||
"setup": "cd ../../../../ && npm ci && cd plugins/node/opentelemetry-instrumentation-express && npm run compile && cd examples && npm run compile" |
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.
reviewer note: (/cc @JamieDanielson) this "setup" script is no longer necessary. Now that the examples are not part of the workspace, the user just needs to npm install
.
package-lock.json
Outdated
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.
reviewer note: Good luck reviewing this. :) Here is the most succinct version of the diff I could make: https://gist.github.com/trentm/92c639ca7cd86722268d4d4390cecea2
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.
Any hand crafted changes in there or just what npm created?
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.
Just what npm created.
'undici-types', required by the version of @types/node used by the new instrumentation-perf-hooks, was lost in the merge from main.
"Unit Tests / unit-test (14) (pull_request) " failureThis is in the new instrumentation-perf-hooks:
So I'm guessing that test is flaky. I have not repro'd locally yet. |
The test failure was on this line:
So I wonder if the new |
Because they cause difficulties with updating
@opentelemetry/*
dependencies.This is "Option 3" from #1917
Refs: #1917
summary of changes
plugins/node/opentelemetry-instrumentation-FOO/examples/
toexamples/FOO
and fix up some details to get them working.packages/opentelemetry-sampler-aws-xray
toincubator/opentelemetry-sampler-aws-xray/
npm run compile:examples
.checklist (done)
start an issue for working through modernizing or dropping examplesdocument expectation/procedure for maintaining examples