Skip to content

Commit a0b6048

Browse files
authored
Revert "[Merge-on-Red] - Implement Test Process Watcher (#78742)"
This reverts commit 728fd85.
1 parent a78f9bd commit a0b6048

File tree

6 files changed

+9
-186
lines changed

6 files changed

+9
-186
lines changed

src/coreclr/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,6 @@ else()
119119
endif()
120120
endif()
121121

122-
#----------------------------------------------------
123-
# Build the test watchdog alongside the CLR
124-
#----------------------------------------------------
125-
add_subdirectory("${CLR_SRC_NATIVE_DIR}/watchdog" test-watchdog)
126-
127122
# Add this subdir. We install the headers for the jit.
128123
add_subdirectory(pal/prebuilt/inc)
129124

@@ -280,4 +275,3 @@ endif(NOT CLR_CMAKE_HOST_MACCATALYST AND NOT CLR_CMAKE_HOST_IOS AND NOT CLR_CMAK
280275
if(CLR_CROSS_COMPONENTS_BUILD)
281276
include(crosscomponents.cmake)
282277
endif(CLR_CROSS_COMPONENTS_BUILD)
283-

src/native/watchdog/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/native/watchdog/watchdog.cpp

Lines changed: 0 additions & 136 deletions
This file was deleted.

src/tests/Common/CLRTest.Execute.Bash.targets

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,12 @@ fi
187187
<Command><![CDATA[ export __DotEnv="${i#*=}"
188188
if [ ! -f "$__DotEnv" ]
189189
then
190-
echo "The dotenv file FullPath %5C%22${__DotEnv}%5C%22 does not exist"
190+
echo "The Debugger FullPath %5C%22${__DotEnv}%5C%22 does not exist"
191191
usage
192192
fi
193193
export __DotEnvArg=-e ${__DotEnv}]]></Command>
194194
<Description>A dotenv file to pass to corerun to set environment variables for the test run.</Description>
195195
</BashCLRTestExecutionScriptArgument>
196-
197-
<BashCLRTestExecutionScriptArgument Include="usewatcher">
198-
<HasParam>false</HasParam>
199-
<Command><![CDATA[ _RunWithWatcher=1]]></Command>
200-
<Description>Run the tests using the test watcher.</Description>
201-
</BashCLRTestExecutionScriptArgument>
202196
</ItemGroup>
203197

204198
<PropertyGroup>
@@ -256,11 +250,10 @@ then
256250
exit 1
257251
fi
258252
259-
# Copy CORECLR native binaries and the test watcher to $LinkBin,
253+
# Copy CORECLR native binaries to $LinkBin,
260254
# so that we can run the test based on that directory
261255
cp $CORE_ROOT/*.so $LinkBin/
262256
cp $CORE_ROOT/corerun $LinkBin/
263-
cp $CORE_ROOT/watchdog $LinkBin/
264257
265258
# Copy some files that may be arguments
266259
for f in *.txt;
@@ -290,7 +283,6 @@ fi
290283
</PropertyGroup>
291284
<PropertyGroup>
292285
<CLRTestRunFile Condition="'$(CLRTestIsHosted)'=='true'">"$CORE_ROOT/corerun" $(CoreRunArgs) ${__DotEnvArg}</CLRTestRunFile>
293-
<WatcherRunFile>"$CORE_ROOT/watchdog" 300</WatcherRunFile>
294286

295287
<!-- Note that this overwrites CLRTestBashPreCommands rather than adding to it. -->
296288
<CLRTestBashPreCommands Condition="'$(CLRTestKind)' == 'BuildAndRun' and '$(TargetArchitecture)' == 'wasm'"><![CDATA[
@@ -326,9 +318,6 @@ fi
326318
if [ ! -z "$CLRCustomTestLauncher" ];
327319
then
328320
LAUNCHER="$CLRCustomTestLauncher $PWD/"
329-
elif [ "$_RunWithWatcher" == 1 ];
330-
then
331-
LAUNCHER="$(WatcherRunFile) $(CLRTestRunFile)"
332321
else
333322
LAUNCHER="$_DebuggerFullPath $_DebuggerArgsSeparator $(CLRTestRunFile)"
334323
fi
@@ -357,11 +346,8 @@ $(BashLinkerTestLaunchCmds)
357346
if [ ! -z "$CLRCustomTestLauncher" ];
358347
then
359348
LAUNCHER="$CLRCustomTestLauncher $PWD/"
360-
elif [ "$_RunWithWatcher" == 1 ];
361-
then
362-
LAUNCHER="$(WatcherRunFile) $(CLRTestRunFile)"
363349
else
364-
LAUNCHER="$_DebuggerFullPath $_DebuggerArgsSeparator $(CLRTestRunFile)"
350+
LAUNCHER="$_DebuggerFullPath $(CLRTestRunFile)"
365351
fi
366352
367353
$(BashIlrtTestLaunchCmds)
@@ -498,7 +484,7 @@ usage()
498484
for i in "$@"
499485
do
500486
case $i in
501-
-?|-h|--help|/?|/h|/help)
487+
-?|-h|--help)
502488
usage
503489
%3B%3B
504490
@(BashCLRTestExecutionScriptArgument -> ' -%(Identity)%(ParamText)|/%(Identity)%(ParamText))
@@ -548,7 +534,6 @@ ReleaseLock()
548534
}
549535
cd "$%28dirname "${BASH_SOURCE[0]}")"
550536
LockFile="lock"
551-
_RunWithWatcher=0
552537
553538
554539
# The __TestEnv variable may be used to specify a script to source before the test.

src/tests/Common/CLRTest.Execute.Batch.targets

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,6 @@ Exit /b 0
216216
]]></Command>
217217
<Description>Set CORE_ROOT to the specified value before running the test.</Description>
218218
</BatchCLRTestExecutionScriptArgument>
219-
220-
<BatchCLRTestExecutionScriptArgument Include="usewatcher">
221-
<HasParam>false</HasParam>
222-
<Command><![CDATA[
223-
set /A _RunWithWatcher=1
224-
]]></Command>
225-
<Description>Run the tests using the test watcher.</Description>
226-
</BatchCLRTestExecutionScriptArgument>
227219
</ItemGroup>
228220

229221
<PropertyGroup>
@@ -268,18 +260,17 @@ IF defined DoLink (
268260
Exit /b 1
269261
)
270262
271-
REM Copy CORECLR native binaries and the test watcher to %LinkBin%, so that we can run the test based on that directory
263+
REM Copy CORECLR native binaries to %LinkBin%, so that we can run the test based on that directory
272264
copy %CORE_ROOT%\clrjit.dll %LinkBin% > nul 2> nul
273265
copy %CORE_ROOT%\coreclr.dll %LinkBin% > nul 2> nul
274266
copy %CORE_ROOT%\mscorrc.dll %LinkBin% > nul 2> nul
275267
copy %CORE_ROOT%\CoreRun.exe %LinkBin% > nul 2> nul
276-
copy %CORE_ROOT%\watchdog.exe %LinkBin% > nul 2> nul
277268
278269
REM Copy some files that may be arguments
279270
copy *.txt %LinkBin% > nul 2> nul
280271
281272
set ExePath=%LinkBin%\$(InputAssemblyName)
282-
set CORE_ROOT=%scriptPath%\%LinkBin%
273+
set CORE_ROOT=%scriptPath%LinkBin%
283274
)
284275
]]>
285276
</BatchLinkerTestLaunchCmds>
@@ -298,8 +289,6 @@ if defined DoLink (
298289
</PropertyGroup>
299290
<PropertyGroup>
300291
<CLRTestRunFile Condition="'$(CLRTestIsHosted)'=='true'">"%CORE_ROOT%\corerun.exe" $(CoreRunArgs) %__DotEnvArg%</CLRTestRunFile>
301-
<WatcherRunFile>"%CORE_ROOT%\watchdog.exe" 300</WatcherRunFile>
302-
303292
<BatchCopyCoreShimLocalCmds Condition="'$(CLRTestScriptLocalCoreShim)' == 'true'"><![CDATA[
304293
REM Local CoreShim requested - see MSBuild property 'CLRTestScriptLocalCoreShim'
305294
ECHO Copying '%CORE_ROOT%\CoreShim.dll'...
@@ -312,8 +301,6 @@ $(BatchCopyCoreShimLocalCmds)
312301
313302
IF NOT "%CLRCustomTestLauncher%"=="" (
314303
set LAUNCHER=call %CLRCustomTestLauncher% %scriptPath%
315-
) ELSE IF %_RunWithWatcher% EQU 1 (
316-
set LAUNCHER=$(WatcherRunFile) $(CLRTestRunFile)
317304
) ELSE (
318305
set LAUNCHER=%_DebuggerFullPath% $(CLRTestRunFile)
319306
)
@@ -438,7 +425,6 @@ setlocal ENABLEDELAYEDEXPANSION
438425
set "lockFolder=%~dp0\lock"
439426
pushd %~dp0
440427
set "scriptPath=%~dp0"
441-
set /A _RunWithWatcher=0
442428
443429
$(BatchCLRTestArgPrep)
444430
$(BatchCLRTestExitCodePrep)

src/tests/Common/helixpublishwitharcade.proj

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@
411411
<HelixCommandLines Condition="'$(TestWrapperTargetsWindows)' != 'true'" Include="export TEST_HARNESS_STRIPE_TO_EXECUTE=.0.1" />
412412
<HelixCommandLines Condition="'$(TestWrapperTargetsWindows)' != 'true'" Include="chmod +x $(_MergedWrapperRunScriptRelative)" />
413413
<!-- Force assemblies to lazy-load for LLVM AOT test runs to enable using tests that fail at AOT time (and as a result can't be AOTd) -->
414-
<HelixCommandLines Condition="'$(RuntimeVariant)' == 'llvmfullaot'" Include="$(_MergedWrapperRunScriptPrefix)$(_MergedWrapperRunScriptRelative) -usewatcher --aot-lazy-assembly-load" />
415-
<HelixCommandLines Condition="'$(RuntimeVariant)' != 'llvmfullaot'" Include="$(_MergedWrapperRunScriptPrefix)$(_MergedWrapperRunScriptRelative) -usewatcher" />
414+
<HelixCommandLines Condition="'$(RuntimeVariant)' == 'llvmfullaot'" Include="$(_MergedWrapperRunScriptPrefix)$(_MergedWrapperRunScriptRelative) --aot-lazy-assembly-load" />
415+
<HelixCommandLines Condition="'$(RuntimeVariant)' != 'llvmfullaot'" Include="$(_MergedWrapperRunScriptPrefix)$(_MergedWrapperRunScriptRelative)" />
416416
<HelixCommandLines Include="$(XUnitLogCheckerCommand)" />
417417
</ItemGroup>
418418

@@ -722,9 +722,7 @@
722722

723723
<ItemGroup Condition=" '$(UsesHelixSdk)' == 'true' ">
724724
<HelixCorrelationPayload Include="$(CoreRootDirectory)" />
725-
726-
<!-- Browser-Wasm follows a very different workflow, which is currently out of scope of the Log Checker. -->
727-
<HelixCorrelationPayload Include="$(XUnitLogCheckerDirectory)" Condition="'$(TargetsBrowser)' != 'true'" />
725+
<HelixCorrelationPayload Include="$(XUnitLogCheckerDirectory)" />
728726

729727
<LegacyPayloads Include="$([System.IO.Directory]::GetDirectories($(LegacyPayloadsRootDirectory)))" Condition="Exists('$(LegacyPayloadsRootDirectory)')" />
730728
<LegacyPayloads Update="@(LegacyPayloads)">

0 commit comments

Comments
 (0)