Skip to content

add further tracing when spawning shells on Windows - #3975

Merged
niik merged 8 commits into
masterfrom
even-moar-tracing
Feb 28, 2018
Merged

niik merged 8 commits into
masterfrom
even-moar-tracing

Conversation

@shiftkey

@shiftkey shiftkey commented Feb 9, 2018 •

Copy link
Copy Markdown
Member

I was refreshing the docs in #3962 and realised this area of the codebase had gotten rather gnarly, so here's what I want to address:

  • improve readability of the main function by extracting the logic out and making the flow a bit easier to understand
  • use pathExists where appropriate as a sanity check (if it doesn't exist, we're gonna have a bad time) or log a debug message if this assumption fails
  • test these shells locally to ensure they work as expected for known good configs
    • cmd
    • PowerShell
    • Hyper
    • Git Bash
  • measure % change in time resolving all shells (worst case, all installed)

@shiftkey
shiftkey changed the base branch from better-error-handling-ENOENT to master February 11, 2018 06:45
process.env.SystemRoot || 'C:\\Windows'
)

if (await pathExists(path)) {

This comment was marked as spam.

@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Feb 13, 2018
@maxbed

maxbed commented Feb 13, 2018 via email

Copy link
Copy Markdown

@shiftkey shiftkey mentioned this pull request Feb 14, 2018
3 tasks done
@hubot
hubot deployed to test February 19, 2018 00:07 Active
@shiftkey shiftkey added this to the 1.2 milestone Feb 22, 2018
@shiftkey

shiftkey commented Feb 22, 2018 •

Copy link
Copy Markdown
Member Author

This is less pressing given that #4044 is the root cause of our shells issue, but it's still some nice improvements to have. Moving to 1.1.x to review once things have settled down.

@shiftkey shiftkey modified the milestones: 1.2, 1.1.x Feb 22, 2018
@niik niik self-assigned this Feb 28, 2018

@niik niik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Needs a little merge

@niik
niik merged commit ab827de into master Feb 28, 2018
@niik
niik deleted the even-moar-tracing branch February 28, 2018 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants