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

204 Коммитов

Автор SHA1 Сообщение Дата
Erik Mavrinac 7b9ff3e5da Merged PR 699127: Upgrade to AnyBuild SDK 0.2.0
Newer SDK including interleaved stdout,err outputs (we still squash to single blocks) and faster AB startup.
2023-01-30 18:14:42 +00:00
Michael Pysson 9de1f98c70 Merged PR 698533: Remove Powershell dependency
Remove Powershell dependency. From what we can tell this is not used anymore
2023-01-25 21:58:37 +00:00
Marcelo Lynch 🧉 bb09e1dc54 Merged PR 693995: Conditionally compile CredScan logic on netcoreapp
The Microsoft.Automata.SRM version is only netstandard2.1 so it can't be consumed on net472. Also use stabler versions on some packages
2022-12-15 20:28:40 +00:00
Sahiti Chandramouli cb62eb7a05 Merged PR 693526: Changes to fix the errors caused in CB Ingestion phase in release pipeline.
Earlier there was an error in the CB Ingestion phase cause by RE2.Managed package version, this package used by CredScan libraries.
A version  (>= 1.5.0-alpha-0068-g5d32a6446f) was to be used, but adding a higher version "1.5.0-alpha-0100-g6ee5829558" caused some issues, so upgrading this to an even higher, latest and stable version to see if those errors can be avoided.
https://www.nuget.org/packages/RE2.Managed/
Error- https://cloudbuild.microsoft.com/stamp/DM_PS07/getfile?path=\DM3ANAP00135D95\d:\dbs\sh\cb_m\1213_061149_log\MsbuildRestore_Final.MSBuild.Restore.err.log

Related work items: #1975576, #1975575
2022-12-13 21:15:17 +00:00
Sahiti Chandramouli 8ba5b87e0a Merged PR 684501: Scan environment variables for credentials using the CredScan library(Phase I)
This is Phase I hence only a warning is logged when a credential is detected in an env var. Depending on the results obtained from the logging information the implementation is modified accordingly.

Added the CredentialScanner class to handle the functionality related to credscan
Created a unit test to test the functionality of the scanner with various test cases
Modified the SetEnvironmentVariables method to call the credscan method from CredentialScanner class.
Added allowList mechanism and a unit test to test that

Related work items: #1975564
2022-12-08 21:24:45 +00:00
David Federman 5dc2855264 Merged PR 666068: Update SBOM packages
Update SBOM packages

Note this also adjusts to a breaking change in this PR: https://github.com/microsoft/dropvalidator/pull/464
2022-10-18 23:46:38 +00:00
Iman Narasamdya 2dd8b82fb1 Merged PR 683519: Bump up AnyBuild SDK version to 0.1.16
Bump up AnyBuild SDK version to 0.1.16
2022-10-13 01:27:26 +00:00
Julian Bayardo a601f8c48f Merged PR 681101: The Great Redis Deletion
WIP PR, running tests for now
2022-09-28 17:35:59 +00:00
Pratik Lade ae4fac1027 Merged PR 676437: QTest: Add new parameters qTestBlameCollectorMode and additionalQTestArgumentsFile
QTest: Add new parameters qTestBlameCollectorMode and additionalQTestArgumentsFile

Related work items: #1949577, #1981256
2022-08-24 23:27:39 +00:00
Pasindu Gunasekara 🍣 a482766907 Merged PR 675045: Fix arguments for domino release management package update pipeline
- Updates args to match domino release management exe changes
- Remove the variable used to update sbom versions because the automation will do each package manually.

Related work items: #1974232
2022-08-18 18:47:06 +00:00
Pratik Lade d5c9fcf4ca Merged PR 672579: Update QTest package
Update QTest package

Includes https://dev.azure.com/mseng/Domino/_git/CloudBuild/pullrequest/661786
Enable blame collector for Mstest_custom and mstest_retail types as well
2022-07-29 22:21:23 +00:00
Julian Bayardo 25c0df1a8d Merged PR 671117: Upgrade drop
Upgrade drop

Reverts !670396

Reverts !670874
2022-07-21 18:23:59 +00:00
Serge Mera 8fc40aae60 Merged PR 670983: Enable JS related tests on Linux
Enable JS related tests on Linux

Related work items: #1965668
2022-07-20 06:09:09 +00:00
Julian Bayardo ebb01f75a1 Merged PR 670874: Revert 'Upgrade drop'
Upgrade drop

Reverts !670396
2022-07-18 18:37:05 +00:00
Julian Bayardo d11fdb4bbb Merged PR 670396: Upgrade drop
Upgrade drop
2022-07-14 22:36:54 +00:00
Pasindu Gunasekara 🍣 d3c1fec192 Merged PR 669449: Update Microsoft.ComponentDetection.Contracts to 1.2.3 2022-07-06 23:38:08 +00:00
Julian Bayardo 3a54557ab1 Merged PR 668884: Revert drop upgrade
Revert drop upgrade
2022-07-01 17:14:20 +00:00
Julian Bayardo 8a2becb2a6 Merged PR 668641: Upgrade drop
Upgrade drop
2022-06-29 22:26:01 +00:00
Qi Wang e83911086b Merged PR 658101: Add roslynanalyzers
Add roslynanalyzers call in BuildXLSdk. Csc.exe will use roslynanalyzers and produces analyze results when enableRoslynanalyzers set to true. In Compliance Build, Gurdian will run roslynanalyzers with copyLogsOnly to copy the analyze results, which will then be used for processing and break

Related work items: #1941023
2022-06-24 22:08:36 +00:00
Iman Narasamdya 563d8b3365 Merged PR 667371: [BXL Remoting][AnyBuild] Enable VFS pre-rendering using hardlinks
- Enable the use of hardlinks for VFS pre-rendering in BXL remoting.
- Update AnyBuild.SDK to get speed up in launching AnyBuild daemon.
- Set minimum requirement for AnyBuild client to the one published in https://dev.azure.com/mseng/Domino/_releaseProgress?_a=release-pipeline-progress&releaseId=188291
2022-06-24 18:45:32 +00:00
David Federman 935f5959d6 Merged PR 664091: Update SBOM packages
Update SBOM packages

Note that the SBOM packages have a minor breaking change which will also need to be flowed through to the CloudBuild repo.
2022-06-01 20:46:58 +00:00
Sergey Tepliakov 5abc42d794 Merged PR 661587: Use 'Microsoft.Cloud.InstrumentationFramework' package
Use 'Microsoft.Cloud.InstrumentationFramework' package instead of 'Microsoft.Cloud.InstrumentationFramework.NetStd' that was deprecated.

Related work items: #1948491
2022-05-22 20:48:36 +00:00
Chad Su fe7b4e37d4 Implement IBuildProvider so that the BuildXL Integration VS extension can intercept SDK-style csproj builds
The BuildXL Integration VS extension intercepts non-SDK-style csproj builds. However, that mechanism does not work for SDK-style csproj builds. Per SharePoint Online's request, the Visual Studio team has designed a new interface IBuildProvider. See the email for more details - [SharePoint, BuildXL and SDK Style projects.pdf](https://dev.azure.com/mseng/9ed2c125-1cd5-4a17-886b-9d267f3a5fab/_apis/git/repositories/50d331c7-ea65-45eb-833f-0303c6c2387e/pullRequests/658304/attachments/SharePoint%2C%20BuildXL%20and%20SDK%20Style%20projects.pdf).
2022-04-29 18:43:39 +00:00
Pratik Lade f44162bd83 Merged PR 657431: Update QTest Nuget package
Update QTest Nuget package
2022-04-13 18:24:21 +00:00
Chad Su fc58516301 Fix BuildXL Integration extension issue with Visual Studio 2022 17.2.0 Preview 2.1 or above
```
SetSite failed for package [BuildXLVsPackage]Source: 'BuildXLVsPackageDev17' Description: Unable to cast object of type 'Microsoft.VisualStudio.CommonIDE.Solutions.CSlnUpdate' to type 'Microsoft.Internal.VisualStudio.Shell.Interop.IVsSolutionBuildManagerPrivate'. System.InvalidCastException: Unable to cast object of type 'Microsoft.VisualStudio.CommonIDE.Solutions.CSlnUpdate' to type 'Microsoft.Internal.VisualStudio.Shell.Interop.IVsSolutionBuildManagerPrivate'. at BuildXL.VsPackage.VsProject.ProjectFlavorFactory..ctor(BuildXLVsPackage package) in \.\Public\Src\IDE\VsIntegration\BuildXLVsPackageShared\VsProject\ProjectFlavorFactory.cs:line 59 at BuildXL.VsPackage.BuildXLVsPackage.<InitializeAsync>d__15.MoveNext() in \.\Public\Src\IDE\VsIntegration\BuildXLVsPackageShared\BuildXLVsPackage.cs:line 137
```
The problem is that the extension has its own definition of Microsoft.Internal.VisualStudio.Shell.Interop.IVsSolutionBuildManagerPrivate copied from Microsoft.Internal.VisualStudio.Shell.Interop.10.0.DesignTime.dll. The solution is to use the interface defined in Microsoft.Internal.VisualStudio.Interop.dll.
2022-04-08 16:26:43 +00:00
Aleksandar Milicevic f0a82776e6 Merged PR 656467: Use cross-plat Aria logger on Linux/Mac
Changes:
- add a new NuGet dependency on `Microsoft.Applications.Events.Server` (which is the cross-plat Aria SDK)
- use that on Linux and Mac
- delete the native SDK previously used on Mac
2022-04-06 19:51:25 +00:00
Aleksandar Milicevic 1fe619f579 Merged PR 656279: Initial steps toward selfhosting on Linux
Changes:
- fix various file name capitalization errors
- fix various nuget package name capitalization errors
- create and publish `Bond.CSharp.linux-x64` nuget package
- add `/etc` to default untracked scopes
- untrack `$HOME/.dotnet` when running the `Downloader` tool
- consistently spell `App.config`

With these changes, all of the following succeed for me in Ubuntu 20.04 WSL running in Windows 11:
- `./bxl.sh --minimal`
- `./bxl.sh --minimal --internal`
- `./bxl.sh --minimal --internal --shared-comp`

Once the changes make it to LKG, the next step will be to set up a Linux pipeline to build minimal selfhost.  Later, that pipeline can be expanded to run unit tests etc.
2022-04-05 19:44:47 +00:00
Iman Narasamdya af2e5b41a8 Merged PR 655366: [AnyBuild] Update AnyBuild SDK to 0.1.13
Update AnyBuild SDK
2022-03-29 19:21:58 +00:00
Iman Narasamdya 6a41aac535 Add a way to specify minimal specified installation
Add a way to specify minimal specified installation.

Plus enable configurable agent wait timeout.
2022-03-23 22:41:16 +00:00
Iman Narasamdya bb19f91246 Merged PR 651684: Enable server mode when remoting is enabled
Previously, the server mode wasn't compatible with process remoting. The root cause of the issue is because we use the singleton pattern to get-or-create process remoting manager. Thus, that manager is used across build sessions, but was actually disposed after the very first session.

This PR stops the use of singleton pattern, and simply creates a remoting manager for each build session. That creation happens inside the scheduler, and the obtained instance will be disposed when the scheduler is disposed.

Related work items: #1926109
2022-03-04 18:54:42 +00:00
Iman Narasamdya 76adb87e41 Merged PR 647318: Pipeline exercising BuildXL remoting capability
Currently it only remotes process pip with "compile" tag.

The remoting configuration is still not optimal currently, particularly for the beefy pool we have (32 cores).

In this run, https://dev.azure.com/mseng/Domino/_build/results?buildId=16779538&view=results, with remoting multiplier 1.5, and num of leases is assumed to be 2*maxproc, there are 42 processes going to AnyBuild, but 22 of them failed to find agents because AnyBuild is over saturated.

In this run, https://dev.azure.com/mseng/Domino/_build/results?buildId=16779745&view=results, with remoting multiplier 1.25 and num of leases 24, there are only 17 processes going to AnyBuild, and all of them successfully execute remotely.

More work is still needed for optimal configuration, e.g.,
- Feedback from AnyBuild about available leases, etc.

Related work items: #1912875
2022-02-02 21:27:11 +00:00
Iman Narasamdya 6725095c11 Merged PR 644381: Integrate BuildXL with AnyBuild SDK
Integrate BuildXL with AnyBuild SDK.

The design is to isolate AnyBuild use so that the `#if FEATURE_ANYBUILD_PROCESS_REMOTING` doesn't need to appear everywhere.

This PR depends on AnyBuild.SDK package that should be published after this PR !644510 is pushed.

Related work items: #1907310
2022-01-13 23:51:44 +00:00
Juan Carlos Guzman Islas 627dfeb24a Merged PR 644087: Upgrade ADO packages and fix breaking changes
Upgrade ADO packages and fix breaking changes
2022-01-10 21:25:02 +00:00
Marcelo Lynch 🧉 1d0dc08a64 Merged PR 643482: Fix runtime failures in DropDaemon's GetSbomPackages
- Remove the `__ENABLE_SBOM_PACKAGE_CONVERSION` env variable. This was meant to guard against using this feature while the library had a bug that is already resolved, so not necessary anymore
- Microsoft.SBOM.Adapters and some other packages reference Newtonsoft.Json 13.0.1, while we were using 12.0.3 throughout. This was causing a failure when the runtime tried to load the assembly after calling the library. Version 13.0.1 is incompatible with earlier ones so a downgrading binding redirect is not possible. Instead, we deploy the drop daemon with Newtonsoft.Json version 13.0.1 and use "forward" binding redirects.
- Add some extra logging

With these changes, an end-to-end build where CG is run in the build runner and the packages are retrieved and added to the SPDX SBOM was successful: https://cbtest.microsoft.com/build/1d85303e-322e-4ddf-af1f-585ecce96079
2022-01-06 01:28:25 +00:00
Marcelo Lynch 🧉 8889e2ec89 Merged PR 643161: Remove SBOMUtilities.ComponentDetectionConverter in favor of the Microsoft.SBOM.Adapters library
- Remove ComponentDetectionConverter in favor of the Microsoft.SBOM.Adapters library
- Update SBOM packages to version 2.0.99

Related work items: #1902188
2022-01-04 21:30:09 +00:00
Pasindu Gunasekara 🍣 a7f80c722b Merged PR 641108: Migrate daemon tools to netcore
- Update qualifier for daemons to NetCoreAppQualifier
- Update VsoCrendentialHelper calls for AAD
- Upgrade Microsoft.Windows.Debuggers.SymstoreInterop to a version that is compatible with netstandard2.0
2021-12-21 18:04:54 +00:00
Pratik Lade ddcb8d44d1 Merged PR 642128: QTest: Add mstest_retail option
Add option to provide the vstest.console.exe tool to be used to run tests.

Update nuget to incorporate changes that update how Fakes and Code Coverage are handled for TestPlatform.

Test build: https://mseng.visualstudio.com/Domino/_build/results?buildId=16562693&view=results

Related work items: #1874080
2021-12-17 22:32:37 +00:00
Pasindu Gunasekara 🍣 7a98a99f79 Merged PR 640680: Upgrade SBOM packages to 2.0.90 2021-12-08 21:35:32 +00:00
Pasindu Gunasekara 🍣 988bb1954f Merged PR 639286: Add SBOM packages to SBOM generation step in DropDaemon
- Calls the new Microsoft.Sbom.Adapters library to get a list of SBOMPackage objects from the component detection output.

Related work items: #1882259
2021-12-01 22:11:29 +00:00
Michael Pysson dcc2149904 Merged PR 640210: Revert sbomApiVersion from 1.2.36 to 1.2.31 due to serialization error
Revert sbomApiVersion from 1.2.36 to 1.2.31 due to serialization error
2021-12-01 20:13:43 +00:00
Marcelo Lynch 🧉 7109de92b0 Merged PR 638996: Optionally disable CloudBuildV1 SBOM Generation
Add an environment variable to suppress this SBOM format
2021-11-19 23:07:07 +00:00
Marcelo Lynch 🧉 68382b6612 Merged PR 638117: Update SBOM API version to address scale issues
Previous versions were not flushing the JSON while generating, causing memory issues

Related work items: #1882256
2021-11-13 05:17:03 +00:00
Marcelo Lynch 🧉 e0177cf78b Merged PR 637924: Bump SBOM API version and add logging
This version fixes a bug in the generation issue. Add a logging implementation wrapping the daemon logger.

Related work items: #1882256
2021-11-12 01:52:08 +00:00
Marcelo Lynch 🧉 fd879b0886 Merged PR 635704: Use the new common API to generate SBOMs from the DropDaemon 2021-11-11 19:33:21 +00:00
Marcelo Lynch 🧉 a37db4c037 Merged PR 637192: Reinstate change: add a helper library to extract SBOM Metadata from BuildSessionInfo to BuildXL
Revert the revert and remove problematic dependencies.
2021-11-08 18:59:59 +00:00
Oleksii Kononenko 9de4b4915a Merged PR 637024: Revert "Merged PR 636560: Add a helper library to extract SBOM Metadata from...
Revert "Merged PR 636560: Add a helper library to extract SBOM Metadata from BuildSessionInfo to BuildX...

Add a helper library to extract SBOM Metadata from BuildSessionInfo to BuildXL.Utilities

Related work items: #1882251"

Reverted commit `c7a683ce`.

Related work items: #1882251
2021-11-05 20:06:27 +00:00
Marcelo Lynch 🧉 c7a683ce3f Merged PR 636560: Add a helper library to extract SBOM Metadata from BuildSessionInfo to BuildX...
Add a helper library to extract SBOM Metadata from BuildSessionInfo to BuildXL.Utilities

Related work items: #1882251
2021-11-04 19:28:00 +00:00
Pratik Lade 8e83f1dc98 Merged PR 636263: QTest: Add new parameters for Blame Collector and VSTest Console logger options
QTest: Add new parameters for Blame Collector and VSTest Console logger options
2021-11-03 20:20:15 +00:00
Sergey Tepliakov 7e0366c2c1 Merged PR 633367: Remove SQLite from Bxl sdk
Remove SQLite from Bxl sdk
2021-11-02 17:31:50 +00:00
Sergey Tepliakov ff8315980b Merged PR 635626: Upload mdm metrics when the launcher is used
Upload mdm metrics when the launcher is used

Related work items: #1881914
2021-11-01 22:14:46 +00:00