WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
127002
[Win] Set MSBUILD environment variable to avoid long-lived processes locking log files
https://bugs.webkit.org/show_bug.cgi?id=127002
Summary
[Win] Set MSBUILD environment variable to avoid long-lived processes locking ...
Brent Fulgham
Reported
2014-01-14 13:15:09 PST
We have encountered a number of cases where long running MSBUILD processes can hold onto log files, preventing later build requests from completing. According to:
http://stackoverflow.com/questions/3919892/msbuild-exe-staying-open-locking-files
and:
http://stackoverflow.com/questions/13510465/the-mystery-of-stuck-inactive-msbuild-exe-processes-locked-stylecop-dll-nuget
... you can control MSBUILD's launch behavior by passing a flag at startup, or setting an environment variable. Since our build infrastructure does not launch MSBUILD directly, we should just set the environment variable: MSBUILDDISABLENODEREUSE=1 This tells MSBUILD to terminate after the build has completed, avoiding the locked log file.
Attachments
Patch
(2.09 KB, patch)
2014-01-14 13:20 PST
,
Brent Fulgham
ddkilzer
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2014-01-14 13:17:43 PST
See also:
http://connect.microsoft.com/VisualStudio/feedback/details/737860/msbuild-and-msbuildtaskhost-processes-proliferate-after-exiting-vs11-beta
Brent Fulgham
Comment 2
2014-01-14 13:20:25 PST
Created
attachment 221194
[details]
Patch
David Kilzer (:ddkilzer)
Comment 3
2014-01-14 13:58:54 PST
Comment on
attachment 221194
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=221194&action=review
r=me
> Tools/Scripts/webkitdirs.pm:1461 > + if (!$ENV{'MSBUILDDISABLENODEREUSE'}) {
If it's not set, this may produce a benign (but annoying) error message about using an undefined value. This check may be slightly better: if (!defined $ENV{'MSBUILDDISABLENODEREUSE'} || !$ENV{'MSBUILDDISABLENODEREUSE'}) {
Brent Fulgham
Comment 4
2014-01-14 14:29:47 PST
Committed
r162010
: <
http://trac.webkit.org/changeset/162010
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug