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

7503 Коммитов

Автор SHA1 Сообщение Дата
Iman Narasamdya 18e99480c2 Merged PR 779944: Eradicate PAT uses in package consumption/publishing/promotion
Eradicate PAT uses in package consumption/publishing/promotion

Related work items: #2168961
2024-04-17 20:34:39 +00:00
Marcelo Lynch 🧉 4e66868617 Merged PR 780103: Update Ninjson to new package that includes windows and linux binaries
- Removes usages of the `linux-x64` package
- Some changes in the deployment directory structure
- Also fixes a problem where we crash if the graph construction tool fails instead of being graceful

Related work items: #2000411
2024-04-17 18:43:31 +00:00
Qi Wang 0be2ade98c Merged PR 779365: Fix semaphore is already open failure in Ubuntu 22.04 2024-04-16 22:21:32 +00:00
Sahiti Chandramouli 67a24e958a Merged PR 779690: Changes to modify the version of MSVC according to the image
Changes to modify the version of MSVC according to the image,
Turned off the autobaseline feature as well.

The MSVC version has been changed to 14.39
https://dev.azure.com/mseng/Domino/_build/results?buildId=27811495&view=logs&j=96137153-191f-5184-c736-a57cf0a30600&t=56fa6f3b-b8ab-59b3-f487-fb3f4379b561&l=13

The image has also been changed to
https://dev.azure.com/mseng/Domino/_build/results?buildId=27811495&view=logs&j=96137153-191f-5184-c736-a57cf0a30600&t=2259007f-c779-4925-9193-8f35d93fa57a&l=10

Related work items: #2169518
2024-04-16 18:34:05 +00:00
Marcelo Lynch 🧉 0fec806de5 Merged PR 779698: Remove unnecessary 'set PAT' task from distributed validation 2024-04-16 00:34:00 +00:00
Marcelo Lynch 🧉 f4d16df769 Merged PR 779656: Replace KeyVault PAT with System.AcessToken 2024-04-15 23:48:49 +00:00
Serge Mera 50513ef76a Merged PR 779665: Remove external npm package
The step to publish the external npm package has been removed already. This PR removes the external package from our sources (the publish step was pointing to it).

Related work items: #2168692
2024-04-15 23:01:01 +00:00
Sahiti Chandramouli a5e7a0d1ac Merged PR 779650: Enable binskim in the rolling pipeline.
Enable binskim in the rolling pipeline.
Added the baseline file

Tested it in this pipeline
https://dev.azure.com/mseng/Domino/_build/results?buildId=27808544&view=results

Related work items: #2169057
2024-04-15 22:46:48 +00:00
Michael Pysson 481e256460 Merged PR 779526: Update Azure.Identity
Update Azure.Identity

Related work items: #2168526
2024-04-15 22:18:01 +00:00
Marcelo Lynch 🧉 69a1fb68c7 Merged PR 779372: Use worker stages in release pipeline distributed validation
Use worker stages in release pipeline distributed validation
2024-04-15 21:45:48 +00:00
Sahiti Chandramouli cda0139253 Merged PR 779584: Changes to add missing param in extract nuget packages
Changes to add missing param
2024-04-15 18:36:46 +00:00
TSEBuild f78d569656 Merge pull request 779533 from dev/BuildXL/updatenotice-2024-04-15T16-11-37 into main 2024-04-15 18:23:55 +00:00
Sahiti Chandramouli 2870221488 Merged PR 779301: Extract the release binaries and rename them by eliminating the buildNumber.
It has been observed that the  Guardian's baseline/suppression signatures are based on path among other things, so if the path changes, the signature changes as well.
We need to extract the packages in a way it does not affect the signatures. Otherwise the baseline file goes ineffective.

Example:
https://dev.azure.com/mseng/Domino/_build/results?buildId=27713307&view=logs&j=ac0a85a6-02a9-5058-229a-2b15404be380&t=1d57849f-7ccf-5ae9-8384-7bda37edd845&l=54

The build number here can cause the signature to change hence eliminating it.

After: https://dev.azure.com/mseng/Domino/_build/results?buildId=27729095&view=logs&j=ac0a85a6-02a9-5058-229a-2b15404be380&t=330a237c-315b-5c9b-c2e0-28392f2ce489&l=24

The build number is not printed it was just done for testing.

Related work items: #2166618
2024-04-15 17:59:02 +00:00
Pasindu Gunasekara 🍣 23681ed5d5 Merged PR 779360: Add template to generate access tokens with workload identity federation 2024-04-15 17:50:26 +00:00
CloudDev Build Account 65dc95d51c New LKG 0.1.0-20240412.16
[skip ci]
2024-04-15 17:17:16 +00:00
Oleksii Kononenko 7d9a35cd69 Merged PR 779383: Revert "Merged PR 778558: Run internal unit tests with internal flag"
Revert "Merged PR 778558: Run internal unit tests with internal flag"

Reverted PR !778558
Reverted commit c22df9a9

Npm package for some reason started missing files under /tools/ after `--internal` flag was added.
2024-04-13 00:40:00 +00:00
Marcelo Lynch 🧉 4d0b6af400 Merged PR 779375: Revert to use mseng-buildcache in set-variable-pats.yml
Some builds started failing after replacing this, reverting this here to investigate further without builds being broken
2024-04-13 00:00:34 +00:00
Marcelo Lynch 🧉 069deccf8f Merged PR 779367: Replace usages of mseng-buildcache PAT with System.AccessToken
Removes all usages of PAT-TseBuild-AzureDevOps-mseng-buildcache
2024-04-12 23:10:15 +00:00
Michael Pysson 0d1b8065d8 Merged PR 779347: Delete reference to BlobL3 connection string
This should no longer be used in favor of managed identity auth
2024-04-12 23:03:57 +00:00
Marcelo Lynch 🧉 2edee1de16 Merged PR 779366: Remove old YML spec for public validation
We are now using the `external_pr.yml` file for this validation
2024-04-12 23:03:07 +00:00
Marcelo Lynch 🧉 ab3661fdcf Merged PR 777645: Minor fixes in Public PR validation
Minor fixes in Public PR validation
2024-04-12 22:25:33 +00:00
Oleksii Kononenko 30a07bbb3a Merged PR 778634: Add a marker file to incomplete drops
Artifacts' infra only allows two states for drops - finalized and non-finalized. To avoid having too many unfinished drops, we make sure that finalize command is run for all drops made by BuildXL. So, even if a build failed and some content was missing from the drop, we would still finalize it. This means that a consumer cannot tell if a drop is complete or not by just looking at the drop content and/or its metadata. Some builds (like Cosine) depend on drops made by other builds, i.e., they need to know if a specific drop is good to use. Before this PR, users solved this problem by forcing build manifest creation and checking its status (the manifest is only created for complete drops). Manifest creation is somewhat flaky (because of signing service being flaky), so this workaround resulted in them having fewer successful builds.

This PR makes DropD add a special marker file to incomplete drops that consumers can check. If such a file cannot be added, as a backup signal, DropD will leave the drop in a non-finalized state.

Related work items: #2167925
2024-04-12 21:23:19 +00:00
Sahiti Chandramouli 3a89c6a5ff Merged PR 779326: Correct the invalid statsprf.json
Correct the invalid statsprf.json

Before:
{"duration": "27,368", "pip": "PipFCB39B7747A692B7, <IPC>, working, TEST, {}, **moniker id "FCB39B7747A692B2"**, config {\"MaxConnectRetries\": 20, \"ConnectRetryDelay\": 3000}, => dropd-addartifacts-stdout.txt", "details": "" }]}]}]}]}]}

After:
![Screenshot (13).png](https://dev.azure.com/mseng/9ed2c125-1cd5-4a17-886b-9d267f3a5fab/_apis/git/repositories/50d331c7-ea65-45eb-833f-0303c6c2387e/pullRequests/779326/attachments/Screenshot%20%2813%29.png)

Related work items: #2137283
2024-04-12 20:48:41 +00:00
CloudDev Build Account 85349e331a New LKG 0.1.0-20240411.2
[skip ci]
2024-04-12 20:02:29 +00:00
Oleksii Kononenko 993872d960 Merged PR 778582: Update .net runtimes and packages
Update .net runtimes
2024-04-12 06:57:48 +00:00
Iman Narasamdya a7b0f06fc4 Merged PR 779127: Upgrade MS Azure storage common package
Related work items: #2167926
2024-04-11 23:40:08 +00:00
Iman Narasamdya 17e9c0ee14 Merged PR 778622: Upgrade artifacts and ADO packages
Upgrade artifacts and ADO packages to allow redaction of JWTs in QTest log streams

Related work items: #2167926
2024-04-10 01:29:58 +00:00
Iman Narasamdya 74ce9fe119 Merged PR 778080: Fix perf smell message for uncachable pips
Fix perf smell message for uncachable pips
2024-04-10 01:16:41 +00:00
Pasindu Gunasekara 🍣 12e39eb417 Merged PR 775908: Refactor ptrace sandbox to use new CreateAndReportAccess functions in BxlObserver
- Uses the new SandboxEvent type
- Adds path normalization to the BxlObserver path resolution function.
2024-04-09 23:23:37 +00:00
Pasindu Gunasekara 🍣 c22df9a9ec Merged PR 778558: Run internal unit tests with internal flag 2024-04-09 21:47:25 +00:00
Ben Witman 89d69901e6 Merged PR 773297: DumpPip Analyzer /includeStaticMembers flag
Update the DumpPip Analyzer to have the `/includeStaticMembers` option to enumerate statically known sealed directory members.  This is usefully when trying to figure out what files a process PIP depends on from other PIPs that produce those files. In addition the kind for each directory dependency is now included in the output.
2024-04-09 17:28:32 +00:00
Sahiti Chandramouli 454f794d84 Merged PR 778346: Avoid the publishing of the extracted packages for BinSkim
Extracting the packages to a subfolderof the parent directory of release/public for Binskim. This is done to avoid the publishing of these extracted packages.
2024-04-09 16:37:23 +00:00
Pratik Lade e746196085 Merged PR 778352: Update QTest Nuget To Avoid Circuit Breaker Exception Retries 2024-04-09 01:46:00 +00:00
Marcelo Lynch 🧉 fa376d9466 Merged PR 778334: Initialize BxlObserver in PTraceRunner
Without this, all messages are reported as "happening before initialization". Luckily we are not ignoring those reports so the behavior should still be "correct", but it should be an issue when matching the reports, if we ever do it

Related work items: #2167608
2024-04-09 00:25:15 +00:00
TSEBuild 3efed76174 Merge pull request 778190 from dev/BuildXL/updatepackages-2024-04-08T16-09-49 into main 2024-04-08 18:57:44 +00:00
TSEBuild 5c0a8f9c96 Merge pull request 778189 from dev/BuildXL/updatenotice-2024-04-08T16-06-43 into main 2024-04-08 16:29:29 +00:00
CloudDev Build Account 5a6ed041a0 New LKG 0.1.0-20240405.5
[skip ci]
2024-04-07 22:34:59 +00:00
Iman Narasamdya a41f02a4d7 Merged PR 778061: Retry Process exited with Azure Watson 0xDEAD in ADO
This PR makes BuildXL retry process pips that exit with 0xDEAD exit code when running in ADO. This can make our PR/rolling pipelines reliable.

Related work items: #2167066
2024-04-06 21:12:42 +00:00
Sahiti Chandramouli 5d930b37e9 Merged PR 777555: Adding a script to the external phase of the rolling pipeline to extract .nupkg packages for BinSkim scan
Adding this script in the external stage of the pipeline to extarct the .nupkg files from the Bin/Release folder. Need to do this since BInSkim only supports .dll or .exe formats and fails to detect nupkg files .

Tested this in this pipeline.
 Look for buildxl-external.pkgs.0.1.0-20240403.1
 The .nupkg packages are converted to .zip format and then extracted to extractedPackages folder within the same directory.
 Doing this avoids BinSkim from scanning the whole of the Out folder for binaries(.dll and .exe).
 https://dev.azure.com/mseng/Domino/_build/results?buildId=27610984&view=artifacts&pathAsName=false&type=publishedArtifacts

Related work items: #2166618
2024-04-06 00:01:57 +00:00
Oleksii Kononenko 46441c20b7 Merged PR 778022: Fix IpcResultStatus to grpc status converstion
Fix IpcResultStatus to grpc status converstion

Related work items: #2157478
2024-04-05 23:34:14 +00:00
Michael Pysson 2055168b52 Merged PR 777896: Disable server mode by default in AzureDevOps
Disable server mode by default in AzureDevOps
2024-04-05 21:41:33 +00:00
Sahiti Chandramouli 4e8d4b92da Merged PR 777779: Use latest rocksdb fix for Binskim violations resolution
Pull in the fixed rocksdb version, which has the CFG compiler and linker flags.

Corresponding Rocksdb PR - https://dev.azure.com/mseng/Domino/_build/results?buildId=27620175&view=results
2024-04-05 19:13:57 +00:00
Serge Mera 648916311d Merged PR 777657: Fix language linting for the cases of .bc and .bl files
Make sure the case of additional configuration files with .bc/.bl extensions work as expected.
2024-04-04 21:08:35 +00:00
Iman Narasamdya 00c0d75d79 Merged PR 777640: Ensure pip validity check requiring graph happens in graph builder
Some pip validity check that requires graph happens in process builder. The problem is process builder is not required to have a graph. So, for such a check, the check should happen in pip graph builder instead; and this PR is about that.

And now, "Trusting statically declared accesses is not compatible with declaring opaque or source sealed directories" will have a proper error message.

Related work items: #2166157
2024-04-04 20:56:41 +00:00
Marcelo Lynch 🧉 f76e0aded2 Merged PR 777594: Replace RunBxlWithPAT for reusable script in .azdo that uses task.setvariable instead of modifying the environment
The variables persist beyond the scope of the single task. This is useful to run RunBxlWithPAT in a pre-build task and then have the build task be exposed to these variables.

This change looks like a net negative on the surface (why replace a single script with two separate pieces?) but we need it to migrate the pipelines to 1ESPT using the BuildXL workflow, which will call BuildXL outside of any wrapping script
2024-04-04 19:57:46 +00:00
Iman Narasamdya 52093c3103 Merged PR 777416: Avoid auto flush std input when setting up pipes for detoured processes
When setting up a StreamWriter for stdin in detoured process, the writer is set to auto flush. StreamWriter immediately does a write operation to the pipe (although the data is empty). However, when the pipe is closed (or is being closed), the write operation would fail and throw an exception. This can happen if the detoured process does not need any standard input, and the process terminates quickly before this pipe setup is completed.

It was not an issue before .NET 8 because when writing to a FileStream that represented a closed or disconnected pipe, the underlying operating system
error was ignored and the write was reported as successful. However, nothing was written to the pipe. Starting in .NET 8, when writing to a FileStream whose
underlying pipe is closed or disconnected, the write fails and an IOException is thrown.

See breaking changes in .NET 8: https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/8.0/filestream-disposed-pipe

Related work items: #2166469
2024-04-04 19:31:47 +00:00
Marcelo Lynch 🧉 538cd8a459 Merged PR 777361: Let bxl.ps1 produce a response file with the command line instead of running BuildXL 2024-04-04 19:16:14 +00:00
Semih Okur 8e152809b3 Merged PR 776481: Make InternalWarning store multiple warnings
Make InternalWarning store multiple warnings
2024-04-04 18:56:16 +00:00
Serge Mera ea1de7de7b Merged PR 777438: Make sure reports to the FIFO path get ignored
When ptrace is started there is a small overlap with the still existing interpose sandbox that makes ptrace observe some of what the interpose sandbox is doing. This is usually harmless, but this could involve interacting with the FIFO path when sending reports. This results in the FIFO path potentially becoming part of the pip fingerprint, and when bxl tries to hash it, we crash (since the FIFO file is not a real file).

Make sure we ignore these reports. The race is hard to avoid, and turning off interposing is not easily achievable either. Turning off reporting also has some undesirable side effects, like disabling debug logging on that part of the codebase (when this happens, is hard to understand why).

This PR ignores this report on managed side, so we don't slow down the process doing path comparisons. We also move some other path comparison logic (previously done on native side), to managed side as well.

Related work items: #2165745
2024-04-04 17:59:55 +00:00
Sahiti Chandramouli 262b80cefe Merged PR 777271: Modify compiler and linker settings to resolve violations
Added CETCOMPAT flag to the linker and enabled useSha256ForChecksum for the compiler to resolve the binskim violations

Related work items: #2166344
2024-04-04 16:32:47 +00:00