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

feat: Added utilization info for ECS #2565

Merged
merged 6 commits into from
Sep 12, 2024
Merged

Conversation

jsumners-nr
Copy link
Contributor

This PR resolves #2563.

Copy link

codecov bot commented Sep 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.23%. Comparing base (7ae4af4) to head (3fef822).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2565   +/-   ##
=======================================
  Coverage   97.22%   97.23%           
=======================================
  Files         290      291    +1     
  Lines       45882    45932   +50     
=======================================
+ Hits        44608    44661   +53     
+ Misses       1274     1271    -3     
Flag Coverage Δ
integration-tests-cjs-18.x 74.18% <88.28%> (+0.09%) ⬆️
integration-tests-cjs-20.x 74.19% <88.28%> (+0.11%) ⬆️
integration-tests-cjs-22.x 74.22% <88.28%> (+0.10%) ⬆️
integration-tests-esm-18.x 49.69% <35.93%> (-0.02%) ⬇️
integration-tests-esm-20.x 49.69% <35.93%> (-0.02%) ⬇️
integration-tests-esm-22.x 49.72% <35.93%> (-0.02%) ⬇️
unit-tests-18.x 88.88% <99.21%> (+0.01%) ⬆️
unit-tests-20.x 88.88% <99.21%> (+0.01%) ⬆️
unit-tests-22.x 88.89% <99.21%> (+0.01%) ⬆️
versioned-tests-18.x 79.00% <35.93%> (-0.19%) ⬇️
versioned-tests-20.x 79.03% <35.93%> (-0.16%) ⬇️
versioned-tests-22.x 79.02% <35.93%> (-0.19%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@jsumners-nr jsumners-nr marked this pull request as ready for review September 12, 2024 17:03
@@ -51,6 +56,7 @@ test('pricing system-info aws', function (t) {

// This will throw an error if the sys info isn't being cached properly
t.ok(awsRedirect.isDone(), 'should exhaust nock endpoints')
t.ok(ecsScope.isDone())
Copy link
Member

Choose a reason for hiding this comment

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

i know you have unit tests but this integration test should be assertion the ecs vendor:

    t.same(systemInfo.vendors.ecs, {
      ecsDockerId: 'ecs-container-1'
    })

module.exports = {
clearVendorCache: clearDockerVendorCache,
getBootId,
getEcsContainerId,
Copy link
Member

Choose a reason for hiding this comment

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

Reading the spec, I think the new solution should be replacing the original

Copy link
Member

@bizob2828 bizob2828 left a comment

Choose a reason for hiding this comment

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

LGTM

@jsumners-nr jsumners-nr merged commit 6f92073 into newrelic:main Sep 12, 2024
27 checks passed
@jsumners-nr jsumners-nr deleted the issue-2563 branch September 12, 2024 19:32
@github-actions github-actions bot mentioned this pull request Sep 12, 2024
sumitsuthar pushed a commit to k2io/fork-node-newrelic that referenced this pull request Sep 20, 2024
sumitsuthar added a commit to k2io/fork-node-newrelic that referenced this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

Add new ECS vendor data that reports container id
2 participants