Git Product home page Git Product logo

Comments (4)

guigrpa avatar guigrpa commented on May 10, 2024

Hmmmm, I'm afraid oao is not generating the Killed message. It is indeed the stderr output: in the following line, notice the yarn bit (source of the message: either stdout or stderr of the command being launched) and the ERROR bit (hence, stderr):

2017-10-10T14:10:03.867Z                 yarn ERROR | Killed

Wrt. other comments:

  • The missing yarn header: maybe yarn gets killed (by whom?) before printing the header out?
  • I agree we should print out the exit code.
  • I don't understand your 4th bullet. In principle, it does run yarn link neutrino from the packages/neutrino-middleware-env directory (in the first bootstrap phase, it had already run yarn link from the packages/neutrino directory). Maybe I'm missing something?
  • I agree with the unnecessary duplication, but it would have a lower priority right now…

from oao.

edmorley avatar edmorley commented on May 10, 2024

Ah perhaps it's an OOM?
https://stackoverflow.com/questions/10876136/what-can-cause-node-js-to-print-killed-and-exit

I believe we could confirm that by seeing if the exit code was 137 (http://www.tldp.org/LDP/abs/html/exitcodes.html).

The missing yarn header: maybe yarn gets killed (by whom?) before printing the header out?

If it's an OOM I would have thought it would occur after the point where yarn has output the version header. As such I would guess either:

  • the output is being buffered (which is not necessarily a bad thing, but perhaps the buffering can be made to flush more often?)
  • execa (or oao) is ignoring the stdout when there's something on stderr to display (I would find this unlikely)

I don't understand your 4th bullet. In principle, it does run yarn link neutrino from the packages/neutrino-middleware-env directory (in the first bootstrap phase, it had already run yarn link from the packages/neutrino directory). Maybe I'm missing something?

Ah I was thinking of the first stage, I don't fully understand what oao does after that.

I agree with the unnecessary duplication, but it would have a lower priority right now…

Agreed :-)

from oao.

guigrpa avatar guigrpa commented on May 10, 2024

Patched in v0.10.4 to log error code upon command failure.

I couldn't find traces of buffered stderr output. In fact, in my examples I got stdout and stderr interspersed, as could be expected in some cases. Example:

2017-10-10T20:45:06.934Z                 main INFO  ┌── Run cmd yarn add dfjdfdifdjfdijfdijfdoifjdiojfoi at packages/neutrino [CREATED]
2017-10-10T20:45:07.243Z                 yarn INFO  | yarn add v1.1.0
2017-10-10T20:45:07.384Z                 yarn INFO  | [1/4] Resolving packages...
2017-10-10T20:45:09.441Z                 yarn ERROR | error Couldn't find package "dfjdfdifdjfdijfdijfdoifjdiojfoi" on the "npm" registry.
2017-10-10T20:45:09.441Z                 yarn INFO  | info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
2017-10-10T20:45:09.451Z                 yarn INFO  |
2017-10-10T20:45:09.454Z                 main ERROR Command 'yarn add dfjdfdifdjfdijfdijfdoifjdiojfoi' failed [1] at packages/neutrino
2017-10-10T20:45:09.456Z                 main INFO  └── Run cmd yarn add dfjdfdifdjfdijfdijfdoifjdiojfoi at packages/neutrino [CLOSED]
2017-10-10T20:45:09.458Z           storyboard INFO  └── ROOT STORY: Node.js 8.6.0 on Darwin 64-bit, SB 3.1.3 [CLOSED]

from oao.

edmorley avatar edmorley commented on May 10, 2024

Many thanks :-)

from oao.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.