# How should \`lsst\_ci\` \*run\* integration tests on Jenkins?

**URL:** <https://www.rubin.community/t/how-should-lsst-ci-run-integration-tests-on-jenkins/1579>\
**Category:** Data Management\
**Tags:** ci, validation\
**Created:** [January 24, 2017, 1:57am UTC](https://www.rubin.community/t/how-should-lsst-ci-run-integration-tests-on-jenkins/1579 "2017-01-24T01:57:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwv](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mwv](https://www.rubin.community/u/mwv)\
**Post date:** [January 24, 2017, 1:57am UTC](https://www.rubin.community/t/how-should-lsst-ci-run-integration-tests-on-jenkins/1579/1 "2017-01-24T01:57:17Z")

</div>

@josh I’m planning on making a push on `lsst_ci` next to formalize and standardize the datasets that we would like to ensure pass before changes are merged to master. Right now this is sort of informally done by including `lsst_ci` as a dependency to build in Jenkins (in some configurations). But this only builds the dependencies, including the `obs_*` packages. I would then like to run some processing under the control of `lsst_ci`. To start with this would run the example driver scripts currently stored in the `examples` directory in the `validate_drp` repo. It may grow or need options to run at different scales subject to configuration options passed.

1. How should running these scripts be incorporated into the build system?
2. If there is a failure, how should we provide information to the developer about what failed and what to inspect?

---

<div class="post-metadata">

**Author:** ![mwv](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mwv](https://www.rubin.community/u/mwv)\
**Post date:** [January 24, 2017, 2:07am UTC](https://www.rubin.community/t/how-should-lsst-ci-run-integration-tests-on-jenkins/1579/2 "2017-01-24T02:07:24Z")

</div>

To emphasize/clarify: I’m asking here technical questions about how this should be set up.

The question of _what_ should be processed is a different discussion.

---

<div class="post-metadata">

**Author:** ![price](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/price/32/488_2.png) [@price](https://www.rubin.community/u/price)\
**Post date:** [January 24, 2017, 2:50am UTC](https://www.rubin.community/t/how-should-lsst-ci-run-integration-tests-on-jenkins/1579/3 "2017-01-24T02:50:05Z")

</div>

I think there should be ci\_\* packages for each active user group capturing the kinds of operations done by the HSC survey, the LSST Camera, Sims, QA and DESC groups (and anyone else who wants to contribute). lsst\_ci should be a top-level meta-package that simply has dependencies on each of those. It’s rather unfortunate that, presently, lsst\_ci does **not** depend on ci\_hsc, and that to get decent integration testing one has to explicitly include ci\_hsc in Jenkins.

I suggest _not_ storing good stuff in the `examples` dir. Everywhere else in the stack, “examples” is a code word for “bitrotted” (unfortunate but true). If you’ve got a useful script, put it in the `bin` dir, and put together some basic mechanism to exercise it.

As for how to run them, I decided to use SCons for ci\_hsc because it’s a python way of running a dependency tree in parallel, but there’s no reason you couldn’t use `make` or a plain `bash` script. I think it’s more important to get the stuff in there and being exercised in the first place, and then you can come back once it’s useful and make it better based on the lessons you’ve learned. At least, that was the idea for ci\_hsc.

---

<div class="post-metadata">

**Author:** ![mwv](https://avatars.discourse-cdn.com/v4/letter/m/e79b87/32.png) [@mwv](https://www.rubin.community/u/mwv)\
**Post date:** [January 24, 2017, 2:27pm UTC](https://www.rubin.community/t/how-should-lsst-ci-run-integration-tests-on-jenkins/1579/4 "2017-01-24T14:27:55Z")

</div>

I’ve created the following topic to capture the question of “what should be included in lsst\_ci”:

> [@What should be included in \`lsst\_ci\`?](http://www.rubin.community/t/what-should-be-included-in-lsst-ci/1581):
>
> What should be included in lsst\_ci? I have ideas and thoughts about this, but am creating this topic currently as a holding place to store thoughts that otherwise would get added to
