We used the api to build a model that installs pip dependencies for a python application.
Running the pip install outputs "Sucessfully built <package" for packages that are built.
This caused the api to return the name due to the implementation of parsing the imageId in the BuildImageResultCallback class.
We fixed it by adding a lastStepDone boolean that waits for Step n/n done and then enables the imageId parsing by waiting for "Sucessfully built <...>"
Should I open a pr with our solution I think there is no disadvantage to wait for docker image build completion before parsing the image id?