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 — lib: fix worker threads can't read stdout by leeight · Pull Request #24652 · nodejs/node

Conversation

@leeight

@leeight leeight commented Nov 26, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Fix: #24636

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

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

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@leeight
lib: fix worker threads can't read stdout
d2beb1c
Fix: nodejs#24636
@nodejs-github-bot nodejs-github-bot added the worker Issues and PRs related to the worker_threads module and Worker API. label Nov 26, 2018
@leeight

leeight commented Nov 26, 2018

Copy link
Copy Markdown
Contributor Author
/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/bin/cmd.js:145
      if (err) throw err
               ^
Error: Invalid api format
    at new Parser (/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/node_modules/gitlint-parser-base/index.js:23:15)
    at new Parser (/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/node_modules/gitlint-parser-node/index.js:15:5)
    at ValidateCommit.lint (/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/lib/index.js:49:22)
    at load (/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/bin/cmd.js:146:9)
    at IncomingMessage.res.on (/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/bin/cmd.js:77:9)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1098:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)
All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax

addaleax commented Nov 26, 2018

Copy link
Copy Markdown
Member

@leeight Thank you! Can you explain why this fixes the issue, and add a regression test?

All reactions

Sorry, something went wrong.

Uh oh!

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

@richardlau

richardlau commented Nov 26, 2018

Copy link
Copy Markdown
Member
/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/bin/cmd.js:145
      if (err) throw err
               ^
Error: Invalid api format
    at new Parser (/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/node_modules/gitlint-parser-base/index.js:23:15)
    at new Parser (/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/node_modules/gitlint-parser-node/index.js:15:5)
    at ValidateCommit.lint (/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/lib/index.js:49:22)
    at load (/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/bin/cmd.js:146:9)
    at IncomingMessage.res.on (/home/travis/.npm/_npx/4517/lib/node_modules/core-validate-commit/bin/cmd.js:77:9)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1098:12)
    at process.internalTickCallback (internal/process/next_tick.js:72:19)

I think this is a different manifestation of hitting the GitHub API rate limit (#24567) within core-validate-commit rather than before calling it. It should be addressed by #24574 which will avoid calling the GitHub API.

All reactions

Sorry, something went wrong.

Uh oh!

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

@leeight

leeight commented Nov 26, 2018

Copy link
Copy Markdown
Contributor Author

@addaleax OK i'll add a testcase

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax

addaleax commented Dec 15, 2018

Copy link
Copy Markdown
Member

I think this has been resolved by #24932? Either way, thank you for the PR! 👍

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax addaleax closed this Dec 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

worker Issues and PRs related to the worker_threads module and Worker API.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Worker Threads can't read stdout

Uh oh!

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

4 participants

@leeight @addaleax @richardlau @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 01402503 — 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.