Skip to content

Conversation

@jameschensmith
Copy link
Contributor

Summary

Checks for FinishedSuccessfully, and returns an error for non-successful tasks. The error message used comes from the C# implementation ("One or more deployment tasks failed.").

Fixes #390.

Notes

By adding more tests to task wait, the test runtime has increased quite a bit due to time.Sleep(5 * time.Second). I would like some input on this. I could potentially replace it with a mock timer to speed things back up. The overhead of adding more tests to task wait is pretty significant currently 😅

Co-authored-by: NonlinearFruit <1123benji5813@gmail.com>
@CLAassistant
Copy link

CLAassistant commented Sep 6, 2024

CLA assistant check
All committers have signed the CLA.

@jameschensmith jameschensmith marked this pull request as ready for review September 6, 2024 15:49
@jameschensmith
Copy link
Contributor Author

@APErebus, if you get a chance, could you possibly look into this? If you have any questions / concerns, I'd love to help address them. Thank you!

@APErebus
Copy link
Contributor

@APErebus, if you get a chance, could you possibly look into this? If you have any questions / concerns, I'd love to help address them. Thank you!

Sure! Will look at it today :)

Copy link
Collaborator

@domenicsim1 domenicsim1 left a comment

Choose a reason for hiding this comment

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

Nice 👍

@APErebus
Copy link
Contributor

Nice 👍

Thanks for the review @domenicsim1

@APErebus APErebus merged commit da8a86b into OctopusDeploy:main Sep 18, 2024
@jameschensmith jameschensmith deleted the feat/handle-task-wait-failures branch September 18, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

task wait on failed release deploy task should exit with an error code

4 participants