RedHatQE / polarize

GNU General Public License v3.0
2 stars 2 forks source link

If the downstream job gets a message, but the message has a failed status, the downstream will still show green #60

Open rarebreed opened 7 years ago

rarebreed commented 7 years ago

This is because the message handler function doesn't pass the status on up the call chain. The refactored polarize where the message bus stuff is separated out has a solution for this by returning a MessageResult up the call stack so that the XUnitReporter can check to see:

See https://github.com/rarebreed/polarize-bus and the modular branch of polarize: https://github.com/rarebreed/polarize/tree/modular

rarebreed commented 7 years ago

Actually the solution is here: https://github.com/rarebreed/polarize-reporter/blob/master/src/main/java/com/github/redhatqe/polarize/reporter/XUnitReporter.java#L732

However, I can't use this yet, because the configuration for the CLI is not yet done