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: remove node globals #46

Merged

Conversation

hugomrdias
Copy link

This PR remove node globals, updates deps and fixes lint problems.

related to this ipfs/js-ipfs#2924

This PR remove node globals, updates deps and fixes lint problems.

related to this ipfs/js-ipfs#2924
const CBOR_GARBAGE = process.env.NODE_CBOR_GARBAGE
const NO_GARBAGE = process.env.NO_GARBAGE
const REPEATS = parseInt(CBOR_GARBAGE || 1000)
// const CBOR_GARBAGE = global.process.env.NODE_CBOR_GARBAGE
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not just removing those instead of commenting out?

Copy link
Author

Choose a reason for hiding this comment

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

just wanted to confirm with the reviewer if this would be better removed

Copy link
Owner

Choose a reason for hiding this comment

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

this shouldn't be removed

Copy link
Owner

Choose a reason for hiding this comment

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

we need to be able to set these values when testing

Copy link
Author

Choose a reason for hiding this comment

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

sure but these are tests and nothing is setting these env vars

how would you like this to be fixed ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Though it's neither document nor CI is using it. When is this test ever skipped (NO_GARBAGE is set)?

Copy link
Author

Choose a reason for hiding this comment

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

the test does nothing probably some left over from history

Copy link
Owner

Choose a reason for hiding this comment

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

I used this, and manually set it when I working on a fast iteration cycle as this is a pertty slow test. Please preserve the functionality that is there, allowing configuration of this test through setting env variables

@codecov-io
Copy link

codecov-io commented Mar 25, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@b6bae8b). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master      #46   +/-   ##
=========================================
  Coverage          ?   82.79%           
=========================================
  Files             ?        9           
  Lines             ?     1081           
  Branches          ?        0           
=========================================
  Hits              ?      895           
  Misses            ?      186           
  Partials          ?        0           

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 b6bae8b...18e5342. Read the comment docs.

@hugomrdias
Copy link
Author

should be good to go and ci is passing https://travis-ci.org/github/dignifiedquire/borc/builds/666838072

Copy link
Collaborator

@vmx vmx left a comment

Choose a reason for hiding this comment

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

@dignifiedquire can you do the merge and release stuff if you approve?

@dignifiedquire dignifiedquire merged commit b3cf721 into dignifiedquire:master Mar 25, 2020
@hugomrdias hugomrdias deleted the fix/remove-node-globals branch March 25, 2020 17:01
@hugomrdias
Copy link
Author

@dignifiedquire can you release please ?

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.

4 participants