Description
TestBuildEmitsEvents is an integration-cli test - it was actually done that way on purpose, because the docker build with buildkit has a different codepath than the build through the API.
We should also have the same test in the integration suite (https://github.com/moby/moby/tree/master/integration/build), that directly tests the build through the API without the CLI.