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

Revert "stream: defer readable and flow when sync" #18612

Closed
wants to merge 2 commits into from

Conversation

addaleax
Copy link
Member

@addaleax addaleax commented Feb 7, 2018

This reverts commit 563fff2 as it is causing failures in CITGM with dicer.

Refs: #18515

The test case that was also fixed by #18516 is being kept.


@mafintosh Could you take a look? If you can fix the failures without needing a revert, that would be amazing. But usually we are pretty fast to revert + open a new PR in these cases…

Example faillure:

~/src/dicer $ node test/test.js
assert.js:74
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: [test-multipart/Many parts]: Part #1 body mismatch
    at Dicer.<anonymous> (/home/xxxx/src/dicer/test/test-multipart.js:206:14)
    at Dicer.emit (events.js:136:15)
    at Dicer.emit (/home/xxxx/src/dicer/lib/Dicer.js:80:35)
    at PartStream.<anonymous> (/home/xxxx/src/dicer/lib/Dicer.js:212:18)
    at PartStream.emit (events.js:136:15)
    at endReadableNT (_stream_readable.js:1020:12)
    at process._tickCallback (internal/process/next_tick.js:91:19)

This reverts commit 563fff2
as it was causing failures in CITGM with `dicer`.

Refs: nodejs#18515
@nodejs-github-bot nodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label Feb 7, 2018
Refs: nodejs#18515
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@addaleax
Copy link
Member Author

addaleax commented Feb 7, 2018

@nodejs/streams

@mcollina
Copy link
Member

mcollina commented Feb 7, 2018

I’ll have a look today as well.

@mcollina
Copy link
Member

mcollina commented Feb 7, 2018

I cannot reproduce the failure locally on Mac OS X. Running CITGM now: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/1261/.

@mcollina
Copy link
Member

mcollina commented Feb 7, 2018

Seems a Linux issue (RHEL output):

 AssertionError [ERR_ASSERTION]: [test-multipart/Many parts]: Part #1 body mismatch
     at Dicer.<anonymous> (/data/iojs/build/workspace/citgm-smoker/nodes/rhel72-s390x/citgm_tmp/c72cac48-49cf-45a9-b12e-bd76883111d3/dicer/test/test-multipart.js:206:14)
     at Dicer.emit (events.js:136:15)
     at Dicer.emit (/data/iojs/build/workspace/citgm-smoker/nodes/rhel72-s390x/citgm_tmp/c72cac48-49cf-45a9-b12e-bd76883111d3/dicer/lib/Dicer.js:80:35)
     at PartStream.<anonymous> (/data/iojs/build/workspace/citgm-smoker/nodes/rhel72-s390x/citgm_tmp/c72cac48-49cf-45a9-b12e-bd76883111d3/dicer/lib/Dicer.js:212:18)
     at PartStream.emit (events.js:136:15)
     at endReadableNT (_stream_readable.js:1020:12)
     at process._tickCallback (internal/process/next_tick.js:91:19)
 npm ERR! Test failed.  See above for more details.

@addaleax
Copy link
Member Author

addaleax commented Feb 7, 2018

That’s weird, dicer really doesn’t do anything platform-dependent…

@mafintosh
Copy link
Member

@addaleax see #18615 where @mcollina fixed the issue

@mafintosh
Copy link
Member

@addaleax the dicer tests are highly timing dependent it seems after looking at them

@addaleax
Copy link
Member Author

addaleax commented Feb 7, 2018

@mafintosh Yeah, I’ll close this given that a fix is available 👍

the dicer tests are highly timing dependent it seems after looking at them

So is a lot of existing userland code, unfortunately…

@addaleax addaleax closed this Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants