Support exec command#6579
Conversation
✅ Deploy Preview for odo-docusaurus-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
rm3l
left a comment
There was a problem hiding this comment.
A few comments after testing it.
|
9d59bf5 to
f48d25e
Compare
8c2fd60 to
65c38a1
Compare
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
…re that Signed-off-by: Parthvi Vala <[email protected]>
…nto account Signed-off-by: Parthvi Vala <[email protected]>
…le pkg Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
…unc doc and gofmt the files Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
Signed-off-by: Parthvi Vala <[email protected]>
|
Kudos, SonarCloud Quality Gate passed!
|
|
When I execute a long-running command, and try to get the logs, as documented in the output of I'm not sure if it is a problem on |
Are you running |
I'm running |
My bad, I cannot reproduce it either today. |
|
Thanks @valaparthvi for this work |
Unrelated failing test |
|
@feloy: Overrode contexts on behalf of feloy: Kubernetes-Integration-Tests/Kubernetes-Integration-Tests DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
* Support exec command for deploy Signed-off-by: Parthvi Vala <[email protected]> * Print log after timeout Signed-off-by: Parthvi Vala <[email protected]> * Add helper function to form proper commandLine Signed-off-by: Parthvi Vala <[email protected]> * Mockgen kclient Signed-off-by: Parthvi Vala <[email protected]> * Enhance error message Signed-off-by: Parthvi Vala <[email protected]> * Attempt at fixing unit test failures Signed-off-by: Parthvi Vala <[email protected]> * Rename import v1 to batchv1 Signed-off-by: Parthvi Vala <[email protected]> * Remove TODOs Signed-off-by: Parthvi Vala <[email protected]> * Add integration tests and cleanup on user interrupt Signed-off-by: Parthvi Vala <[email protected]> * Temp changes Signed-off-by: Parthvi Vala <[email protected]> * Log tip to run odo logs after a minute Signed-off-by: Parthvi Vala <[email protected]> * List components to delete even if there are no devfile resources Signed-off-by: Parthvi Vala <[email protected]> * Fix integration tests Signed-off-by: Parthvi Vala <[email protected]> * Fix deploy exec delete integration test Signed-off-by: Parthvi Vala <[email protected]> * Temp Change * Fix delete command tests * Fix mockgen client * Fix validation errors Signed-off-by: Parthvi Vala <[email protected]> * Fix unit test failure Signed-off-by: Parthvi Vala <[email protected]> * Attemp at writing less flaky integration test Signed-off-by: Parthvi Vala <[email protected]> * Remove TODOs Signed-off-by: Parthvi Vala <[email protected]> * Add tip after 1 minute and return the go routine if job finishes before that Signed-off-by: Parthvi Vala <[email protected]> * Use the container as it is so that container-overrides can be taken into account Signed-off-by: Parthvi Vala <[email protected]> * Move job spec code to a different helper function inside the libdevfile pkg Signed-off-by: Parthvi Vala <[email protected]> * Modify the Execute method to use the new helper function and refactoring Signed-off-by: Parthvi Vala <[email protected]> * Attempt at fixing integration and unit tests Signed-off-by: Parthvi Vala <[email protected]> * Move defer to print remaining resources to a separate function, fix func doc and gofmt the files Signed-off-by: Parthvi Vala <[email protected]> * Fix test failures Signed-off-by: Parthvi Vala <[email protected]> * Cleanup Signed-off-by: Parthvi Vala <[email protected]> * Cleanup unused functions Signed-off-by: Parthvi Vala <[email protected]> --------- Signed-off-by: Parthvi Vala <[email protected]>









What type of PR is this:
What does this PR do / why we need it:
Which issue(s) this PR fixes:
Fixes #5701
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer:
git clone https://github.com/kadel/demo-odo-springboot.gitgit checkout d5956f5devfile.yaml
odo deployThe first task(deploy-pi-db) should execute successfully, the second(deploy-db) should fail because of incorrect ServiceAccount setup. In both cases a log should be printed and the job should be deleted in 60s after its completion.
There is a third case where if the job continues to run after 60s minute, log/error will be printed after every 60s which will continue until the user interrupts. This can be tested by changing the image for container comp
pitogeolandgor some non-existent image.