Граф коммитов

8706 Коммитов

Автор SHA1 Сообщение Дата
Simon Cropp 0edb96687c
Update .gitattributes (#10335) 2024-07-08 17:34:17 +02:00
dotnet-maestro[bot] 7755d7a431
Update dependencies from https://github.com/dotnet/roslyn build 20240702.5 (#10340)
Microsoft.Net.Compilers.Toolset
 From Version 4.11.0-3.24329.1 -> To Version 4.11.0-3.24352.5

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-07-08 17:22:34 +02:00
Surayya Huseyn Zada 47fb7d5307
[BuildCheck] Fix docs (#10334)
* remove the part where we state that we can analyze binlogs of older  versions of MSBuild

* Update BuildCheck-Architecture.md
2024-07-08 17:14:33 +02:00
Farhad Alizada 07be3a17b2
Update the severities value of BuildCheck results (#10330) 2024-07-04 16:45:55 +02:00
Jan Krivanek 06bb1c233f
Refactor/Unify Build and Graph OM and API (#10172)
* Fix test utils wording

* Update src/UnitTests.Shared/RunnerUtilities.cs

Co-authored-by: Mariana Dematte <magarces@microsoft.com>

* Refactor submission OM - part 1

* Fix xml comments

* Fix nullability in tests

* Finalize merging of the build requesting OM and API

* Add nullability to BuildManager

* Remove leftover test code

* Fix nullables after rebase

* Fix verification check

* Adjust

* Restructure the code, add exception for sealing OM

* Removing breaking change

* Dummy change to kick cla bot

* Update src/Build/BuildCheck/Utilities/EnumerableExtensions.cs

Co-authored-by: Mariana Dematte <magarces@microsoft.com>

* Fix API breaking changes

---------

Co-authored-by: Mariana Dematte <magarces@microsoft.com>
Co-authored-by: Surayya Huseyn Zada <114938397+surayya-MS@users.noreply.github.com>
2024-07-04 11:20:42 +02:00
dotnet-maestro[bot] a481b831d5
[main] Update dependencies from dotnet/roslyn, nuget/nuget.client (#10284)
* Update dependencies from https://github.com/dotnet/roslyn build 20240621.9

Microsoft.Net.Compilers.Toolset
 From Version 4.11.0-3.24313.9 -> To Version 4.11.0-3.24321.9

* Update dependencies from https://github.com/nuget/nuget.client build 6.11.0.105

NuGet.Build.Tasks
 From Version 6.11.0-rc.101 -> To Version 6.11.0-rc.105

* Update dependencies from https://github.com/dotnet/roslyn build 20240629.1

Microsoft.Net.Compilers.Toolset
 From Version 4.11.0-3.24313.9 -> To Version 4.11.0-3.24329.1

* Update dependencies from https://github.com/nuget/nuget.client build 6.11.0.122

NuGet.Build.Tasks
 From Version 6.11.0-rc.101 -> To Version 6.11.0-rc.122

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-07-03 15:37:39 +08:00
Surayya Huseyn Zada 47393a047f
Add BuildCheck Replay Mode description to the BuildCheck Architecture doc (#10312)
* Update BuildCheck-Architecture.md
2024-07-02 12:37:25 +02:00
YuliiaKovalova 049835be35
Add a notification about BuildCheck enabled for the current build (#10261) 2024-07-01 20:15:31 +02:00
Surayya Huseyn Zada 605f30bcfb
Fix bug: Terminal logger project output path link (localization) (#10304)
* fix bug

* add test

* small fix

* small fix

* improve InvokeLoggerCallbacksForSimpleProject

* rename to _projectFileWithNonAnsiSymbols

* add comment

* use GB18030 PUA characters in the project;
fix cproj to proj typo

* small fix

* fix test
2024-07-01 13:50:36 +02:00
Mariana Dematte a9c95c7251
Add new TargetBuiltReasons (#10092)
Fixes #9467

Context
When building targets we only specify a reason when it has direct control over the flow. So some targets have no built reason at the end of the build and can get very confusing on large builds.

Changes Made
Added options for TargetBuiltReason: Initial target, entry target, default target.
These are added to TargetSpecification so they can be referenced in different points of the build.
2024-06-28 06:32:55 -07:00
Farhad Alizada 671434e920
Update the build template (#10299) 2024-06-28 13:24:29 +02:00
AR-May 843bfa584a
Add comment about localization (#10294)
Adding a comment about localization in order to cause a merge conflict in the next release branch, when we will be disabling the localization in the previous release branch and the change flows automatically to later releases and main.

See https://github.com/dotnet/msbuild/pull/10269#discussion_r1646558936
2024-06-28 11:08:38 +02:00
AR-May 34031aff65
Reenable CustomAnalyzerTest (#10298)
Related to #10277

Since the test is only failing on the version bump PRs, let's try to re-enable it to get more coverage before we fix it.
2024-06-27 16:42:39 +02:00
Surayya Huseyn Zada c9e2fad1e9
Fix bug: Terminal logger Copy task retries (#10296)
* first attempt to fix Copy task retries in Terminal Logger
2024-06-27 13:59:10 +00:00
dotnet bot 3056399282
Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9788870 (#10283)
* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9773561

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9773561

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9777431

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9777431

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9780734

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9780734
2024-06-26 17:46:22 +02:00
Surayya Huseyn Zada fb4bc63bbd
BuildCheck Replay Mode (#10224)
* implement BuildCheck Replay Mode feature
2024-06-26 08:51:26 +00:00
AR-May 89a6a7726f
Revert "Update dependencies from https://github.com/dotnet/arcade build 20240624.1 (#10285)" (#10292)
This reverts commit b2d769c9f4.
2024-06-26 09:49:10 +02:00
MichalPavlik 9dcc8cd8e5
Rendering message about build cancellation (Terminal Logger) (#10055)
Added new cancellation event
2024-06-25 13:09:28 +02:00
Jan Krivanek c7904f283c
Add initial Buildcheck codes (#10250)
Customer requested to have understandable documentation of individual imposed rules.
Let's follow similar practice we introduced in template engine - with adding short hyperlinks to the outputs, that can then include rich information, that can freely evolve off-cycle.

Contributes to #10240.
2024-06-24 22:31:50 +00:00
dotnet-maestro[bot] b2d769c9f4
Update dependencies from https://github.com/dotnet/arcade build 20240624.1 (#10285)
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.XUnitExtensions
 From Version 8.0.0-beta.24311.3 -> To Version 8.0.0-beta.24324.1

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-06-24 18:24:19 +02:00
Jenny Bai c028e44472
Add the missing help messages for some switches (#9719) 2024-06-24 14:03:21 +02:00
Farhad Alizada c260ac1537
Add build status badged public and internal (#10275) 2024-06-21 09:16:09 +02:00
AR-May 9e681905e3
Version 17.12 (#10268)
* Bump version

* Update API baseline package version

* Delete CompatibilitySuppressions file
2024-06-20 18:30:14 +02:00
Rainer Sigwald 48003ed205
Nullable annotations for ErrorUtilities (#10272)
This will help with using these from new code that's nullable-
aware. The biggest helpful bit is the `[NotNull]` ones that let the
compiler know to assume that parameter is non-null in the rest
of the method, which should eliminate the need for some `!`s
after calling `VerifyThrowArgumentNull(whatever)`.
2024-06-20 10:30:31 -05:00
AR-May 3c12d57711
Disable CustomAnalyzerTest (#10278) 2024-06-20 16:52:17 +02:00
Surayya Huseyn Zada 856f50eee0
Fix bug: No visible message when replaying analyzed build (#10265)
* add BuildCheck.UnitTests to slnf

* add test for replaying binlog of analyzed build

* fixed buf for BuildCheckResultWarning

* changed the test for error case

* fixed bug for BuildCheckResultError

* set RawMessage for BuilCheck results instead of speacial casing in BuildEventArgsWriter

* remove using

* add skip back to the flaky test;
add skip to the new test
2024-06-20 12:28:24 +00:00
Farhad Alizada e1ff6dcf62
Add the configuration file for merge flow (#10257) 2024-06-20 12:55:10 +02:00
Rainer Sigwald 61dcbf07b6
Additional Guardian baselining (#10271)
These results are uninteresting since drop.app is not something MSBuild ships or
redistributes, and BinSkim is currently breaking the build. Add to the baseline to get the
build working while Arcade is working to update to a new drop.app.
2024-06-19 17:03:10 -05:00
Jan Provazník 4a45d56330
Log Registry LongPathsEnabled in v:diagnostic (#10223)
* Add a message for LongPathsEnabled

* refactor LongPathsEnabled logic to a ternary enum

* Elaborate and comment the resource string

* translations

* add state for registry not set

* deduplicate
2024-06-18 16:25:07 +02:00
David Federman 0a3683cf7b
Update Microsoft.BuildXL.Processes to 0.1.0-20240606.3 (#10255) 2024-06-18 08:43:59 +00:00
dotnet-maestro[bot] 39f2edb9bd
[main] Update dependencies from dotnet/roslyn, nuget/nuget.client (#10252)
* Update dependencies from https://github.com/dotnet/roslyn build 20240613.9

Microsoft.Net.Compilers.Toolset
 From Version 4.11.0-3.24307.2 -> To Version 4.11.0-3.24313.9

* Update dependencies from https://github.com/nuget/nuget.client build 6.11.0.101

NuGet.Build.Tasks
 From Version 6.11.0-rc.87 -> To Version 6.11.0-rc.101

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-06-18 13:55:33 +08:00
dotnet-maestro[bot] 8060da46b5
Update dependencies from https://github.com/dotnet/arcade build 20240611.3 (#10253)
Microsoft.SourceBuild.Intermediate.arcade , Microsoft.DotNet.Arcade.Sdk , Microsoft.DotNet.XUnitExtensions
 From Version 8.0.0-beta.24270.4 -> To Version 8.0.0-beta.24311.3

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-06-18 13:54:06 +08:00
Rainer Sigwald 5b5222d77d
Manual thread safety in RedirectConsoleWriter (#10231)
Initially, this delegated thread safety to a `SyncTextWriter`, but the
object graph was hard to understand, so it was replaced with a has-a
`SyncTextWriter` relationship, but this lost the timer-based call to
`Flush()` to send the output to the client.

The docs on `MethodImplOptions.Synchronized` also advise that it can be
risky due to locking on the object itself, so manage the syncronization
with an explicit lock object over the underlying `StringWriter` instead.

Fixes #10013.
2024-06-17 13:39:46 -05:00
Rainer Sigwald 0b6e073b18
Drop MSBuildTaskHost resources from ARM64 (#10230)
These resources were added to the ARM64 subfolder in #10023,
but I don't think they're needed: there's no .NET Framework 3.5
for ARM64 and `MSBuildTaskHost.exe` isn't in the ARM64 folder
itself, so I think we can remove these files.

There was also a build race condition involving the .resources.dll
files, which is how I found this. The `Arm64ProjectReference`
wasn't enough to get them built.

---------

Co-authored-by: Jenny Bai <v-jennybai@microsoft.com>
2024-06-17 12:09:10 +02:00
dotnet bot fd0c96255e
Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9736500 (#10247)
* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9736500

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9736500

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9736500
2024-06-17 02:35:07 -07:00
Jan Provazník b100f12cd8
Normalize paths when extracting them from properties in BuildCheck (#10238)
* add an extension method for getting paths from dictionaries, use it in BuildCheck
2024-06-17 09:32:02 +02:00
Jan Krivanek a9efffc4de
Fix xml comments (#10233) 2024-06-14 16:37:58 +02:00
YuliiaKovalova 8761bb7677
Extend BuildCheck-feature-threat-model.md (#10221) 2024-06-14 12:53:29 +00:00
Jan Provazník 8f2286275c
Move LockCheck to Utilities (#10218)
* move LockCheck to Utilities and make it public, update resources

* add doc comments

* refactor windows condition inside LockCheck

* use LockCheck in other Tasks which delete/modify files

* improve method summary

Co-authored-by: Rainer Sigwald <raines@microsoft.com>

---------
2024-06-14 09:47:36 +02:00
dotnet-maestro[bot] 80c02d0129
[main] Update dependencies from dotnet/roslyn, nuget/nuget.client (#10217)
* Update dependencies from https://github.com/dotnet/roslyn build 20240607.2

Microsoft.Net.Compilers.Toolset
 From Version 4.11.0-3.24301.1 -> To Version 4.11.0-3.24307.2

* Update dependencies from https://github.com/nuget/nuget.client build 6.11.0.87

NuGet.Build.Tasks
 From Version 6.11.0-preview.2.76 -> To Version 6.11.0-rc.87

---------

Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
2024-06-14 10:52:13 +08:00
Jan Krivanek b36ff85c52
Bugfix SharedOutputPath analyzer (#10236) 2024-06-13 14:01:19 +02:00
Jakub Jareš 63f447bf81
Add a way to write output (#10203) 2024-06-13 12:40:27 +02:00
Jan Provazník 3deec2fe6b
Add a binlog message in case of failure to add an embedded file (#10212)
* Add logging of exceptions when reading a file in BinaryLogger

* Narrow exception types

* Add argument name

* Log flattened exception messages
2024-06-12 16:35:34 +02:00
Roman Konecny 36c5352263
Comment for null ás warning or error in SDK result (#10094) 2024-06-12 12:14:09 +02:00
Jenny Bai 9ead13b2d7
Enable ca2000 for tests and fix the leaks (#10161)
* Enable CA2000 in tests

* Fix the process ca2000 error

* disabel the warning CA2000 in StartToolProcess

* Refactor the XmlReader create

* Fix new CA2000 after merge

* Fix the typo error

* Fix the indent

---------

Co-authored-by: Gang Wang <v-gaw@microsoft.com>
2024-06-12 08:13:43 +02:00
Ladi Prosek 74e23a98d1
[BuildCheck] Implement double writes analyzer (#10184)
Fixes #9881

### Context

We believe there is value in flagging cases where the same file is written by more than one task during a build. https://github.com/dotnet/source-build/issues/4390 is an example of a recent hard-to-diagnose build issue that could have been prevented by this analyzer.

### Changes Made

This PR adds a new built-in analyzer and makes a few supporting changes.

### Testing

- Existing and new unit tests.
- Built a few larger repos with the analyzer enabled.

### Notes

The changes contain a fix/workaround for #10176.
2024-06-10 09:13:03 +02:00
Jan Krivanek 969e24d04d
Document MSBuild Logging (#10158)
* Document MSBuild Logging

* Adjust whitespaces format

* Update based on review

* Apply suggestions from code review

Co-authored-by: AR-May <67507805+AR-May@users.noreply.github.com>
Co-authored-by: Rainer Sigwald <raines@microsoft.com>

* Reflecting PR review comments

---------

Co-authored-by: AR-May <67507805+AR-May@users.noreply.github.com>
Co-authored-by: Rainer Sigwald <raines@microsoft.com>
2024-06-09 21:13:46 +02:00
dotnet bot 98c28cc33d
Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9675539 (#10202) 2024-06-07 13:56:45 +00:00
Jan Krivanek da5a94252e
unGAC stringtools (#10210) 2024-06-07 14:57:35 +02:00
AR-May b8e5cce93e
Disable SampleAnalyzerIntegrationTest (#10207) 2024-06-06 20:22:50 +02:00