-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat: prototype control api devloop intent #6636
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6636 +/- ##
==========================================
- Coverage 70.48% 69.75% -0.74%
==========================================
Files 515 523 +8
Lines 23150 23876 +726
==========================================
+ Hits 16317 16654 +337
- Misses 5776 6132 +356
- Partials 1057 1090 +33
Continue to review full report at Codecov.
|
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.
Is the idea here that this will avoid the separate devloop instances for each of sync/build/deploy?
yes sorry. I didn't add any description and put this out late friday. Will add motivation to the PR |
Tested and verified! |
Thanks for the thorough testing @marlon-gamez. Added integration tests to make sure the case you discovered never happens. |
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.
Have a few questions regarding the integration test
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, changes look good so I think it's good to merge once tests are good
This is a prototype for intellij IDE to verify. /cc @emmanuelbaah
Motivation:
build
,deploy
andsync
.This does not work well with V2 output logging as the output tree gets wiped out at the start of each
DevLoop
Event.Solution
devloop
however, re-use thebuild
,deploy
andsync
triggers to execute devloop intent.PROs:
doDev
command for another intent.devloop
intent is true, then internally setbuild
,deploy
andsync
is set to true.doDev
needsBuild, needsDeploy and needsSync logic to make sure if devloop intent is set to true and rebuild is needed (if build intent was set to true), redeploy. Similarly for syncSteps to verify
Would love to see if this works and we will try to get it by early oct.
Steps to try out.
make
to build the skaffold binarybuild
,deploy
andsync
.Thanks
Tejal
Testcases
Expected Result: Deploy should not happen.
Changed deploy and build dependency