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

refactor(exec): remove paramsFile #807

Merged
merged 1 commit into from Nov 16, 2017
Merged

refactor(exec): remove paramsFile #807

merged 1 commit into from Nov 16, 2017

Conversation

nfischer
Copy link
Member

The paramsFile is obsolete now that we use execFileSync() for our
internal implementation. Instead, we pass parameters to the child
process directly as a single commandline parameter to reduce file I/O.

Issue #782

The `paramsFile` is obsolete now that we use `execFileSync()` for our
internal implementation. Instead, we pass parameters to the child
process directly as a single commandline parameter to reduce file I/O.

Issue #782
@nfischer nfischer added exec Issues specific to the shell.exec() API refactor labels Nov 16, 2017
@codecov-io
Copy link

codecov-io commented Nov 16, 2017

Codecov Report

Merging #807 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #807      +/-   ##
==========================================
- Coverage   95.47%   95.45%   -0.03%     
==========================================
  Files          34       34              
  Lines        1260     1254       -6     
==========================================
- Hits         1203     1197       -6     
  Misses         57       57
Impacted Files Coverage Δ
src/exec.js 96.87% <ø> (-0.19%) ⬇️
src/exec-child.js 100% <100%> (ø) ⬆️

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 8ab0a3a...c353843. Read the comment docs.

@nfischer
Copy link
Member Author

Reduces code 🎉 Decreases overall coverage because those lines were covered 😞

Copy link
Contributor

@freitagbr freitagbr left a comment

Choose a reason for hiding this comment

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

Awesome improvement! LGTM

@nfischer nfischer merged commit 64d5899 into master Nov 16, 2017
@nfischer nfischer deleted the remove-param-file branch November 16, 2017 20:44
nfischer added a commit that referenced this pull request Jan 19, 2018
This reverts commit 64d5899.

Reason for revert: If stdin is large, then the param object can become
an extremely long string, exceeding the maximum OS size limit on
commandline parameters.

Original change's description:
> refactor(exec): remove paramsFile (#807)
>
> The `paramsFile` is obsolete now that we use `execFileSync()` for our
> internal implementation. Instead, we pass parameters to the child
> process directly as a single commandline parameter to reduce file I/O.
>
> Issue #782
nfischer added a commit that referenced this pull request Jan 19, 2018
This reverts commit 64d5899.

Reason for revert: If stdin is large, then the param object can become
an extremely long string, exceeding the maximum OS size limit on
commandline parameters.

Original change's description:
> refactor(exec): remove paramsFile (#807)
>
> The `paramsFile` is obsolete now that we use `execFileSync()` for our
> internal implementation. Instead, we pass parameters to the child
> process directly as a single commandline parameter to reduce file I/O.
>
> Issue #782

Fixes #818
nfischer added a commit that referenced this pull request Jan 20, 2018
This reverts commit 64d5899.

Reason for revert: If stdin is large, then the param object can become
an extremely long string, exceeding the maximum OS size limit on
commandline parameters.

Original change's description:
> refactor(exec): remove paramsFile (#807)
>
> The `paramsFile` is obsolete now that we use `execFileSync()` for our
> internal implementation. Instead, we pass parameters to the child
> process directly as a single commandline parameter to reduce file I/O.
>
> Issue #782

Fixes #818
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exec Issues specific to the shell.exec() API refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants