GithubHelp home page GithubHelp logo

Comments (1)

fgrehm avatar fgrehm commented on May 27, 2024

Not sure if I should create a separate issue for what I am facing but we are looking into using gasket extensively at the company I'm working for and while doing some spikes I noticed some "weird behavior" during crashes which I don't know if it is the intended Gasket's behavior or not.

To give you some background, we are planning to use gasket from a Jenkins job and one of the things we noticed on initial testing is that Gasket does not return an exit code != 0 when a pipeline crashes.

The simplest example I can put together is:

$ cat gasket.json
{ "test": [ "curl waaaat.com", "cat" ] }

$ gasket run test; echo $?
0

I even tried using gasket as a module but I got the same behavior:

$ cat foo.js
var gasket    = require('gasket');
var pipelines = gasket({ example: [ "curl waaaat.com", "cat" ] });

pipelines.run('example').pipe(process.stdout);
console.log('Things did not break :(');

$ node foo.js
Things did not break :(

Why the exit code is important for us? The data generated by our pipeline will end up being pushed into rabbitmq so that other process can kick in and continue some additional processing. If we can't detect automatically that the gasket side of things had an issue from the Jenkins job we will never know if things are working as expected.

Hopefully that's clear enough. Please LMK if you need any additional information! :-)

from gasket.

Related Issues (17)

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.