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(shared-metrics): removed fs-extra dependency from production #1362

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

aryamohanan
Copy link
Contributor

@aryamohanan aryamohanan commented Oct 4, 2024

The external dependency fs-extra has been removed from the production dependencies. Previously, we couldn't use the native fs.cp module due to its unavailability in earlier versions of Node.js 16. Now that we're deprecating support for versions below 18, we're switching to the native fs module See https://nodejs.org/api/fs.html#fspromisescpsrc-dest-options
refs #1265

@aryamohanan aryamohanan changed the base branch from main to v4 October 4, 2024 13:06
@aryamohanan aryamohanan added the v4 label Oct 4, 2024
@aryamohanan aryamohanan force-pushed the replace-fs-extra branch 3 times, most recently from c2dc0e6 to dcd6beb Compare October 4, 2024 13:11
@aryamohanan aryamohanan changed the title fix: replaced fs-extra with native fs library fix(shared-metrics): removed fs-extra dependency from production Oct 4, 2024
@aryamohanan aryamohanan force-pushed the replace-fs-extra branch 2 times, most recently from 01e8f54 to 59ccf7d Compare October 7, 2024 04:04
@aryamohanan aryamohanan marked this pull request as ready for review October 7, 2024 05:55
@aryamohanan aryamohanan requested a review from a team as a code owner October 7, 2024 05:55
Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

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

Now that we're deprecating support for versions below 18

Suggestion: Now that we're dropping support for versions below 18 in v4.


Suggestion for commit:

fix(shared-metrics): replaced fs-extra with fs promises

@@ -882,10 +877,10 @@ mochaSuiteFn('tracing/db2', function () {
.then(() =>
testUtils.retry(() =>
verifySpans(agentControls, controls, {
numberOfSpans: 14,
numberOfSpans: 15,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noticed there are now 15 spans, likely because I’m using the native fs, which may have caused the span count to increase. If the test continues to fail again, so I will investigate further.

@aryamohanan aryamohanan merged commit fcd344c into v4 Oct 8, 2024
1 check failed
@aryamohanan aryamohanan deleted the replace-fs-extra branch October 8, 2024 03:50
@aryamohanan aryamohanan mentioned this pull request Oct 10, 2024
20 tasks
aryamohanan added a commit that referenced this pull request Oct 14, 2024
aryamohanan added a commit that referenced this pull request Oct 14, 2024
aryamohanan added a commit that referenced this pull request Oct 14, 2024
aryamohanan added a commit that referenced this pull request Oct 14, 2024
aryamohanan added a commit that referenced this pull request Oct 18, 2024
aryamohanan added a commit that referenced this pull request Oct 21, 2024
aryamohanan added a commit that referenced this pull request Oct 22, 2024
aryamohanan added a commit that referenced this pull request Oct 23, 2024
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.

2 participants