# Dev-ops

**URL:** <https://discourse.mc-stan.org/t/dev-ops/223>\
**Category:** Developers\
**Created:** [January 25, 2017, 7:50pm UTC](https://discourse.mc-stan.org/t/dev-ops/223 "2017-01-25T19:50:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 25, 2017, 7:50pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/1 "2017-01-25T19:50:23Z")

</div>

I have a bunch of scripts here:

> **[syclik/stan-scripts](https://github.com/syclik/stan-scripts)**
>
> Contribute to syclik/stan-scripts development by creating an account on GitHub.

Not all are useful. Let’s move some over to a shared dev-ops repo.

Unfortunately, I won’t be able to stay for the meeting tomorrow, but if there are questions, please shoot them over.

---

<div class="post-metadata">

**Author:** ![Bob\_Carpenter](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bob_carpenter/32/9230_2.png) [@Bob\_Carpenter](https://discourse.mc-stan.org/u/Bob_Carpenter)\
**Post date:** [January 25, 2017, 9:29pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/2 "2017-01-25T21:29:18Z")

</div>

Could you (Daniel) and Sean coordinate on the handoff?  
I think Sean’s on this list, but I’m bcc-ing him just  
in case.

- Bob

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [January 25, 2017, 11:31pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/3 "2017-01-25T23:31:09Z")

</div>

Yeah, things I can think of that Daniel and I should probably figure out:

1. Resource inventory (jenkinses, travis, etc)
2. Notifications (so I get emailed when things break)
3. Credentials (so I can log in to fix them)

Not sure how you wanna do it.

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 26, 2017, 12:18am UTC](https://discourse.mc-stan.org/t/dev-ops/223/4 "2017-01-26T00:18:11Z")

</div>

Yeah; probably not the greatest to pass this around on a public forum.

We use GitHub permissioning for Jenkins, Travis, and a few other services.

I can give you permissions on every physical box we own and tell you where  
they live in real life.

Other stuff: not sure. Let me take inventory first?

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [January 31, 2017, 4:34pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/5 "2017-01-31T16:34:50Z")

</div>

Hey,

Not sure if this warrants its own topic but I made a pull request that failed the travis build here: [https://travis-ci.org/stan-dev/stan/jobs/196689564](https://travis-ci.org/stan-dev/stan/jobs/196689564) but I don’t understand why it failed; all of the tests seem to have passed. Does Travis check something besides the exit code to determine if tests have passed?

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [January 31, 2017, 7:08pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/6 "2017-01-31T19:08:06Z")

</div>

Another question - Can we turn off the build for OSX with gcc in Travis (because OSX ships with clang)? Just learned how to do that ;)

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [January 31, 2017, 7:11pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/7 "2017-01-31T19:11:37Z")

</div>

Travis failing builds: it should just check the exit code, but I think they  
try to do something clever. I’ve followed all their online doc, but there  
might be more things we can do to make it more reliable. I just don’t know.

Re: gcc in OSX. I think you can kill it now. (create a pull request – it’s  
in the .travis.yml) When we first started with Travis, they compilers were  
different. Now they’re the same back end. I think we want to continue  
testing multiple compiler versions for linux.

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [February 1, 2017, 5:01pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/8 "2017-02-01T17:01:07Z")

</div>

Have a PR open to kill it in stan, will make one in cmdstan. stan-math actually doesn’t have gcc listed as a compiler even for linux, is that okay? I think you removed it in [May 2015](https://github.com/stan-dev/math/commit/cc9587d59842f4ab29345b2255ad3f597144e439) but it was with a bunch of other nearby changes, not sure if that was intentional. My instinct would be to add it back for just linux so it’s parallel with the other repos but let me know what you think.

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [February 1, 2017, 6:28pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/9 "2017-02-01T18:28:15Z")

</div>

yeah – add it back to math. No idea why it was taken off; it might be a time thing, but we’ll know if the pull request doesn’t actually get past Travis.

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [February 2, 2017, 6:33pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/10 "2017-02-02T18:33:29Z")

</div>

Interesting - [the Linux GCC build doesn’t seem to work for stan-math.](https://travis-ci.org/stan-dev/math/jobs/197398048). Here’s the error message on one of the two failures:  
`test/unit/math/fwd/scal/fun/Phi_test.cpp: In function ‘void test_tails() [with T = stan::math::fvar<double>]’: test/unit/math/fwd/scal/fun/Phi_test.cpp:171:29: instantiated from here test/unit/math/fwd/scal/fun/Phi_test.cpp:70:3: error: ambiguous class template instantiation for ‘struct stan::math::ad_promotable<stan::math::fvar<double>, stan::math::fvar<double> >’ ./stan/math/prim/scal/meta/ad_promotable.hpp:30:12: error: candidates are: struct stan::math::ad_promotable<T, T> ./stan/math/fwd/scal/meta/ad_promotable.hpp:13:12: error: struct stan::math::ad_promotable<V, stan::math::fvar<T> >`  
I’ll start googling; anyone else have ideas?

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [February 2, 2017, 7:55pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/11 "2017-02-02T19:55:45Z")

</div>

Know what version of gcc that is? We definitely don’t compile with 4.2.  
Probably not with 4.4 any more.

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [February 2, 2017, 7:58pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/12 "2017-02-02T19:58:54Z")

</div>

it claims 4.6.3.

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [February 2, 2017, 8:00pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/13 "2017-02-02T20:00:36Z")

</div>

Eh… maybe that’s why I turned it off? I wish I could ask my old self what  
I was thinking.

Any way we can run that version locally?

P.S. If there’s anything broken or if you can do anything better, please do  
it. I take no offense to being told that I did things incorrectly.

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [February 3, 2017, 10:36pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/14 "2017-02-03T22:36:43Z")

</div>

No worries. I’ll look into it a bit more.

In the meantime, I think I might need to make a change to one of the stan-scripts to fix [this build](http://d1m1s1b1.stat.columbia.edu:8080/job/Stan%20-%20Upstream%20-%20Update%20CmdStan/237/console). Do you think I should copy the stan-scripts folder as a new repo under stan-dev? I think we talked about this being the right move but just wanted to double check.

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [February 5, 2017, 10:36pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/15 "2017-02-05T22:36:32Z")

</div>

Please do. Let’s shift anything useful from my repo over to stan-dev. We don’t need the history to persist.

We’ll need to update Jenkins to use the new repo, but I can help with that.

Hopefully you can see the Jenkins backup repo in the stan-dev org. I haven’t had a need to restore from the backup, but it’s there.

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [February 7, 2017, 4:40am UTC](https://discourse.mc-stan.org/t/dev-ops/223/16 "2017-02-07T04:40:19Z")

</div>

Yep, I see the backup repo. How do you update it when jobs change? I’m changing them now to reflect the stan-dev/ci-scripts repo.

Separately, question about the Upstream Update jobs desired behavior - should they fail if there’s an outstanding pull request to do the update? Or should they succeed and print warnings?

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [February 7, 2017, 1:19pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/17 "2017-02-07T13:19:47Z")

</div>

Not sure what you mean: “when jobs change.”

For the upstream jobs, I wanted it to just keep updating the pull request until it’s merged. Most if the time, it won’t affect the upstream build. There shouldn’t be any git conflicts. Unless we do something crazy, the upstream jobs aren’t affected by changes downstream.

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [February 7, 2017, 1:34pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/18 "2017-02-07T13:34:34Z")

</div>

Sorry, was asking how you would update the Jenkins backup repo when changes are made to the Jenkins config - I don’t see any git repos in /Users/Shared/Jenkins that might be used for the purpose, was wondering if you have a script for that or what the procedure has been.

---

<div class="post-metadata">

**Author:** ![syclik](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/syclik/32/6_2.png) [@syclik](https://discourse.mc-stan.org/u/syclik)\
**Post date:** [February 7, 2017, 1:50pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/19 "2017-02-07T13:50:07Z")

</div>

Ah. Now the question makes sense.

I hacked it together. It’s in the config of the Jenkins job. There’s a `curl` in there as a step that grabs the script. I couldn’t find a better way to do it at the time using Jenkins plugins.

Any thoughts on how to make that better?

---

<div class="post-metadata">

**Author:** ![seantalts](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/seantalts/32/32_2.png) [@seantalts](https://discourse.mc-stan.org/u/seantalts)\
**Post date:** [February 7, 2017, 5:14pm UTC](https://discourse.mc-stan.org/t/dev-ops/223/20 "2017-02-07T17:14:17Z")

</div>

Ah, I’ve seen that but wasn’t talking about that either :P Sorry for confusion. I haven’t thought of any better way just yet.

I was saying that I can see the [jenkins-config](https://github.com/stan-dev/jenkins-config) repo that seems to back up the jenkins config, and I was wondering how you update that repo when the config changes?

[Next page](https://discourse.mc-stan.org/t/dev-ops/223.md?page=2)
