-
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
Update info in Dataverse Developers Guide about what happens when not specifying a branch when running script that deploys Dataverse on AWS #10589
Conversation
Correct info about what happens when -b is not used in command to create a Dataverse instance on AWS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jggautier @donsizemore I added some thoughts.
@@ -96,7 +96,7 @@ To run it with default values you just need the script, but you may also want a | |||
ec2-create-instance accepts a number of command-line switches, including: | |||
|
|||
* -r: GitHub Repository URL (defaults to https://github.com/IQSS/dataverse.git) | |||
* -b: branch to build (defaults to develop) | |||
* -b: branch to build (defaults to the latest release of Dataverse) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* -b: branch to build (defaults to the latest release of Dataverse) | |
* -b: branch to build and deploy (e.g. "develop") rather than deploying the latest release of Dataverse |
I think, I hope, the above is a little more clear, and it gives an example of which branch can be passed.
What's a bit confusing is that the script itself spits out "develop" three times, even when called with no arguments. It probably should say "deploying latest release of Dataverse". Here's what it says now:
$ ./ec2-create-instance.sh
using default repo: https://github.com/IQSS/dataverse.git
using default branch develop
using ami-0408f4c4a072e3fb9
using t3a.large
using dataverse-sg security group
Creating EC2 instance
Instance ID: aaa
When you are done, please terminate your instance with:
aws ec2 terminate-instances --instance-ids aaa
giving instance 90 seconds to wake up...
End creating EC2 instance
New instance created with ID "aaa". To ssh into it:
ssh -i [email protected]
Please wait at least 15 minutes while the branch "develop" from https://github.com/IQSS/dataverse.git is being deployed.
Branch develop from https://github.com/IQSS/dataverse.git has been deployed to http://foo.bar
To ssh into the new instance:
ssh -i [email protected]
When you are done, please terminate your instance with:
aws ec2 terminate-instances --instance-ids aaa
This script is in the ansible repo so we'd need to fix it there.
Ah okay, this is sounding like more than a Dataverse Guide documentation change then, right? What the script spits out might need to change, like you wrote, and the documentation at https://github.com/GlobalDataverseCommunityConsortium/dataverse-ansible/tree/develop/ec2 also says that the default branch is develop and that may need to change. Unless you or @donsizemore or @landreev think something else should be done, by the end of tomorrow I'll delete this PR and re-write the issue at #10572 so it's also about correcting what the script itself spits out and correcting what's mentioned in the documentation in the dataverse-ansible repo. |
@jggautier I mean, we could use this PR to simply delete some of the confusing stuff. What if we do something like this?
|
Ah I see. So you're proposing removing the entire list of options and telling the user to use -h to see the list, right? When someone uses -h to see all of the options, do they see everything that's in the list that's being removed? Will what's returned when using -h need to be edited, too? |
Yes, everything and more. Note especially the "Usage" line, which I'll repeat for easy reading:
|
Thanks. So I think I should change the issue so that we're recommending:
And since this isn't a documentation-only issue it doesn't get fast tracked the way other "small" documentation-only issues would. For the second and third recommendations, would that involve creating PRs in the dataverse-ansible repo? |
Well, I think we can fast track # 1. Yes, 2 and 3 would happen in the ansible repo. |
Removing list of options and encouraging users to user -h to see the options.
I updated the .rst file in this PR the way you described in #10589 (comment) and opened an issue in the ansible repo about updating the documentation there and updating what's returned when someone runs |
There's some discussion today in the GitHub issue at gdcc/dataverse-ansible#355. It seems like there's some doubt that needs to be resolved about whether or not the develop branch is used when |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Approved.
Oh, I just saw the doubts. I'm trying it. |
I tried running the create script with no arguments but it failed with this:
Here's the full output: install-fail-2d7f797.txt So I still don't know for sure if you get "develop" or the latest release. @jggautier we could remove this line from the PR, if you want:
|
I opened an issue: |
I'm not sure. You're suggesting this because we could make this documentation change sooner than anyone can fix whatever is preventing us from creating an instance to check whether or not the develop branch is used when we run ec2-create-instance.sh with no -b argument, right? I suppose that makes sense as long as we also remove this info from the docs in the dataverse-ansible repo and from the output when we run Then after we're able to run ec2-create-instance.sh without arguments and see if the develop branch is used, I could create new issues for updating the docs and |
As discussed in standup, I'm going to go ahead and merge this. Here's a preview from https://dataverse-guide--10589.org.readthedocs.build/en/10589/developers/deployment.html#download-and-run-the-create-instance-script We've established that if you run the create script with no arguments, you get the latest release. A follow up would be to update the script itself, which we are tracking here: |
Correct info about what happens when -b is not used in command to create a Dataverse instance on AWS
What this PR does / why we need it:
Addresses the problem described in #10572 by editing the section of the Dataverse Developer guide about spinning up Dataverse instances on AWS.
Which issue(s) this PR closes:
Closes #10572
Suggestions on how to test this:
Review the revised section of the Dataverse Developer guide about spinning up Dataverse instances on AWS. It should let the user know that when she runs the script to spin up a Dataverse instance without the -b option, the latest version of Dataverse is used.
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No, this PR doesn't introduce a user interface change.
Is there a release notes update needed for this change?:
I don't think a release note is needed for this change.