-
Notifications
You must be signed in to change notification settings - Fork 53
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
Auto deploy feed version #361
Conversation
…everity error type - unused rou
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.
A few minor things. I still need to review the tests a bit more. Also, we need to get the GH actions PR (#360) reviewed and merged into dev before this one now that Travis CI is turned off and we're not getting CI pass/fail indications.
src/main/java/com/conveyal/datatools/manager/jobs/ProcessSingleFeedJob.java
Outdated
Show resolved
Hide resolved
src/main/java/com/conveyal/datatools/manager/models/FeedVersion.java
Outdated
Show resolved
Hide resolved
src/main/java/com/conveyal/datatools/manager/models/FeedVersion.java
Outdated
Show resolved
Hide resolved
src/main/java/com/conveyal/datatools/manager/jobs/AutoDeployFeedJob.java
Outdated
Show resolved
Hide resolved
src/main/java/com/conveyal/datatools/manager/jobs/AutoDeployFeedJob.java
Outdated
Show resolved
Hide resolved
src/test/java/com/conveyal/datatools/manager/jobs/AutoDeployFeedVersionTest.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## dev #361 +/- ##
============================================
+ Coverage 26.61% 28.48% +1.86%
- Complexity 655 723 +68
============================================
Files 179 180 +1
Lines 9227 9356 +129
Branches 1249 1284 +35
============================================
+ Hits 2456 2665 +209
+ Misses 6533 6405 -128
- Partials 238 286 +48
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@br648, I just made some changes to provide access to |
OK, I think this is ready for @binh-dam-ibigroup. @br648, feel free to take another look at my latest tweaks as well. |
Consolidate AutoDeployJob initialization in ProcessSingleFeedJob
@evansiroky, thanks for the update. I have now merged this into the auto deploy branch. |
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.
I think this is functionally complete. We still need to make a UI that will go with these changes, so let's not merge to dev just yet, or if we do, we'll want to make sure we somewhat thoroughly try out this AutoDeploy stuff out before deploying to a production environment.
if (!status.error) { | ||
// A new FetchSingleFeedJob could be started after the AutoDeployJob has made sure no fetching jobs exist and | ||
// the DeployJob has started. Therefore this new feed version wouldn't result in a new DeployJob getting kicked | ||
// off since there was already one running. To catch this new feed version another auto deploy job is started. | ||
DataManager.heavyExecutor.execute(new AutoDeployJob(deployment.parentProject(), owner)); | ||
} |
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.
Something that just came to mind is that this could result in an endless loop of deployments. So if a deployment is initialized, then the deploy job finishes successfully there would be no stopping point within either this job or the AutoDeploy job until an error occurs.
Add code to end auto-deployment in certain cases
src/main/java/com/conveyal/datatools/manager/utils/JobUtils.java
Outdated
Show resolved
Hide resolved
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.
LGTM, just one minor formatting suggestion.
Co-authored-by: binh-dam-ibigroup <[email protected]>
…ject id in feed source. This is
Checklist
dev
before they can be merged tomaster
)Description
Auto deploy logic updated to match: https://docs.google.com/document/d/1-ktTBm2phT_7rIVQgk5XbyxT7VtjQnpll4hIyDP8AhQ/edit#heading=h.5s90wltgha1q