Introduce `UpdateJobResult` and `PatchState`
What does this MR do?
Introduce UpdateJobResult and PatchState
Currently:
-
PatchTraceusedUpdateStatecausing some confusion on handling of the different values -
UpdateStateas a return ofUpdateJobResultis inflexible to append the result with additional data, likecanceledorupdate-interval
This:
- Introduces an explicit
PatchStatewith a states directly supported byPatchTrace - Make
UpdateJobto provideUpdateJobResult - It retains all current behavior for handling data
Why was this MR needed?
This is related to discussion about trace handling improvements for Runner: gitlab#232533 (comment 405974271).
This is needed to provide a better maintainability and explicitness of data processing.
Edited by Kamil Trzciński