project-system icon indicating copy to clipboard operation
project-system copied to clipboard

Repo fails to build without /m MSBuild flag

Open MiYanni opened this issue 3 years ago • 1 comments

Looking at the MSBuild CLI doc, the m flag sets the number of concurrent processes to use. Without a number, it uses the number of processors on the PC. Without the flag itself, it'll be set to 1. It seems that our build will fail if ran completely synchronously.

image

It seems some kind of dependency (build ordering) isn't specified properly, as the VSIX container should exist after the CreateVsixContainer target executes. Investigating a binlog of this should be able to determine the problem.

MiYanni avatar Jul 25 '22 23:07 MiYanni

I finally hit this in CI, even with the /m flag. So, it is definitely possible to hit randomly while the build runs on multiple processes. image

https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=6549829&view=results

MiYanni avatar Aug 12 '22 19:08 MiYanni

Another failure here: https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=6966047&view=results

MiYanni avatar Nov 15 '22 19:11 MiYanni