-
Notifications
You must be signed in to change notification settings - Fork 492
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
spinning up branches: phase 1 #4990
Comments
Thanks @pdurbin, we'll estimate this today. |
@donsizemore just fixed up dataverse-ansible so that it will deploy arbitrary branches (thanks!!). You just add branch name to
And then you run |
My first goal in picking this up is to explore scripting the creation of an EC2 instance and dropping in relevant information (e.g. branch name) for ansible to pick up and use for bringing up Dataverse |
Current state: the shell script is now creating an EC2 instance and passing the branch as expected to ansible. There are one or two outstanding issues related to having ansible work in our current usecase. One is that the current ansible process has an upgrade step which causes it to upgrade itself when running it locally, causing an error. The other is that for some reason ansible seems to use the latest release (its default functionality) even after building whatever arbitrary branch that it was pointed to. These are things to look into on Monday. |
want me to comment out the upgrade step permanently? it wasn’t causing problems in Vagrant the release version is also an extra variable you can pass to ansible; you’ll want to coordinate that with the specified branch |
@donsizemore that sounds great (removing the step). For the release version, not all branches have been released, what does ansible expect in that case? It seemed when I had the branch as develop and the release version as 4.9.2 (hardcoded default) none of the new develop changes were deployed |
there was/is no standard for naming custom files per version, so i punted and had it explode the dvinstall.zip for a given version (and i bump the default with each release) if there’s a branch specified ansible does a git clone and a mvn package, then overwrites the warfile before deploying. if you want we can pull necessary modified files from a given branch (usually schema.xml or some bit of json) but i’d be interested in seeing the output of your ansible run; phil and i each verified that it will deploy a given branch properly. |
@donsizemore i may have something wrong in my setup, I'll pick up on it Monday! |
Looks like my issue with the branch was due to the order of operations of where ansible looks for attributes. I've worked around it and things flow correctly! Right now the script & ansible only support branches on the IQSS dataverse repo due to similar variable issues. I decided to save that for phase 2 of this story. |
Also put Ansible before Puppet since dataverse-puppet hasn't been updated since March 2016.
I just walked through the instructions and had a bear of a time trying to get things working. With some help from @matthew-a-dunlap I managed to eventually successfully spin up a branch and then terminate it. Here are the points where I had difficulty, our guide could perhaps address these:
|
@pdurbin Would like to discuss any doc changes that might help with Derek's reported issues. Otherwise seems ready to merge. I did find one issue: lots of errors in logs about not being able to send email to smtp.yourinstitution.edu when doing basic tasks in app. Also, it was pointed out that build number does not indicate which branch is running, wondering whether you can poke build.properties to hack that. |
@kcondon thanks, that's good feedback. For the SMTP thing I opened IQSS/dataverse-ansible#28 but the branch should already be there. It was added in IQSS/dataverse-ansible@d4dc7cb . What's missing from the build number is the commit. Let's chat about it to make sure we're seeing the same thing. We can discuss doc changes too, like you said. |
@pdurbin dataverse-ansible should be munging build.properties when a branch is passed. i'll check on that. |
I sat with @dlmurphy to discuss his two bullets above and made improvements to the docs in 562c9c7 and 746eec5 I also spoke with @kcondon and @djbrooke and it sounds like we're happy with how phase 1 has turned out so I'm moving this to QA. @donsizemore yes, the branch is being added to the bottom right corner but not the commit. I'll ping you in IRC or in the dataverse-ansible repo about this. Thanks for adding the branch in IQSS/dataverse-ansible@d4dc7cb ! |
At tech hours we just talked about the idea of spinning up arbitrary branches on AWS. I was asked to make an issue we can estimate and I'm going to try to keep this small but the whiteboard notes below reflect some future thinking as well.
Definition of done:
The text was updated successfully, but these errors were encountered: