feat(agent): send phase status code upon phase completion #846
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This is a follow-up on the logging redesign, since logs are now NOT transmitted at the end of the job execution, we can also send the phase status upon phase completion.
testflinger-outcome.json, in the logging redesign, they were removed anyway while submitting results (pop'ed). While not important as of now, but this reduces the size of this file as its not storing any log output at all.This is also a step forward to be able to show live output in the UI
Resolved issues
Resolves CERTTF-770
Documentation
Web service API changes
Tests
All current unit tests were passing, some needed minor modifications related to the usage of Pathlib.
Phase related tests were modified to match this new behavior and added couple more.
Tested as well on staging.
Job at

testphase. Provision logs are already available in the UIJob at

reservephase. Provision and test logs are already available in the UI