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

905 Коммитов

Автор SHA1 Сообщение Дата
Iman Narasamdya 9ae347e917 Enable self-host build on K drive in CB (#1183)
- Provide accurate info when checking journal availability
- Adding directory translation into engine tests to fix rough behavior of some unit tests that tries to access final paths.
2019-11-14 08:35:42 -08:00
Michael Pysson 84dc115b3c Cap number of UnexpectedCondition events sent to telemetry (#1195) 2019-11-13 15:30:21 -08:00
breidikl 34dcbe200b
Implement additional retry telemetry and custom pip property telemetry (#1160)
* Implement additional retry telemetry and custom pip property telemetry

Fixes AB#1612096
2019-11-07 14:41:26 -08:00
Aleksandar Milicevic 40b47bc2f8
[XlgDebugger] parallel map and filter evaluation (#1174)
* parallel map and filter evaluation
* Add 'Elems' to `uniq -c` result
* add -o for grep
* unit tests
* update documentation
2019-11-07 10:42:32 -08:00
Aleksandar Milicevic d45bc88b21
Handle IOException when reading sideband files (#1178) 2019-11-07 10:33:35 -08:00
Kristijan Šimić 5484c6296f
Fix FileStream copy loosing file ACLs on Unix (#1177) 2019-11-07 18:13:50 +01:00
Iman Narasamdya 5cdc28a94f
Add telemetry (for more info) and unit test (for exercising) about underbuild (#1167) 2019-11-06 20:10:23 -08:00
Aleksandar Milicevic 99c8c5f822
[kext] Dynamically disable caching for pips with low cache hit rate (#1171)
Caching is automatically disabled for pips when the following condition is met
  - number of cache entries is above a threshold (defaults to 20000, controlled by the `bxl_disable_cache_min_entries` sysctl knob), AND
  - cache hit rate is below a threshold (defaults to 20%, controlled by the `bxl_disable_cache_max_hit_pct` sysctl knob)
2019-11-06 19:25:16 -08:00
Pratik Lade f307ec4137
QTest: Add support for Dotnet core 3.0 (#1173)
* QTest: Add support for Dotnet core 3.0
2019-11-06 14:42:05 -08:00
Huihui Nora Huang 9b05b14a3b
Fix GRPC distribution of source affected inputs issue (#1170) 2019-11-06 13:17:54 -08:00
Lance Collins dda2dd0b33
Use POSIX delete for casaas to ensure that files are deleted properly even if there are open handles (with FileShare.Delete). (#1104)
* Use POSIX delete for casaas to ensure that files are deleted properly even if there are open handles (with FileShare.Delete).

* Run deletion tests only on Windows.

* Some additional logging for tracking content churn and statistics about content size distribution.

* More stats.

* Put files in temp dir to avoid disallowed file access.

* PR feedback.

* Fix GRPC copy bandwidth check to respect cancellation token.

* Add comment.

* Disable skip restore by default.

* Make default off for skip restore explicit.

* Handle slow tests.

* Disable test.

* Revert test parallelization.
2019-11-06 10:46:27 -07:00
Sergey Teplyakov 95d968e2a8
Propagate caller name in CreateNestedContext (#1168) 2019-11-05 15:21:50 -08:00
Julián Bayardo a2f38ce59c
Fix race condition in ContentLocationDatabase (#1163) 2019-11-05 12:03:11 -08:00
Sergey Teplyakov 345cfcb50c
Fix race condition in QuotaKeeper (#1161)
* Fix race condition in QuotaKeeper

* Make _purgeTask not nullable
2019-11-05 11:21:12 -08:00
Sergey Teplyakov 06c5d5e31d
Remove the assertion that cause contract violation on master (#1166)
* Remove the assertion that cause contract violation on master

* Flush during content enumeration
2019-11-05 11:20:10 -08:00
Huihui Nora Huang cf8943a2a6
Comment the autoFixLkgs (#1164) 2019-11-05 09:03:42 -08:00
Michael Pysson fab76d17fa
Free EvaluationStackFrame after evaluation is finished to conserve memory (#1165) 2019-11-05 08:51:37 -08:00
Semih Okur cea9ecd2da
Add info to contract assertion when retrieving the process id list (#1154) 2019-11-05 00:52:06 -08:00
Aleksandar Milicevic 7ddd2fe640
Report pip kext stats to BuildXL (#1153)
Pip stats are reported from the sandbox kext to BuildXL as part of the ProcessTreeCompleted message; the unused char[1024] Path field is used to store those stats.

The stats are:

    uint32_t lastPathLookupElemCount;
    uint32_t lastPathLookupNodeCount;
    uint32_t lastPathLookupNodeSize;
    uint32_t numCacheHits;
    uint32_t numCacheMisses;
    uint32_t cacheRecordCount;
    uint32_t cacheRecordSize;
    uint32_t cacheNodeCount;
    uint32_t cacheNodeSize;
    uint32_t numForks;
    uint32_t numHardLinkRetries;

The stats are logged by BuildXL. In the future, they could be used to have a more accurate estimate of memory requirements for each pip.
2019-11-04 18:02:32 -08:00
Huihui Nora Huang a0c4bc250a
Make the default value of RequireGlobalDependencies constant. (#1110)
* Make the default value of RequireGlobalDependencies constant.
2019-11-04 17:53:53 -08:00
Iman Narasamdya 63cd9bbf47
Deprecating graph inagnostic incremental scheduling (#1148) 2019-11-04 16:11:41 -08:00
Julián Bayardo 5da000b0b5 Don't flush if the in-memory cache is disabled (#1156) 2019-11-04 15:51:13 -08:00
Kristijan Šimić f9a68bc1f6
Disable System.GC.* features for Unix builds (#1152)
* Disable System.GC.Server and System.GC.RetainVM in Unix builds
2019-11-05 00:40:55 +01:00
Rijul Luman 9d075bc502
Removed generate cgmanifest flag from checkInTests (#1145)
* Ignore cgmanifets generate when validate present for same path
2019-11-04 11:08:38 -08:00
Kristijan Šimić 5806bd7f87
Use vm pressure events only to decide if pips should be canceled (#1151) 2019-11-04 18:07:29 +01:00
Aleksandar Milicevic 5ed8e924fd
Count all IONew allocations and report them to SandboxMonitor (#1150) 2019-11-03 10:58:51 -08:00
Aleksandar Milicevic da7cfd227b [Execution Analyzer] Don't crash on invalid XLG format (#1147) 2019-11-02 14:11:05 +01:00
Iman Narasamdya ac21fa200c
Check file existence before moving or copying corrupted file to avoid unnecessary warning (#1149) 2019-11-01 23:59:44 -07:00
Semih Okur b11a660bea
Add new default arguments for CloudBuild (#1118) 2019-11-01 23:20:27 -07:00
Iman Narasamdya 0a5e8c11c5
Failure in making outputs private should not fail builds (#1138)
When making output directory private, instead of failing the build, we default to the normal behavior where we wipe out the directory. This is consistent with the treatment of preserved output file.

We also include the error code in the exception and log message when move-file failed.
2019-11-01 18:10:16 -07:00
olkononenko e432aaf285
Prevent crashes caused by FP store logging (#1143) 2019-11-01 16:39:18 -07:00
Michael Pysson b89b41672e
Remove unused CacheMemoryUsage flag (#1142) 2019-11-01 15:29:04 -07:00
Michael Pysson 62b3e43d82
Remove internal DHelp link and simplify help argument parsing (#1112) 2019-11-01 13:21:04 -07:00
Rijul Luman 10ebed2f11
Nuget Credential Provider improvements (#1136)
* Improved readme for nuget credential provider
* Removed unused log
2019-11-01 10:38:57 -07:00
Aleksandar Milicevic b379c09af7
Move xlg debugger docs to root wiki (#1140)
Sign kext as well
2019-11-01 09:42:14 -07:00
Kristijan Šimić 31b82875ce
Make the ProcessRunScriptAnalyzer x-plat compatible (#1073)
* Make the ProcessRunScriptAnalyzer x-plat and fix some macOS unit test failures
2019-11-01 15:52:07 +01:00
Aleksandar Milicevic e359675fa2 Use a single lock per trie (instead of per node) (#1139)
* Use a single lock per trie (instead of per node)
2019-11-01 09:00:10 +01:00
Aleksandar Milicevic 4acfc472d6
Documentation for the XLG Debugger (#1135) 2019-10-31 20:03:45 -07:00
Iman Narasamdya 807b5116e3
Adding pip output without producer logs error instead of contract violation (#1124)
The introduction of binary graph makes it possible to have this when deserializing binary graphs from files.
2019-10-31 11:52:16 -07:00
Iman Narasamdya 68ea765e97
Check if engine perf info is null before constructing perf tree (#1131) 2019-10-31 11:46:35 -07:00
Kristijan Šimić a393012d6a
Fix child process mask forwarding and bump interop lib (#1126) 2019-10-31 19:17:56 +01:00
Kristijan Šimić 6193a48bab
Address recent OverflowException occurrences (#1133)
* Handle potential places we saw OverflowExceptions happen in recent crash reports
2019-10-31 19:13:17 +01:00
Kristijan Šimić 0610d3d664
[macOS] Fix flaky process timeout tests (#1134)
* Speed up sandbox report queue tests to avoid test timeouts + race conditions (macOS)
2019-10-31 19:11:33 +01:00
Iman Narasamdya 0db9a1bb35
Update used Net compiler in engine tests (#1129) 2019-10-30 17:59:14 -07:00
Kevin Bazan Williams eaf6982007
Always delete temporary file after copying (#1114)
* Always delete temporary file after copying

* Pass whether the put was already satisfied to PutResult

* +PR comments

* +PR comments

* Fix test

* Confusing test failure
2019-10-30 14:57:28 -07:00
Juan Carlos Guzmán Islas e65199fe36
Proactive copy even when blob in redis (#1101)
* Proactive copy even when blob in redis

* Fix tests

* Fix tests
2019-10-30 13:55:21 -07:00
Michael Pysson d7930cb9f0
Increase weight by unit tests that timeout under heavy concurrency (#1119)
Increase weight by unit tests that timeout under heavy concurrency
2019-10-30 13:34:03 -07:00
Aleksandar Milicevic f396b153fc
Add some metadata to sideband files (#1125)
The metadata can be used to identify the pip and its static fingerprint. This will become useful later on when lazily deleting shared opaque outputs before corresponding pips are executed.

Also rename to simpler names

 - SharedOpaqueOutputLogger -> SidebandWriter
 - SharedOpaqueSidebandFileReader -> SidebandReader
 - SharedOpaqueOutputLoggerTests -> SidebandTests
2019-10-30 13:19:08 -07:00
Rijul Luman 7311d5a1b6
Nuget Credential Provider Auth Fix (#1087)
* RunCheckInTests now accepts PAT for internal nugets
* Added source code for BuildXL.Tools.CredentialProvider
2019-10-30 11:34:42 -07:00
Lance Collins d2e485484d Change default option for skipping restore checkpoint. (#1116)
Merging without all gates so cache team can get hotfix out.
2019-10-30 09:49:40 -07:00