-
Notifications
You must be signed in to change notification settings - Fork 821
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: remove JSON syntax error and regenerate tsconfig files #3566
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3566 +/- ##
==========================================
- Coverage 93.88% 90.83% -3.06%
==========================================
Files 255 77 -178
Lines 7757 1670 -6087
Branches 1612 338 -1274
==========================================
- Hits 7283 1517 -5766
+ Misses 474 153 -321
|
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.
Allow JS and include generated are definitely needed for the proto exporter base. it looks like the new autogeneration script overwrites these options assuming they are the same everywhere.
Seems there is a significant gap in tests because CI is green... |
Yeah I'm looking into it now. I found the problem which causes the key to be incorrectly overwritten. In https://github.com/open-telemetry/opentelemetry-js/blob/main/scripts/update-ts-configs.js#L249-L258 the JSON is failed to read because there is a trailing |
experimental/packages/otlp-proto-exporter-base/tsconfig.esnext.json
Outdated
Show resolved
Hide resolved
experimental/packages/otlp-proto-exporter-base/tsconfig.esnext.json
Outdated
Show resolved
Hide resolved
I think the tests are green because this is only happening in the |
This is no longer a |
I went ahead and pushed the fixes so that we can merge and release today |
not related to this pr but I think we should test |
We should be able to support merging the generated tsconfig with the manually written one: https://github.com/open-telemetry/opentelemetry-js/blob/main/scripts/update-ts-configs.js#L39. The problem here is caused by the silent suppression of parsing error: https://github.com/open-telemetry/opentelemetry-js/blob/main/scripts/update-ts-configs.js#L254. Maybe we should abort when failed to parse a tsconfig.json. |
Short description of the changes
Regenerated some tsconfig.json file because they are shown as modified by git after
npm install
.Refs: #3208