You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@predictionio.apache.org by "Mars Hall (JIRA)" <ji...@apache.org> on 2017/06/21 17:20:00 UTC

[jira] [Created] (PIO-99) `pio build` exits successfully even when compilation fails

Mars Hall created PIO-99:
----------------------------

             Summary: `pio build` exits successfully even when compilation fails
                 Key: PIO-99
                 URL: https://issues.apache.org/jira/browse/PIO-99
             Project: PredictionIO
          Issue Type: Bug
          Components: Build
    Affects Versions: 0.11.0-incubating
            Reporter: Mars Hall


The build command does not fail as expected. While not a big deal when working locally, it seems like this could be problematic for automated, continuous build/integration workflows.

{code}
$ pio build
…
[ERROR] [Engine$] [error] one error found
[ERROR] [Engine$] [error] (compile:compileIncremental) Compilation failed
[ERROR] [Engine$] [error] Total time: 5 s, completed Jun 21, 2017 9:59:55 AM
[ERROR] [Engine$] Return code of build command: /Users/mars.hall/Projects/predictionio-engine-ur/PredictionIO-dist/sbt/sbt  package assemblyPackageDependency is 1. Aborting.
[INFO] [Engine$] Looking for an engine...
[INFO] [Engine$] Found universal-recommender-assembly-0.5.0-deps.jar
[INFO] [Engine$] Found universal-recommender_2.11-0.5.0.jar
[INFO] [Engine$] Build finished successfully.
[INFO] [Pio$] Your engine is ready for training.
{code}

It certainly appears successful at the end, and exit code was {{0}}.

Looking back for the error is not hard, but this behavior is problematic when composing {pio build} command into a shell script.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)