FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: do not use `more` command on Windows by vsemozhetbyt · Pull Request #11953 · nodejs/node · GitHub

/ node Public

test: do not use more command on Windows - #11953

Closed
vsemozhetbyt wants to merge 1 commit into
nodejs:masterfrom
vsemozhetbyt:more-to-cat
Closed

test: do not use more command on Windows#11953
vsemozhetbyt wants to merge 1 commit into
nodejs:masterfrom
vsemozhetbyt:more-to-cat

Conversation

vsemozhetbyt commented Mar 21, 2017
edited
Loading

Copy link
Copy Markdown
Contributor
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

test

Fixes: #11469

nodejs-github-bot added the test Issues and PRs related to the tests. label Mar 21, 2017
vsemozhetbyt added doc Issues and PRs related to the documentations. windows Issues and PRs related to the Windows platform. labels Mar 21, 2017

Copy link
Copy Markdown
Contributor Author

jasnell commented Mar 21, 2017

Copy link
Copy Markdown
Member

@nodejs/platform-windows

joaocgreis 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Copy link
Copy Markdown
Member

cc @nodejs/testing

gibfahn commented Mar 21, 2017

Copy link
Copy Markdown
Member

Is cat included by default on windows machines? I know you get it through Git Bash, which we require, but I didn't think it came with CMD by default.

vsemozhetbyt commented Mar 21, 2017
edited
Loading

Copy link
Copy Markdown
Contributor Author

@gibfahn I don't think cat is included. I just thought the build requirements was a safe condition for it.

Copy link
Copy Markdown
Member

@gibfahn no, not by default. We already require Git Bash, tests already fail if the Unix tools are not installed, so I think it's better to make it consistent.

@vsemozhetbyt you have the same issue in Refs: and Fixes:, you can leave only the Fixes: line.

gibfahn commented Mar 21, 2017
edited
Loading

Copy link
Copy Markdown
Member

@vsemozhetbyt Yep, that was the context I hadn't seen.

I think it's fine to assume the developer will have cat.exe on the system due to it being included in Git Bash, the only issue is that the developer might not have the path to the Git command tools in their CMD path. I guess the answer is to document that you will need to add C:\Program Files\Git\usr\bin to your system path if it's not there already.

Copy link
Copy Markdown
Contributor Author

@gibfahn It seems something like that is already present in the doc:

Basic Unix tools required for some tests, Git for Windows includes Git Bash and tools which can be included in the global PATH.

seishun commented Mar 21, 2017

Copy link
Copy Markdown
Contributor

the only issue is that the developer might not have the path to the Git command tools in their CMD path

That's the same with other tests too.

mhdawson 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Trott 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM. Happy to see stuff being removed from the common.js monolith!

vsemozhetbyt added a commit that referenced this pull request Mar 23, 2017
PR-URL: #11953
Fixes: #11469
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>

Copy link
Copy Markdown
Contributor Author

Landed in 2dff3a2

vsemozhetbyt deleted the more-to-cat branch March 23, 2017 03:57
MylesBorins pushed a commit that referenced this pull request Mar 28, 2017
PR-URL: #11953
Fixes: #11469
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
MylesBorins mentioned this pull request Mar 28, 2017
italoacasas mentioned this pull request Apr 10, 2017
2 tasks

Copy link
Copy Markdown
Contributor

This is causing failures for OSX testing on v6.x. did not cherry-pick. LMK if it should land

refack added the post-mortem Issues and PRs related to the post-mortem diagnostics of Node.js. label Apr 18, 2017

refack commented Apr 18, 2017
edited
Loading

Copy link
Copy Markdown
Contributor

post-mortem

  1. I pro-uniformity (i.e. anti-disparity). (so I'm not suggesting we use the built in Windows type which is the equivalent to cat)
  2. I don't have cat in my Path, also adding ...\Git\usr\bin or any other unix tools folder, as it has some non-trivial side effects.
  3. I have no problem with special setup for building/testing node.

bottom-line

But in case changes like this are added I would like to ask for a quick failing sanity check to be added to run early to remind us if something in the environment is missing
/cc @nodejs/platform-windows

refack commented Apr 18, 2017

Copy link
Copy Markdown
Contributor

Such a test will also be a defacto documentation of what the following process is dependent on.

gibfahn commented Apr 18, 2017

Copy link
Copy Markdown
Member

also adding ...\Git\usr\bin or any other unix tools folder, as it has some non-trivial side effects.

Out of interest, what side effects are those?

I would like to ask for a quick failing sanity check to be added to run early to remind us if something in the environment is missing

A test that just runs through all the tools test.py expects makes sense to me, and not just for Windows.

Copy link
Copy Markdown
Member

The post-morgen tag is for post mortem analysis related issues like core dump problems.

Also, not sure why something not landing cleanly on an old version requires post-mortem analysis?

gibfahn removed the post-mortem Issues and PRs related to the post-mortem diagnostics of Node.js. label Apr 18, 2017

refack commented Apr 18, 2017

Copy link
Copy Markdown
Contributor

The post-morgen tag is for post mortem analysis related issues like core dump problems.

Sorry. it's not documented (or I couldn't find where).

Also, not sure why something not landing cleanly on an old version requires post-mortem analysis?

Since this has already landed, I could only consider this a post-mortem for it creating a regression on Windows. After my #12493 I didn't want to tag in "regression" since it's not such a big deal.

refack commented Apr 18, 2017

Copy link
Copy Markdown
Contributor

also adding ...\Git\usr\bin or any other unix tools folder, as it has some non-trivial side effects.

Out of interest, what side effects are those?

For some reason if sh.exe is in the path, make can't run properly. Also it overrides find and if you don't order your %Path% correctly, it overrides some ported tools, like curl or wget.

refack commented Apr 18, 2017

Copy link
Copy Markdown
Contributor

mscdex commented Apr 18, 2017
edited
Loading

Copy link
Copy Markdown
Contributor

FWIW the contributing guide mentions that the building guide should be read when running tests and the building guide does mention in the Windows section that basic unix tools are required for some tests and that they can be installed via Git for Windows.

refack commented Apr 18, 2017

Copy link
Copy Markdown
Contributor

@mscdex aware, agree, but supporting docs with automation make for a time saver :-D

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. test Issues and PRs related to the tests. windows Issues and PRs related to the Windows platform.

Projects

None yet

Development

Successfully merging this pull request may close these issues.


Back | FazBrowse Home | New Git URL