Description
Prepare PoC for generic upload of TypeInstances even if Action failed.
Currently, the upload TypeInstance step is the last one, and it's executed only if all other step exited with non-zero code.
This is problematic as in case of failed Action we don't have TypeInstances generated in previous steps.
AC
Even if Action fails:
- TypeInstances from successfully finished steps are uploaded to Local Hub
- We still built the relations between uploaded TypeInstances (as much as we can, ignoring missing TypeInstances)
- We see uploaded TypeInstance under Action status (
.Actions[0].output.typeInstances).
Reason
To get the output of executed step (TypeInstances) for failed Action we need to download it directly from MinIO. It requires a lot of manual steps. Additionally, it generates a second problem, sometimes the format of artifacts from MinIO are different from the final TypeInstances format.
This enables also a rollback (#502) for failed Action too.
Use cases
- System User - enables and option to easily get the output of executed step from failed Action, e.g., to download the Terraform state and execute clean-up.
Description
Prepare PoC for generic upload of TypeInstances even if Action failed.
Currently, the upload TypeInstance step is the last one, and it's executed only if all other step exited with non-zero code.
This is problematic as in case of failed Action we don't have TypeInstances generated in previous steps.
AC
Even if Action fails:
.Actions[0].output.typeInstances).Reason
To get the output of executed step (TypeInstances) for failed Action we need to download it directly from MinIO. It requires a lot of manual steps. Additionally, it generates a second problem, sometimes the format of artifacts from MinIO are different from the final TypeInstances format.
This enables also a rollback (#502) for failed Action too.
Use cases