GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: refactor test-http-response-splitting by notarseniy · Pull Request #11429 · nodejs/node

Conversation

@notarseniy

@notarseniy notarseniy commented Feb 16, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor
  • move repeated code to function
  • remove unneeded common.mustCall() usage with function arguments that
    are not callbacks
  • add error message checking

like #11274.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

test http

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to Node.js core tests and test infrastructure. label Feb 16, 2017
jasnell
jasnell requested changes Feb 16, 2017
View reviewed changes

@jasnell jasnell left a comment

Copy link
Copy Markdown
Member

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.

Almost there

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test/parallel/test-http-response-splitting.js Outdated

@jasnell jasnell Feb 16, 2017

Copy link
Copy Markdown
Member

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 be updated to test the actual error message

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@notarseniy notarseniy Feb 16, 2017

Copy link
Copy Markdown
Contributor Author

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.

thank you! implemented.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@notarseniy
notarseniy force-pushed the http-response-splitting branch 2 times, most recently from e84501e to 42dbf60 Compare February 16, 2017 21:05
@notarseniy

notarseniy commented Feb 16, 2017

Copy link
Copy Markdown
Contributor Author

Thanks for review :-) Recommited with error message checking and with new commit message.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cjihrig
cjihrig requested changes Feb 16, 2017
View reviewed changes
Comment thread test/parallel/test-http-response-splitting.js Outdated

@cjihrig cjihrig Feb 16, 2017

Copy link
Copy Markdown
Contributor

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.

Can you add ^ and $ to the regular expression. You can also use a regex literal instead of the RegExp() constructor.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@notarseniy notarseniy Feb 16, 2017

Copy link
Copy Markdown
Contributor Author

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.

Yeah, seems better. Thank you for pointing this out! Fixed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@notarseniy
notarseniy force-pushed the http-response-splitting branch 4 times, most recently from 308738e to a84c506 Compare February 16, 2017 21:25
@notarseniy

notarseniy commented Feb 16, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Re-forcepushed again with fixes. Feel free to commenting anything more :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cjihrig
cjihrig approved these changes Feb 16, 2017
View reviewed changes

@cjihrig cjihrig left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM. Only comment is that it might look a little cleaner to drop errRegExp, and just put the regex inline.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@notarseniy
test: refactor test-http-response-splitting
fc16912
* move repeated code to function
* remove unneeded `common.mustCall()` usage with function arguments that
  are not callbacks
* add error message checking
@notarseniy
notarseniy force-pushed the http-response-splitting branch from a84c506 to fc16912 Compare February 16, 2017 21:43
@mscdex mscdex added the http Issues and PRs related to the http subsystem. label Feb 16, 2017
jasnell
jasnell approved these changes Feb 16, 2017
View reviewed changes
lpinca
lpinca approved these changes Feb 17, 2017
View reviewed changes
targos
targos approved these changes Feb 18, 2017
View reviewed changes
@targos

targos commented Feb 18, 2017

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@notarseniy

notarseniy commented Feb 18, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Why test on armv8-ubuntu1404 is break down? This test is passed, but there's hudson-related issue (unrelated to this PR):

ok 1397 sequential/test-vm-timeout-rethrow
  ---
  duration_ms: 0.510
  ...
make[1]: Leaving directory `/home/iojs/build/workspace/node-test-commit-arm/nodes/armv8-ubuntu1404'
[armv8-ubuntu1404] $ /bin/sh -xe /tmp/hudson5359784332414623123.sh
+ set +x
Sat Feb 18 07:00:53 PST 2017
+ pgrep node
+ true
FATAL: command execution failed
hudson.remoting.ChannelClosedException: channel is already closed
	at hudson.remoting.Channel.send(Channel.java:604)
	at hudson.remoting.Request.call(Request.java:130)
	at hudson.remoting.Channel.call(Channel.java:821)
	at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:256)
	at com.sun.proxy.$Proxy106.isAlive(Unknown Source)
	at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:1043)
	at hudson.Launcher$RemoteLauncher$ProcImpl.join(Launcher.java:1035)
	at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:154)
	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:108)
	at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:65)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
	at hudson.model.Build$BuildExecution.build(Build.java:205)
	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
	at hudson.model.Run.execute(Run.java:1728)
	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:404)
Caused by: java.io.IOException: Connection aborted: org.jenkinsci.remoting.nio.NioChannelHub$MonoNioTransport@ffbeda2[name=Channel to /121.212.45.83]
	at org.jenkinsci.remoting.nio.NioChannelHub$NioTransport.abort(NioChannelHub.java:210)
	at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:635)
	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Connection timed out
	at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
	at sun.nio.ch.IOUtil.read(IOUtil.java:197)
	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
	at org.jenkinsci.remoting.nio.FifoBuffer$Pointer.receive(FifoBuffer.java:142)
	at org.jenkinsci.remoting.nio.FifoBuffer.receive(FifoBuffer.java:359)
	at org.jenkinsci.remoting.nio.NioChannelHub.run(NioChannelHub.java:564)
	... 6 more
Build step 'Execute shell' marked build as failure
[Current build status] check if current [FAILURE] is worse or equals then [UNSTABLE] and better or equals then [SUCCESS]
Run condition [Current build status] preventing perform for step [[Execute a set of scripts]]
[Current build status] check if current [FAILURE] is worse or equals then [ABORTED] and better or equals then [FAILURE]
Run condition [Current build status] enabling perform for step [[Execute a set of scripts]]
ERROR: Step ?Publish TAP Results? failed: no workspace for node-test-commit-arm/nodes=armv8-ubuntu1404 #7848
Checking ^not ok
ERROR: Build step failed with exception
java.lang.NullPointerException
Build step 'Jenkins Text Finder' marked build as failure
Notifying upstream projects of job completion
Finished: FAILURE
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gibfahn

gibfahn commented Feb 19, 2017

Copy link
Copy Markdown
Member

Why test on armv8-ubuntu1404 is break down? This test is passed, but there's hudson-related issue (unrelated to this PR):

Probably related to nodejs/build#611

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ChALkeR
ChALkeR approved these changes Feb 19, 2017
View reviewed changes
jasnell pushed a commit that referenced this pull request Feb 19, 2017
@notarseniy @jasnell
test: refactor test-http-response-splitting
6647688
* move repeated code to function
* remove unneeded `common.mustCall()` usage with function arguments that
  are not callbacks
* add error message checking

PR-URL: #11429
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
@jasnell

jasnell commented Feb 19, 2017

Copy link
Copy Markdown
Member

Landed in 6647688

notarseniy reacted with heart emoji
All reactions
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell closed this Feb 19, 2017
addaleax pushed a commit that referenced this pull request Feb 22, 2017
@notarseniy @addaleax
test: refactor test-http-response-splitting
7b80876
* move repeated code to function
* remove unneeded `common.mustCall()` usage with function arguments that
  are not callbacks
* add error message checking

PR-URL: #11429
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
@italoacasas italoacasas mentioned this pull request Feb 25, 2017
7.7.0 Proposal #11553
Merged
jasnell pushed a commit that referenced this pull request Mar 7, 2017
@notarseniy @jasnell
test: refactor test-http-response-splitting
f921637
* move repeated code to function
* remove unneeded `common.mustCall()` usage with function arguments that
  are not callbacks
* add error message checking

PR-URL: #11429
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
jasnell pushed a commit that referenced this pull request Mar 7, 2017
@notarseniy @jasnell
test: refactor test-http-response-splitting
a7d5edb
* move repeated code to function
* remove unneeded `common.mustCall()` usage with function arguments that
  are not callbacks
* add error message checking

PR-URL: #11429
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
MylesBorins pushed a commit that referenced this pull request Mar 9, 2017
@notarseniy @MylesBorins
test: refactor test-http-response-splitting
4bcf1a0
* move repeated code to function
* remove unneeded `common.mustCall()` usage with function arguments that
  are not callbacks
* add error message checking

PR-URL: #11429
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Mar 9, 2017
v6.10.1 proposal #11759
Merged
MylesBorins pushed a commit that referenced this pull request Mar 9, 2017
@notarseniy @MylesBorins
test: refactor test-http-response-splitting
28471c2
* move repeated code to function
* remove unneeded `common.mustCall()` usage with function arguments that
  are not callbacks
* add error message checking

PR-URL: #11429
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
@MylesBorins MylesBorins mentioned this pull request Mar 9, 2017
v4.8.1 proposal #11760
Merged
This was referenced Jul 6, 2023
[Snyk] Fix for 2 vulnerabilities leonardoadame/node#23
Open
[Snyk] Fix for 2 vulnerabilities leonardoadame/node#57
Open
[Snyk] Fix for 2 vulnerabilities leonardoadame/node#77
Open
[Snyk] Security upgrade jest from 25.5.4 to 27.0.0 leonardoadame/node#147
Open
@aliscco aliscco mentioned this pull request Jul 10, 2023
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#628
Open
@leonardoadame leonardoadame mentioned this pull request Nov 28, 2023
[Snyk] Security upgrade jest from 26.6.3 to 27.0.0 leonardoadame/node#199
Open
This was referenced Nov 29, 2023
[Snyk] Security upgrade jest from 26.4.2 to 27.0.0 aliscco/alisco-node#785
Open
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#799
Open
@leonardoadame leonardoadame mentioned this pull request Nov 30, 2023
[Snyk] Security upgrade jest from 25.5.4 to 27.0.0 leonardoadame/node#281
Open
@aliscco aliscco mentioned this pull request Dec 2, 2023
[Snyk] Fix for 6 vulnerabilities aliscco/alisco-node#1050
Open
@leonardoadame leonardoadame mentioned this pull request Dec 5, 2023
[Snyk] Security upgrade jest from 25.5.4 to 27.0.0 leonardoadame/node#539
Open
@aliscco aliscco mentioned this pull request Dec 8, 2023
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#1158
Open
This was referenced Dec 10, 2023
[Snyk] Security upgrade jest from 25.5.4 to 27.0.0 leonardoadame/node#577
Open
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 leonardoadame/node#578
Open
This was referenced Dec 10, 2023
[Snyk] Security upgrade jest from 26.4.2 to 27.0.0 aliscco/alisco-node#1165
Open
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#1167
Open
@leonardoadame leonardoadame mentioned this pull request Dec 19, 2023
[Snyk] Security upgrade jest from 26.6.3 to 27.0.0 leonardoadame/node#581
Open
@aliscco aliscco mentioned this pull request Jan 1, 2024
[Snyk] Security upgrade jest from 26.4.2 to 27.0.0 aliscco/alisco-node#1182
Open
@aliscco aliscco mentioned this pull request Jan 31, 2024
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#1205
Open
@leonardoadame leonardoadame mentioned this pull request Feb 12, 2024
[Snyk] Fix for 3 vulnerabilities leonardoadame/node#684
Open
@leonardoadame leonardoadame mentioned this pull request May 13, 2024
[Snyk] Fix for 2 vulnerabilities leonardoadame/node#831
Open
@aliscco aliscco mentioned this pull request May 15, 2024
[Snyk] Fix for 2 vulnerabilities aliscco/alisco-node#1499
Open
@leonardoadame leonardoadame mentioned this pull request May 16, 2024
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 leonardoadame/node#963
Open
This was referenced May 16, 2024
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#1578
Open
[Snyk] Security upgrade jest from 26.4.2 to 27.0.0 aliscco/alisco-node#1581
Open
[Snyk] Security upgrade jest from 24.9.0 to 27.0.0 aliscco/alisco-node#1601
Open
@leonardoadame leonardoadame mentioned this pull request May 19, 2024
[Snyk] Security upgrade jest from 26.6.3 to 27.0.0 leonardoadame/node#998
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ChALkeR ChALkeR ChALkeR approved these changes
@jasnell jasnell jasnell approved these changes
@lpinca lpinca lpinca approved these changes
@cjihrig cjihrig cjihrig approved these changes
+1 more reviewer
@targos targos targos approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

http Issues and PRs related to the http subsystem. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@notarseniy @targos @gibfahn @jasnell @ChALkeR @lpinca @cjihrig @mscdex @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.