-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exit code from run-i2p-transform.sh is not reliable #65
Comments
@njgraham does this mean you figured out how to get sqlplus to give reliable exit codes?
https://github.com/kumc-bmi/grouse/pull/6/files#diff-d6c1b161a9fc0ec54d3cd63ca166981aR50 |
@dckc, unfortunately that doesn't result in reliable exit codes (at least in my experience/memory). Even with those statements sqlplus exits with 0 for some errors. For example, an asktom article on trapping sqlplus SP2 errors says:
For reference: a list of SP2 errors. From our build log, I see several "successful" builds that actually failed with SP2 errors. The asktom article above, linked to an article that indicates with 11g and up you can check to see if any errors occurred in your session so maybe we could do a 1/0 test on the row count from that table to achieve what we want. I one that failed with |
I wonder if using ant to run our sql scripts would be more reliable. |
Perhaps so. Not getting errors from sqlplus is really annoying and ends up wasting a lot of time and now I'm having the same problem with the GROUSE project. I didn't want to introduce lots of other dependencies by writing yet another SQL parser/executor but I admit I don't have experience with much more the Python/cx_Oracle for running SQL - maybe using ant would be straightforward and dependency free enough to be worth it. |
It has often reported success to Jenkins even though it failed; for example, build 102 Dec 13, 2016 4:19 PM resulted in ORA-00933: SQL command not properly ended (fixed in ecca422).
The text was updated successfully, but these errors were encountered: