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

doc: Change test option at STEP 5: Test in CONTRIBUTING.md #12830

Closed
wants to merge 7 commits into from

Conversation

kysnm
Copy link
Contributor

@kysnm kysnm commented May 4, 2017

Refs #12771

Checklist
Affected core subsystem(s)

none

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label May 4, 2017
@lpinca lpinca requested review from MylesBorins and removed request for MylesBorins May 4, 2017 15:56
CONTRIBUTING.md Outdated
You can run tests in parallel with option `-J`

```text
$ python tools/test.py -J --mode=release parallel
Copy link
Member

Choose a reason for hiding this comment

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

There is make test-parallel for this so I wouldn't add it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for reviewing.
I will remove this.

@vsemozhetbyt vsemozhetbyt added test Issues and PRs related to the tests. tools Issues and PRs related to the tools directory. labels May 4, 2017
Copy link
Contributor

@vsemozhetbyt vsemozhetbyt left a comment

Choose a reason for hiding this comment

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

LGTM with a nit: line 191 is 81 characters long, and this may break approaching doc linting. Could you please wrap this line, say, before the last word?

@kysnm
Copy link
Contributor Author

kysnm commented May 4, 2017

I fix it.
and check to the make lint

Do I have to squash this branch?

CONTRIBUTING.md Outdated
$ python tools/test.py --mode=release parallel/test-stream2-transform
```

If you want to check the other option, please refer the help with option
Copy link
Member

Choose a reason for hiding this comment

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

Nit: take this with a grain of salt as I'm not a native speaker but maybe it better to use "the other options, please refer to the help with the option".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agreed

@vsemozhetbyt
Copy link
Contributor

Thank you! I may squash if it is not difficult. Or this may be squashed before landing by somebody else.

@kysnm
Copy link
Contributor Author

kysnm commented May 4, 2017

@vsemozhetbyt
I understand it 😄

@lpinca
Copy link
Member

lpinca commented May 4, 2017

@kysnm I think the last commit removed more words than it had to :)

@kysnm
Copy link
Contributor Author

kysnm commented May 4, 2017

@lpinca
I'm sorry 💦
Does this commit is match with your pointed out?

@lpinca
Copy link
Member

lpinca commented May 4, 2017

Yes, thank you!

@kysnm
Copy link
Contributor Author

kysnm commented May 4, 2017

Thank you for your reviewing.
I'm glad to can contribute this 🎉

CONTRIBUTING.md Outdated
$ python tools/test.py --mode=release parallel/test-stream2-transform
```

If you want to check the other option, please refer to the help with the option
Copy link
Contributor

Choose a reason for hiding this comment

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

"...other options..."

Copy link
Contributor

@aqrln aqrln May 4, 2017

Choose a reason for hiding this comment

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

Also, can you please avoid using personal pronouns like "you"?

EDIT: on the other hand, that's how this document is already written, and such wording is common in it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see

CONTRIBUTING.md Outdated
```

If you want to check the other option, please refer to the help with the option
`--help`
Copy link
Contributor

Choose a reason for hiding this comment

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

Unnecessary space at the beginning of the line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see

@kysnm
Copy link
Contributor Author

kysnm commented May 4, 2017

Fixed

CONTRIBUTING.md Outdated
@@ -185,7 +185,14 @@ If you are updating tests and just want to run a single test to check it, you
can use this syntax to run it exactly as the test harness would:

```text
$ python tools/test.py -v --mode=release parallel/test-stream2-transform
$ python tools/test.py --mode=release parallel/test-stream2-transform
Copy link
Member

@gibfahn gibfahn May 5, 2017

Choose a reason for hiding this comment

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

Can we add a -J? Given that it says "exactly as the test harness would" we should probably be exact:

-$ python tools/test.py --mode=release parallel/test-stream2-transform
+$ python tools/test.py -J --mode=release parallel/test-stream2-transform

LGTM otherwise.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be run "exactly as the test harness would" either way given that tools/test.py is the test harness, regardless of the options.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that users would understand by looking at help.

Copy link
Member

Choose a reason for hiding this comment

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

I think it would be run "exactly as the test harness would" either way given that tools/test.py is the test harness, regardless of the options.

I assume the test harness means make test, otherwise that part of the sentence is kinda meaningless. The reason I think this is necessary is that using -J can cause subtle bugs (when tests interact with each other), and that is impossible to debug if you don't use the flag by default.

Copy link
Contributor

Choose a reason for hiding this comment

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

The reason I think this is necessary is that using -J can cause subtle bugs (when tests interact with each other)

Yeah, I agree with that if we are talking about running multiple tests. But that sentence is about running a single test, isn't it? Do I miss the point?

Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't a PR changing -J to default (with -j1 as the opt-out) make sense?

Maaaybe, I think I'd be +1 on that, but I suspect it might be contentious...

Copy link
Contributor

Choose a reason for hiding this comment

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

Other option, a wrapper script test-ci (.sh & .cmd).
This one I'm doing

Copy link
Member

Choose a reason for hiding this comment

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

Other option, a wrapper script test-ci (.sh & .cmd).

Doesn't that duplicate the Makefile and vcbuild.bat test-ci target? What's the gain?

Copy link
Contributor

Choose a reason for hiding this comment

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

It'll take $*, so it's useful for single files, or single suits.
I don't know about make test-ci but vcbuild test-ci builds first (with Feet of clay), very demotivating.

Copy link
Contributor

Choose a reason for hiding this comment

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

PTAL #12874

CONTRIBUTING.md Outdated
If you want to check the other option, please refer to the help with the option
`--help`
If you want to check the other options, please refer to the help with the
option `--help`
Copy link
Contributor

@refack refack May 6, 2017

Choose a reason for hiding this comment

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

Nit: please refer to the help with the option `--help` => please refer to the documentation by using the `--help` option

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think the word documentation gives the users impression that they should see the https://nodejs.org/en/docs/

Copy link
Contributor

Choose a reason for hiding this comment

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

Several options

  1. please refer to the built in documentation by using the `--help` option
  2. please refer to the help by using the `--help` option
  3. please refer to the help by passing the `--help` flag

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for suggestions
I will change to the No.2

@refack refack mentioned this pull request May 6, 2017
3 tasks
@kysnm
Copy link
Contributor Author

kysnm commented May 10, 2017

Is there anything i should fix the patch, yet?
Please let me know 🙏

@gibfahn
Copy link
Member

gibfahn commented May 10, 2017

I'd still like the -J (unless someone is -1 on it).

-$ python tools/test.py --mode=release parallel/test-stream2-transform
+$ python tools/test.py -J --mode=release parallel/test-stream2-transform

@kysnm
Copy link
Contributor Author

kysnm commented May 11, 2017

Added the option -J, because no one is -1 on comment above.

@kysnm
Copy link
Contributor Author

kysnm commented May 11, 2017

@aqrln
How do you think?

Copy link
Contributor

@aqrln aqrln left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@kysnm
Copy link
Contributor Author

kysnm commented May 12, 2017

Thanks for all reviewers.
I'm looking forward to that this patch will be landed
(if there is no more point out 😁 )

refack pushed a commit to refack/node that referenced this pull request May 12, 2017
PR-URL: nodejs#12830
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Alexey Orlenko <[email protected]>
@refack
Copy link
Contributor

refack commented May 12, 2017

Landed in d7d16f7

@refack refack closed this May 12, 2017
@kysnm kysnm deleted the change-test-option branch May 12, 2017 17:18
anchnk pushed a commit to anchnk/node that referenced this pull request May 19, 2017
PR-URL: nodejs#12830
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Alexey Orlenko <[email protected]>
@jasnell jasnell mentioned this pull request May 28, 2017
@gibfahn gibfahn mentioned this pull request Jun 15, 2017
3 tasks
MylesBorins pushed a commit that referenced this pull request Jun 22, 2017
PR-URL: #12830
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Alexey Orlenko <[email protected]>
MylesBorins pushed a commit that referenced this pull request Jul 11, 2017
PR-URL: #12830
Reviewed-By: Vse Mozhet Byt <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Alexey Orlenko <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Jul 18, 2017
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. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.