-
Notifications
You must be signed in to change notification settings - Fork 30k
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
CommonFixturesFix - Fixed references to common.fixturesDir in test-tl… #16041
Conversation
…s-client-getephemeralkeyinfo.js
@@ -1,20 +1,21 @@ | |||
'use strict'; | |||
const common = require('../common'); | |||
const commonFixturesDir = require('../common.fixtures').fixturesDir; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional - it would be nice to use destructuring here as in
const { fixturesDir } = require('../common.fixtures').fixturesDir;
The commit message does not contain the subsystem and it is not listed in the description either but that can be fixed while landing. The commit message may also only be 50 characters long. |
const key = fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`); | ||
const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`); | ||
const key = fs.readFileSync(`${commonFixturesDir}/keys/agent2-key.pem`); | ||
const cert = fs.readFileSync(`${commonFixturesDir}/keys/agent2-cert.pem`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should actually use the fixtures.readKey
function. I fix this while landing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@timothywisdom it would actually be nice if you could fix this test.
if (!common.hasCrypto) | ||
common.skip('missing crypto'); | ||
|
||
const assert = require('assert'); | ||
const tls = require('tls'); | ||
const fs = require('fs'); | ||
|
||
const key = fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`); | ||
const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`); | ||
const fixturesKey = fixtures.readKey('/agent2-key.pem'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the path does not need the leading /
Can you rebase the 5 commits into a single one? |
I've been told by many a git guru to avoid git rebase as it rewrites history, which is generally a bad idea. Also I believe this pull request, if merged, will merge all the commits, not just the first. So what's the argument for rebasing? |
93adec2
to
69622ca
Compare
@timothywisdom In this repo we don't use the Github merge button, nor do we use
As the collaborator guide describes, this PR will be rebased against master and squashed into one commit by the person landing it anyway. The downside of rewriting history usually applies when you are rewriting history of a branch that other people collaborate on, but PR happens in branches of forks, not the master branch. |
Also, this PR needs a rebase since #15980 has landed |
const key = fs.readFileSync(`${common.fixturesDir}/keys/agent2-key.pem`); | ||
const cert = fs.readFileSync(`${common.fixturesDir}/keys/agent2-cert.pem`); | ||
const fixturesKey = fixtures.readKey('agent2-key.pem'); | ||
const fixturesCert = fixtures.readKey('agent2-cert.pem'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there shouldn't be reason to change the variable names here.
key: key, | ||
cert: cert, | ||
key: fixturesKey, | ||
cert: fixturesCert, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the key
and cert
variable names are not changed above, this can become just ...
const options = { key, cert, ciphers: cipher };
@timothywisdom this contains conflicts right now. Would you be so kind and rebase? |
I had to change
to
due to some error I was getting when running the tests (I don't remember what it was now). I've been swept away into another project and I don't have time to work on this right now. Setting up this repo and running the tests on this project (on my windows machine) takes too many hours. If someone else would like to take over this PR and make whatever changes you'd like, please be my guest. |
It looks like the fixture stuff was fixed in #15980. The Seems like this can be closed. Sorry to hear about your Windows compilation problems. FWIW, we're trying to figure out a better solution for Windows over in #16278. If you'd like a different good first issue, feel free to contact [email protected]. Thanks for the PR! Sorry it didn't end up landing. |
…s-client-getephemeralkeyinfo.js
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)