I have been creating deliberately bad artifacts to test automatic rollback.
This is based on the automated test script for this feature. When I try to load the artifact into my backend, I get a variety of errors:
- Artifact couldn't be uploaded. No size provided before the artifact part of the message or the size value is wrong.
- Artifact couldn't be uploaded. There was an error uploading the artifact
- Artifact couldn't be uploaded. internal error
Typically this will eventually succeed if I retry the upload but sometimes it takes 4-5 attempts.
I verified this behavior with the 1.0.x, master and git versions of the canned integration environment. I primarily used the mender-artifact tool that was built with my Yocto builds but also verified with the latest master branch version.