Skip to content
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

Custom ec2 ami, instance type and region #282

Merged
merged 7 commits into from
Mar 10, 2020
Merged

Conversation

evansiroky
Copy link
Contributor

@evansiroky evansiroky commented Feb 27, 2020

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JavaDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing

Description

There currently isn't an issue for this, but here is what this PR does:

  • allows customizing an ec2 deployment in the following ways:
    • setting a custom AMI ID for graph builds only
    • setting a custom instance type for graph builds only
    • setting a custom region for the deployment
  • modifies the DeployJob to be able to do the following
  • modifies other controllers to support custom regions
  • Adds better debug information to deploy log statements
  • skips request/response logging for job statuses

@evansiroky evansiroky changed the title Custom ec2 ami and region Custom ec2 ami, instance type and region Feb 27, 2020
@codecov-io
Copy link

codecov-io commented Feb 27, 2020

Codecov Report

Merging #282 into dev will increase coverage by 0.06%.
The diff coverage is 1.41%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #282      +/-   ##
==========================================
+ Coverage      20%   20.06%   +0.06%     
- Complexity    407      423      +16     
==========================================
  Files         151      151              
  Lines        8219     8398     +179     
  Branches     1111     1163      +52     
==========================================
+ Hits         1644     1685      +41     
- Misses       6430     6565     +135     
- Partials      145      148       +3
Flag Coverage Δ Complexity Δ
#unit_tests 20.06% <1.41%> (+0.06%) 423 <0> (+16) ⬆️
Impacted Files Coverage Δ Complexity Δ
...m/conveyal/datatools/manager/models/OtpServer.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...ools/manager/controllers/api/ServerController.java 4.95% <0%> (-0.45%) 1 <0> (ø)
...com/conveyal/datatools/manager/models/EC2Info.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...com/conveyal/datatools/manager/jobs/DeployJob.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...datatools/manager/jobs/MonitorServerStatusJob.java 0% <0%> (ø) 0 <0> (ø) ⬇️
.../manager/controllers/api/DeploymentController.java 8.07% <0%> (-0.23%) 2 <0> (ø)
.../com/conveyal/datatools/common/utils/AWSUtils.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...om/conveyal/datatools/common/utils/SparkUtils.java 42.97% <0%> (-0.36%) 17 <0> (ø)
.../conveyal/datatools/manager/models/Deployment.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...nveyal/datatools/common/status/MonitorableJob.java 74.57% <66.66%> (-0.21%) 11 <0> (ø)
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 423ed4d...3d77359. Read the comment docs.

Copy link
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor cosmetic changes.

@evansiroky evansiroky removed their assignment Mar 3, 2020
Copy link
Contributor

@landonreed landonreed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few minor comments (mainly about comments). Looks great otherwise!

@evansiroky
Copy link
Contributor Author

See latest changes.

@evansiroky evansiroky assigned landonreed and unassigned evansiroky Mar 6, 2020
@landonreed landonreed merged commit 13fbbe2 into dev Mar 10, 2020
@landonreed landonreed deleted the custom-ec2-ami-and-region branch March 10, 2020 15:06
@landonreed
Copy link
Contributor

🎉 This PR is included in version 3.7.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants