dredd icon indicating copy to clipboard operation
dredd copied to clipboard

Hook Spawner Broken after commit

Open gravitinos opened this issue 10 years ago • 8 comments

Commit a8d544bbb4825911c09bae570c9df60da4471bc6 broke hook spawning

gravitinos avatar Mar 02 '16 16:03 gravitinos

@xvalentino We tried to make sure this won't happen with loads of tests, so it's hard to hear that it broke despite our efforts, but I'm really glad you discovered the problem before new Dredd version got released. Thank you very much for that! You've just shielded a lot of users from the problem :+1:

Could you please elaborate on what's exactly wrong and how can I reproduce it? Again, thank you very much for reporting this!

honzajavorek avatar Mar 02 '16 16:03 honzajavorek

Yeah sure thing!

When I npm run prepublish this commit, and run dredd with a ruby hook, I get the output

info: Configuration dredd.yml found, ignoring other arguments. info: Beginning Dredd testing... info: Found Hookfiles: ./dreddhooks.rb

Then the process stops, but raises no error. It silently fails. It works fine if there is no hook being ran. If this doesn't reproduce the error, let me know and I can get a sample app up reproducing the error.

gravitinos avatar Mar 02 '16 17:03 gravitinos

@xvalentino Thank you!

I tried to reproduce this on top of current master, but unsuccessfully. Could you please try to assemble the minimal app or at least share your dredd.yml?

honzajavorek avatar Mar 02 '16 18:03 honzajavorek

I smell some race condition. Can it be connected with this flaky test: https://travis-ci.org/apiaryio/dredd/jobs/114224085?

netmilk avatar Mar 07 '16 12:03 netmilk

@xvalentino

I tried to reproduce this on top of current master, but unsuccessfully. Could you please try to assemble the minimal app or, at least, share your dredd.yml?

Or just the hooks file and the dredd.yml :) I'm keen to know what's going on there. :)

netmilk avatar Mar 07 '16 12:03 netmilk

When I npm run prepublish this commit, and run dredd with a ruby hook, I get the output...

@xvalentino Did you try that also on top of current master or is it just the commit you mentioned? The commit alone won't work all right and won't pass tests.

I smell some race condition.

@netmilk The flaky test is documented in #384, it's still the same. I can give it some time.

honzajavorek avatar Mar 08 '16 12:03 honzajavorek

@xvalentino There is very similar bug described in #404. Could you please confirm whether it is the same problem you are experiencing?

honzajavorek avatar Mar 09 '16 12:03 honzajavorek

@honzajavorek #404 was what I was experiencing. Thanks!

gravitinos avatar Mar 09 '16 15:03 gravitinos