Merged PR 802091: Remove extraneous error & warnings from rolling build

The RunCheckinTests part of rolling build validation simulates some worker disconnect scenarions which generate warnings and an error. This change removed those expected errors from showing up and cluttering the Azure DevOps console.
This commit is contained in:
Michael Pysson 2024-08-27 23:28:46 +00:00
Родитель c0c03d7a08
Коммит 1e0d920b87
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -49,7 +49,8 @@ set OUTPUT_FILENAME_FOR_REPLICATION=replicateMe.txt
@REM - DX2200: Failed to clean temp directory. Reason: unable to enumerate the directory or a descendant directory to verify that it has been emptied.
REM /p:BuildXLDistribConnectTimeoutSec=1 and /p:BuildXLDistribInactiveTimeoutMin=1 reduce the timeouts to avoid having a long running (failure) tests. These specifically set the connection error and inactivity timeouts for any failing distributed worker.
REM /masterCpuMultiplier:0 will force process pips to executed only on the workers.
set BUILDXL_COMMON_ARGS=/p:BuildXLMinStepDurationSecForTracer=1 /masterCpuMultiplier:0 /logStatus+ /p:BuildXLDistribConnectTimeoutSec=1 /p:BuildXLDistribInactiveTimeoutMin=1 /numRetryFailedPipsOnAnotherWorker:2 /server- /remoteTelemetry- /enableAsyncLogging /nowarn:2841 /nowarn:2200 /p:OfficeDropTestEnableDrop=True /f:~(tag='exclude-drop-file'ortag='dropd-finalize') "/storageRoot:{objectRoot}:\ " "/config:{sourceRoot}:\config.dsc" "/cacheConfigFilePath:%SMDB.CACHE_CONFIG_OUTPUT_PATH%" "/rootMap:{sourceRoot}=%TEST_SOLUTION_ROOT%" "/rootMap:{objectRoot}=%TEST_SOLUTION_ROOT%\Out\M{machineNumber}" "/cacheDirectory:{objectRoot}:\Cache" /logObservedFileAccesses /substTarget:{objectRoot}:\ /substSource:%TEST_SOLUTION_ROOT%\Out\M{machineNumber}\ /logsDirectory:{objectRoot}:\Logs /disableProcessRetryOnResourceExhaustion+ "/translateDirectory:%TEST_SOLUTION_ROOT%<{sourceRoot}:\\" /inputChanges:%TEST_SOLUTION_ROOT%\Src\ChangeAffectedInputTest\sourceChange.txt
REM Add /ado- so expected warnings and errors do not clutter the Azure DevOps console
set BUILDXL_COMMON_ARGS=/p:BuildXLMinStepDurationSecForTracer=1 /masterCpuMultiplier:0 /logStatus+ /p:BuildXLDistribConnectTimeoutSec=1 /p:BuildXLDistribInactiveTimeoutMin=1 /numRetryFailedPipsOnAnotherWorker:2 /server- /remoteTelemetry- /ado- /enableAsyncLogging /nowarn:2841 /nowarn:2200 /p:OfficeDropTestEnableDrop=True /f:~(tag='exclude-drop-file'ortag='dropd-finalize') "/storageRoot:{objectRoot}:\ " "/config:{sourceRoot}:\config.dsc" "/cacheConfigFilePath:%SMDB.CACHE_CONFIG_OUTPUT_PATH%" "/rootMap:{sourceRoot}=%TEST_SOLUTION_ROOT%" "/rootMap:{objectRoot}=%TEST_SOLUTION_ROOT%\Out\M{machineNumber}" "/cacheDirectory:{objectRoot}:\Cache" /logObservedFileAccesses /substTarget:{objectRoot}:\ /substSource:%TEST_SOLUTION_ROOT%\Out\M{machineNumber}\ /logsDirectory:{objectRoot}:\Logs /disableProcessRetryOnResourceExhaustion+ "/translateDirectory:%TEST_SOLUTION_ROOT%<{sourceRoot}:\\" /inputChanges:%TEST_SOLUTION_ROOT%\Src\ChangeAffectedInputTest\sourceChange.txt
REM Skip the whole test if %DISABLE_DBD_TESTRUN% is defined.
if DEFINED DISABLE_DBD_TESTRUN goto END
@ -102,7 +103,8 @@ if DEFINED DISABLE_DBD_OUTPUT_REPLICATION_TESTRUN goto END
set "IGNORE_ERROR_MESSAGES="
set "IGNORE_WORKER_RESULTS="
set BUILDXL_MASTER_ARGS=/replicateOutputsToWorkers %BUILDXL_MASTER_ARGS%
set BUILDXL_COMMON_ARGS=/server- /remoteTelemetry- /enableAsyncLogging /nowarn:2841 /nowarn:2200 /f:module='DistributedIntegrationTests.OutputReplicationTest' /p:[Test]FailOutputReplicationTest=1 "/storageRoot:{objectRoot}:\ " "/config:{sourceRoot}:\config.dsc" "/cacheConfigFilePath:%SMDB.CACHE_CONFIG_OUTPUT_PATH%" "/rootMap:{sourceRoot}=%TEST_SOLUTION_ROOT%" "/rootMap:{objectRoot}=%TEST_SOLUTION_ROOT%\Out\M{machineNumber}" "/cacheDirectory:{objectRoot}:\Cache" /logObservedFileAccesses /substTarget:{objectRoot}:\ /substSource:%TEST_SOLUTION_ROOT%\Out\M{machineNumber}\ /logsDirectory:{objectRoot}:\Logs /disableProcessRetryOnResourceExhaustion+ "/translateDirectory:%TEST_SOLUTION_ROOT%<{sourceRoot}:\\"
REM Add /ado- so expected warnings and errors do not clutter the Azure DevOps console
set BUILDXL_COMMON_ARGS=/server- /remoteTelemetry- /ado- /enableAsyncLogging /nowarn:2841 /nowarn:2200 /f:module='DistributedIntegrationTests.OutputReplicationTest' /p:[Test]FailOutputReplicationTest=1 "/storageRoot:{objectRoot}:\ " "/config:{sourceRoot}:\config.dsc" "/cacheConfigFilePath:%SMDB.CACHE_CONFIG_OUTPUT_PATH%" "/rootMap:{sourceRoot}=%TEST_SOLUTION_ROOT%" "/rootMap:{objectRoot}=%TEST_SOLUTION_ROOT%\Out\M{machineNumber}" "/cacheDirectory:{objectRoot}:\Cache" /logObservedFileAccesses /substTarget:{objectRoot}:\ /substSource:%TEST_SOLUTION_ROOT%\Out\M{machineNumber}\ /logsDirectory:{objectRoot}:\Logs /disableProcessRetryOnResourceExhaustion+ "/translateDirectory:%TEST_SOLUTION_ROOT%<{sourceRoot}:\\"
%BUILDXL_TEST_BIN_DIRECTORY%\DistributedBuildRunner.exe 2 %*
if %ERRORLEVEL% EQU 0 (