Skip to content

Conversation

@LockingReal
Copy link
Contributor

The value of check depends on whether the value of headers [': method'] is equal to "GET". The first statement uses the Ternary operation to achieve this. My change uses a simple comparison expression.

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Jun 17, 2023
@LockingReal
Copy link
ContributorAuthor

@JakobJingleheimer I saw that you have been performing a codereview operation recently. Can you help me check it ~ 😉

Copy link
Member

@JakobJingleheimerJakobJingleheimer left a comment

Choose a reason for hiding this comment

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

Nice simplification 🙌

@JakobJingleheimer
Copy link
Member

Note that your commit summary does not follow the required pattern. I think it should be http: remove useless ternary in test (or perhaps test: remove…). I'm not clear on the use of test: now that it's also a core module (previously it was used for changes solely affecting nodes own tests).

@LockingRealLockingReal changed the title fix(test): remove useless ternary operatortest: remove useless ternary operatorJun 17, 2023
@LockingReal
Copy link
ContributorAuthor

Note that your commit summary does not follow the required pattern. I think it should be http: remove useless ternary in test (or perhaps test: remove…). I'm not clear on the use of test: now that it's also a core module (previously it was used for changes solely affecting nodes own tests).

I have corrected it, thank you for your guidance ❤️

@LockingRealLockingReal changed the title test: remove useless ternary operatortest:remove useless ternary operatorJun 17, 2023
@LockingRealLockingReal changed the title test:remove useless ternary operatorhttp: remove useless ternary in testJun 17, 2023
@JakobJingleheimer
Copy link
Member

JakobJingleheimer commented Jun 17, 2023

It looks like you changed the PR title but not the commit message. The PR summary can be whatever you want, but the first commit is what CI checks (and prevents landing when invalid).

You'll need to run

git commit --amend -m "http: remove useless ternary in test"git push --force

PS your change to the PR summary is missing a space character between the colon and the next word (test:remove …), which would fail the pattern check (so don't copy+paste your PR title—you don't need to correct the PR title, but you can if you want).

PPS A forced push will invalidate my approval; I'll re-approve after you push ;) I think it will send me a notification; if you do it in the next ~½ hour, I'm around. If I haven't re-approved in like 20 mins, feel free to re-request a review from me.

@LockingRealLockingRealforce-pushed the fix-test-useless-ternaryoperator branch from c80dcf5 to ac5433eCompareJune 17, 2023 15:52
@LockingReal
Copy link
ContributorAuthor

LockingReal commented Jun 17, 2023

It looks like you changed the PR title but not the commit message. The PR summary can be whatever you want, but the first commit is what CI checks (and prevents landing when invalid).

You'll need to run

git commit --amend -m "http: remove useless ternary in test" git push --force 

PS your change to the PR summary is missing a space character between the colon and the next word (test:remove …), which would fail the pattern check (so don't copy+paste your PR title—you don't need to correct the PR title, but you can if you want).

Thank you very much. I have learned a lot, and my foundation still needs to be strengthened 😢

@JakobJingleheimer
Copy link
Member

JakobJingleheimer commented Jun 17, 2023

Everyone starts somewhere 🙌

And thanks for the contribution!

@LockingRealLockingRealforce-pushed the fix-test-useless-ternaryoperator branch from ac5433e to 260da3fCompareJune 17, 2023 15:59
@LockingRealLockingReal requested a review from mscdexJune 17, 2023 19:02
@LockingReal
Copy link
ContributorAuthor

@mscdex Here~~,Can you give me an approval 😉

@aduh95aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Jun 18, 2023
@JakobJingleheimerJakobJingleheimer added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Jun 20, 2023
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 20, 2023
@nodejs-github-bot
Copy link
Collaborator

@targos
Copy link
Member

Rebasing shouldn't be necessary. If you start a new CI run, Jenkins will rebase by default:
CleanShot 2023-06-21 at 10 19 16

@JakobJingleheimerJakobJingleheimer added request-ci Add this label to start a Jenkins CI on a PR. and removed needs-ci PRs that need a full CI run. commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Jun 21, 2023
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 21, 2023
@nodejs-github-bot
Copy link
Collaborator

@LockingRealLockingRealforce-pushed the fix-test-useless-ternaryoperator branch from 260da3f to c2bcd0dCompareJune 21, 2023 18:04
@JakobJingleheimerJakobJingleheimer added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 21, 2023
@github-actionsgithub-actionsbot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 21, 2023
@nodejs-github-bot
Copy link
Collaborator

@LockingReal
Copy link
ContributorAuthor

I performed a rebase operation ~ 😉❤️

@JakobJingleheimer
Copy link
Member

I think you missed Michaël's comment that it's actually unnecessary (my mistake—I'm usually supplying the PRs, not landing them 😅). I restarted the landing process though 🙂

@LockingReal
Copy link
ContributorAuthor

LockingReal commented Jun 22, 2023

Commit Queue failed
🤔🤔,I have read some error logs and it doesn't feel like they were caused by changes 😕

again 😢 ... error msg like【tap2junit: error: argument --input/-i: can't open 'cctest.tap': [Errno 2] No such file or directory: 'cctest.tap'】,Should this be a problem with ci itself ?Can we skip them😢

@nodejs-github-bot
Copy link
Collaborator

@JakobJingleheimer
Copy link
Member

Commit Queue failed
🤔🤔,I have read some error logs and it doesn't feel like they were caused by changes 😕

again 😢 ... error msg like【tap2junit: error: argument --input/-i: can't open 'cctest.tap': [Errno 2] No such file or directory: 'cctest.tap'】,Should this be a problem with ci itself ?Can we skip them😢

Did this same error occur multiple runs?

It's very common to have to run CI half a dozen or more times to get a passing suite (we track this, and it's gotten better, but the ones that remain have proven difficult to squash). I checked another PR also currently going through CI, and I did not see this error there. We can't selectively skip tests, however unrelated the failures are :(

I resumed the failing tests, so 🤞

@JakobJingleheimerJakobJingleheimer added the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 22, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 22, 2023
@nodejs-github-botnodejs-github-bot merged commit 0d1dfe1 into nodejs:mainJun 22, 2023
@nodejs-github-bot
Copy link
Collaborator

Landed in 0d1dfe1

RafaelGSS pushed a commit that referenced this pull request Jul 3, 2023
PR-URL: #48481 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
@RafaelGSSRafaelGSS mentioned this pull request Jul 3, 2023
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
PR-URL: nodejs#48481 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
Ceres6 pushed a commit to Ceres6/node that referenced this pull request Aug 14, 2023
PR-URL: nodejs#48481 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
ruyadorno pushed a commit that referenced this pull request Sep 10, 2023
PR-URL: #48481 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
@ruyadornoruyadorno mentioned this pull request Sep 10, 2023
ruyadorno pushed a commit that referenced this pull request Sep 13, 2023
PR-URL: #48481 Reviewed-By: Jacob Smith <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Matthew Aitken <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Qingyu Deng <[email protected]>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one.testIssues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

12 participants

@LockingReal@JakobJingleheimer@nodejs-github-bot@targos@mscdex@lpinca@anonrig@cjihrig@tniessen@Ayase-252@KhafraDev@aduh95