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

test: refactor test-crypto test files #8597

Closed

Conversation

griffithtp
Copy link

@griffithtp griffithtp commented Sep 17, 2016

Checklist
  • make lint
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Description of change

Updated ./test/parallel/test-crypto*

  • var to const
  • assert.equal to assert.StrictEqual, same with notEqual
  • wrap callback with common.mustCall()

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Sep 17, 2016
Copy link
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

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

LGTM pending CI

@mscdex mscdex added the crypto Issues and PRs related to the crypto subsystem. label Sep 17, 2016
Copy link
Member

@jasnell jasnell left a comment

Choose a reason for hiding this comment

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

LGTM. when landing the commits will need to be squashed and the commit messages should be fixed up.

@jasnell
Copy link
Member

jasnell commented Sep 20, 2016

@griffithtp ... thank you for this. Just to point out, the contributing.md file in the node.js project root directly includes the guidelines for commit message formatting. The person who lands this can clean these commits up but if you'd like to give it a go yourself that would be great!

@griffithtp
Copy link
Author

@jasnell apologies for this. Rookie mistake.
If I run git rebase -i HEAD~3 now and push again would this fix it and squash?

@jasnell
Copy link
Member

jasnell commented Sep 21, 2016

Yep. Specifically, the steps are git rebase -i HEAD~3, squash, redo the commit message, then force push to your branch. This PR will automatically pick up the changes.

@griffithtp griffithtp force-pushed the code-and-learn-amsterdam-2016 branch 2 times, most recently from 57d10f6 to 435437f Compare September 21, 2016 10:11
@griffithtp
Copy link
Author

Cool, thanks James @jasnell !
Is there a list of TODOs for newbie contributors we can follow to just crunch the tasks to do.
Otherwise I can carry on with the same principles from the conference last week?

@addaleax
Copy link
Member

Is there a list of TODOs for newbie contributors we can follow to just crunch the tasks to do.

Well, there’s https://github.com/nodejs/node/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+contribution%22 if you’re feeling up for one of those?

Otherwise I can carry on with the same principles from the conference last week?

I don’t want to steal your thunder or anything, but… keep in mind that the kind of tasks we were doing was chosen specifically to have some good contributions to get used to the process. You can definitely look through the test files and watch for anything that you would consider a significant improvement!

Also, things that we just always need are more benchmarks + more tests (code coverage on Linux).

@jasnell
Copy link
Member

jasnell commented Sep 21, 2016

... and doc fixes! we always need doc fixes!

@jasnell
Copy link
Member

jasnell commented Sep 22, 2016

@addaleax
Copy link
Member

make lint output:

/home/sqrt/src/node/test/parallel/test-crypto-hash.js
  50:14  error  Function argument in column 14, expected in 20  align-function-arguments
  87:16  error  Function argument in column 16, expected in 22  align-function-arguments

/home/sqrt/src/node/test/parallel/test-crypto-hmac.js
   71:18  error  Function argument in column 18, expected in 24  align-function-arguments
  237:18  error  Function argument in column 18, expected in 24  align-function-arguments

✖ 4 problems (4 errors, 0 warnings)

@lpinca
Copy link
Member

lpinca commented Oct 1, 2016

@griffithtp can you take a look at the lint issues?

@rvagg rvagg force-pushed the master branch 2 times, most recently from c133999 to 83c7a88 Compare October 18, 2016 17:02
@griffithtp griffithtp force-pushed the code-and-learn-amsterdam-2016 branch from 435437f to 92c7917 Compare October 28, 2016 23:50
@griffithtp
Copy link
Author

Apologies for late reply.
Have updated indent and ran make lint as suggested by @addaleax
then make -j2 test after rebase from latest upstream master

@jasnell jasnell added the stalled Issues and PRs that are stalled. label Mar 1, 2017
@fhinkel
Copy link
Member

fhinkel commented Mar 26, 2017

ping @griffithtp Sorry that this PR didn't get more attention. Do you want to rebase (again, sorry!) and ping me? Then I'll start the CI and we can land this. Thanks, sorry for the extra work.

@Trott Trott added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Aug 13, 2017
* invoke callback with `common.mustCall()` in test-crypto-hash
* order module declarations aphabetically per test-writing-guide
@Trott Trott force-pushed the code-and-learn-amsterdam-2016 branch from 92c7917 to e650c6f Compare August 13, 2017 18:36
@Trott
Copy link
Member

Trott commented Aug 13, 2017

I took the liberty of rebasing, resolving conflicts, and pushing to your branch. Hope that's OK! Given the staleness of the PR, I figured it probably wasn't a problem. I also edited the commit message a bit to reflect commit message guidelines and the narrower scope of the PR now that it's been rebased (because some of the changes in this PR were already done elsewhere).

CI: https://ci.nodejs.org/job/node-test-pull-request/9642/

@Trott
Copy link
Member

Trott commented Aug 13, 2017

Landed in 1df9340.

Thanks for the contribution! 🎉

@Trott Trott closed this Aug 13, 2017
Trott pushed a commit that referenced this pull request Aug 13, 2017
* invoke callback with `common.mustCall()` in test-crypto-hash
* order module declarations aphabetically per test-writing-guide

PR-URL: #8597
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
MylesBorins pushed a commit that referenced this pull request Sep 9, 2017
* invoke callback with `common.mustCall()` in test-crypto-hash
* order module declarations aphabetically per test-writing-guide

PR-URL: #8597
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Sep 10, 2017
MylesBorins pushed a commit that referenced this pull request Sep 20, 2017
* invoke callback with `common.mustCall()` in test-crypto-hash
* order module declarations aphabetically per test-writing-guide

PR-URL: #8597
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Sep 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. crypto Issues and PRs related to the crypto subsystem. stalled Issues and PRs that are stalled. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants