scikit-build / scikit-ci-addons

Command line tool and a set of scripts useful to help drive CI
http://scikit-ci-addons.readthedocs.org/
Apache License 2.0
5 stars 9 forks source link

[circle:install_cmake.py] add-on not supoorted on CircleCI 2.0 ? #69

Closed blowekamp closed 6 years ago

blowekamp commented 6 years ago

On my SimpleITK CI on circleCI it just began getting the following error:

$ci_addons circle/install_cmake.py 3.10.2 [circle:install_cmake.py] add-on not supoorted on CircleCI 2.0

jcfr commented 6 years ago

Thanks for the report. Looking into it now.

For reference: https://circleci.com/gh/SimpleITK/SimpleITK/2442

jcfr commented 6 years ago

Issue is fixed in https://github.com/SimpleITK/SimpleITK/pull/534

jcfr commented 6 years ago

If (1) there are no wheels available for the version of CMake you want to install or (2) running CMake though a lightweight python wrapper is not desired, the add-on has been fixed to support CircleCI 2.0

See https://github.com/scikit-build/scikit-ci-addons/commit/64afcb128cf7366cc9a501cf6269140ce357e67e

blowekamp commented 6 years ago

The 64afcb1 patch should also throw an exception indicating the operation failed instead of successfully returning. Nice!

jcfr commented 6 years ago

should also throw an exception indicating the operation failed instead of successfully returning.

Is the current implementation what you would expect ?

blowekamp commented 6 years ago

Yes, but I have not tried it out.

Before the error message was written to the CircleCI output, but the step would be marked as successful, presumable since the return value from the process was still 0. I expect that the python exception would result is a failure return status from the command, and therefore would be marked as a failure for the CircleCI, which is my expected behavior.

jcfr commented 6 years ago

Indeed, it now works as expected. As demonstrated here then fixed by https://github.com/scikit-build/scikit-ci-addons/commit/109334ddfb0351686df3558eb0326cc0d60ed2a9