Is your feature request related to a problem? Please describe.
When a partner uses the --submit flag and they are also using auto-publish for their container project, since preflight first sends the /image to pyxis, if there is any error after this call (500 or size limit constrant for a log, etc) the image gets published with incomplete data, and the user gets an error. They then try to re-run preflight, but then get a different error, since already published images can't be updated. This leads to a bad user experience and support cases.
Describe the solution you'd like.
preflight can enhance/reorder the submission order
- createArtifacts
- updateTestResults
- createImage (including existing logic to updateImage if need be)
- createRPMManifest
- updateArtifacts (new method to add the certImage.ID to the artifact object in pyxis)
- updateResults (new method to add the certImage.ID to the results object in pyxis)
Describe alternatives you've considered.
Another thought after looking at the code might be simply to
- updateImage after updateTestResults with value of
certified
We'd have to check with pyxis/cloudwf about this, since this wasn't discussed when talking with them.
Additional context.
This issue has only happened a few times in the last few years, so I think it's more important to keep submission working when refactoring for the masses, then to enhance something that is an edge case of an edge case.
Is your feature request related to a problem? Please describe.
When a partner uses the
--submitflag and they are also usingauto-publishfor their container project, since preflight first sends the/imageto pyxis, if there is any error after this call (500 or size limit constrant for a log, etc) the image gets published with incomplete data, and the user gets an error. They then try to re-run preflight, but then get a different error, since already published images can't be updated. This leads to a bad user experience and support cases.Describe the solution you'd like.
preflight can enhance/reorder the submission order
Describe alternatives you've considered.
Another thought after looking at the code might be simply to
certifiedWe'd have to check with pyxis/cloudwf about this, since this wasn't discussed when talking with them.
Additional context.
This issue has only happened a few times in the last few years, so I think it's more important to keep submission working when refactoring for the masses, then to enhance something that is an edge case of an edge case.