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

updated non-dist paths #428

Merged
merged 1 commit into from
May 13, 2021
Merged

updated non-dist paths #428

merged 1 commit into from
May 13, 2021

Conversation

willarmiros
Copy link
Contributor

Issue #, if available:
#427

Description of changes:
Updated references to core package that used absolute path without dist.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

codecov-commenter commented May 13, 2021

Codecov Report

Merging #428 (8eec262) into master (fd91a51) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #428   +/-   ##
=======================================
  Coverage   82.71%   82.71%           
=======================================
  Files          36       36           
  Lines        1741     1741           
=======================================
  Hits         1440     1440           
  Misses        301      301           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fd91a51...8eec262. Read the comment docs.

@@ -5,8 +5,8 @@ var sinon = require('sinon');
var sinonChai = require('sinon-chai');

var expressMW = require('../../lib/express_mw');
var SegmentEmitter = require('../../../core/lib/segment_emitter.js');
var ServiceConnector = require('../../../core/lib/middleware/sampling/service_connector.js');
var SegmentEmitter = require('../../../core/dist/lib/segment_emitter.js');
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the dist repo going to be existed in the final assets that are packaged?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, the change in 3.3.2 was to repackage all of the content from lib into a dist directory, which is what's ultimately tested against and vended to customers.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These unit tests were passing before because when you clone the source repo and build the SDK, you have access to BOTH the dist and lib directories. But once it is vended to customers, only the dist is available.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the clarification as I was thinking why unit tests didn't catch this

@willarmiros willarmiros merged commit de21134 into aws:master May 13, 2021
@willarmiros willarmiros deleted the fix-absolute branch May 13, 2021 17:04
@willarmiros willarmiros restored the fix-absolute branch May 13, 2021 17:06
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.

None yet

3 participants