forked from dotnet/coreclr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-enable Standalone GC job, running daily (dotnet#15015)
* Re-enable Standalone GC job, running daily * osGroup is already defined * Fix failed assertion
- Loading branch information
1 parent
431a675
commit bd3fc01
Showing
3 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -608,7 +608,7 @@ def static addNonPRTriggers(def job, def branch, def isPR, def architecture, def | |
assert (configuration == 'Release' || configuration == 'Checked') | ||
// TODO: Add once external email sending is available again | ||
// addEmailPublisher(job, '[email protected]') | ||
Utilities.addPeriodicTrigger(job, '@weekly') | ||
Utilities.addPeriodicTrigger(job, '@daily') | ||
break | ||
case 'gc_reliability_framework': | ||
assert (os == 'Ubuntu' || os == 'Windows_NT' || os == 'OSX10.12') | ||
|
@@ -1584,12 +1584,9 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR | |
Constants.r2rJitStressScenarios.containsKey(scenario)) { | ||
buildCommands += "set __TestIntermediateDir=int&&build.cmd ${lowerConfiguration} ${arch} ${buildOpts}" | ||
} | ||
else if (isLongGc(scenario)) { | ||
else if (isLongGc(scenario) || scenario == 'standalone_gc') { | ||
buildCommands += "set __TestIntermediateDir=int&&build.cmd ${lowerConfiguration} ${arch} ${buildOpts}" | ||
} | ||
else if (scenario == 'standalone_gc') { | ||
buildCommands += "set __TestIntermediateDir=int&&build.cmd ${lowerConfiguration} ${arch} ${buildOpts} buildstandalonegc" | ||
} | ||
else if (scenario == 'formatting') { | ||
buildCommands += "python -u tests\\scripts\\format.py -c %WORKSPACE% -o Windows_NT -a ${arch}" | ||
Utilities.addArchival(newJob, "format.patch", "", true, false) | ||
|
@@ -1614,6 +1611,7 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR | |
def illinkArguments = '' | ||
def testEnvStr = '' | ||
def runtestArguments = '' | ||
def standaloneGcStr = '' | ||
|
||
if (scenario == 'r2r' || | ||
scenario == 'r2r_gcstress15' || | ||
|
@@ -1672,6 +1670,9 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR | |
else if (isLongGc(scenario)) { | ||
gcTestArguments = "${scenario} sequential" | ||
} | ||
else if (scenario == 'standalone_gc') { | ||
standaloneGcStr = "gcname clrgc.dll" | ||
} | ||
else if (scenario == 'illink') | ||
{ | ||
illinkArguments = "link %WORKSPACE%\\linker\\linker\\bin\\netcore_Release\\netcoreapp2.0\\win10-${arch}\\publish\\illink.exe" | ||
|
@@ -1710,7 +1711,7 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR | |
testEnvStr = "TestEnv ${envScriptPath}" | ||
} | ||
|
||
runtestArguments = "${lowerConfiguration} ${arch} ${gcstressStr} ${crossgenStr} ${runcrossgentestsStr} ${runjitstressStr} ${runjitstressregsStr} ${runjitmioptsStr} ${runjitforcerelocsStr} ${runjitdisasmStr} ${runilasmroundtripStr} ${gcTestArguments} ${illinkArguments} collectdumps ${testEnvStr}" | ||
runtestArguments = "${lowerConfiguration} ${arch} ${gcstressStr} ${crossgenStr} ${runcrossgentestsStr} ${runjitstressStr} ${runjitstressregsStr} ${runjitmioptsStr} ${runjitforcerelocsStr} ${runjitdisasmStr} ${runilasmroundtripStr} ${gcTestArguments} ${illinkArguments} collectdumps ${testEnvStr} ${standaloneGcStr}" | ||
|
||
// If we are running a stress mode, we should write out the set of key | ||
// value env pairs to a file at this point and then we'll pass that to runtest.cmd | ||
|
@@ -1872,17 +1873,12 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR | |
buildCommands += "./tests/scripts/build_illink.sh --clone --arch=${architecture}" | ||
} | ||
|
||
def standaloneGc = '' | ||
if (scenario == 'standalone_gc') { | ||
standaloneGc = 'buildstandalonegc' | ||
} | ||
|
||
if (!enableCorefxTesting) { | ||
// We run pal tests on all OS but generate mscorlib (and thus, nuget packages) | ||
// only on supported OS platforms. | ||
def bootstrapRid = Utilities.getBoostrapPublishRid(os) | ||
def bootstrapRidEnv = bootstrapRid != null ? "__PUBLISH_RID=${bootstrapRid} " : '' | ||
buildCommands += "${bootstrapRidEnv}./build.sh verbose ${lowerConfiguration} ${architecture} ${standaloneGc}" | ||
buildCommands += "${bootstrapRidEnv}./build.sh verbose ${lowerConfiguration} ${architecture}" | ||
buildCommands += "src/pal/tests/palsuite/runpaltests.sh \${WORKSPACE}/bin/obj/${osGroup}.${architecture}.${configuration} \${WORKSPACE}/bin/paltestout" | ||
|
||
// Set time out | ||
|
@@ -1919,13 +1915,8 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR | |
} | ||
break | ||
case 'arm64': | ||
def standaloneGc = '' | ||
if (scenario == 'standalone_gc') { | ||
standaloneGc = 'buildstandalonegc' | ||
} | ||
|
||
if (!enableCorefxTesting) { | ||
buildCommands += "ROOTFS_DIR=/opt/arm64-xenial-rootfs ./build.sh verbose ${lowerConfiguration} ${architecture} cross clang3.8 ${standaloneGc}" | ||
buildCommands += "ROOTFS_DIR=/opt/arm64-xenial-rootfs ./build.sh verbose ${lowerConfiguration} ${architecture} cross clang3.8" | ||
|
||
// HACK -- Arm64 does not have corefx jobs yet. | ||
buildCommands += "git clone https://github.com/dotnet/corefx fx" | ||
|
@@ -2554,6 +2545,7 @@ combinedScenarios.each { scenario -> | |
def gcstressStr = '' | ||
def illinkStr = '' | ||
def layoutOnlyStr ='' | ||
def standaloneGcStr = '' | ||
|
||
if (scenario == 'r2r' || Constants.r2rJitStressScenarios.containsKey(scenario) ) { | ||
crossgenStr = '--crossgen' | ||
|
@@ -2631,6 +2623,19 @@ combinedScenarios.each { scenario -> | |
layoutOnlyStr = '--build-overlay-only' | ||
} | ||
|
||
if (scenario == 'standalone_gc') { | ||
if (osGroup == 'OSX') { | ||
standaloneGcStr = '--gcname=libclrgc.dylib' | ||
} | ||
else if (osGroup == 'Linux') { | ||
standaloneGcStr = '--gcname=libclrgc.so' | ||
} | ||
else { | ||
println("Unexpected OS group: ${osGroup} for os ${os}") | ||
assert false | ||
} | ||
} | ||
|
||
def windowsArmJob = (os == "Windows_NT" && architecture in validWindowsNTCrossArches) | ||
|
||
def folder = getJobFolder(scenario) | ||
|
@@ -2732,7 +2737,7 @@ combinedScenarios.each { scenario -> | |
--limitedDumpGeneration \\ | ||
${testEnvOpt} ${serverGCString} ${gcstressStr} ${crossgenStr} ${runcrossgentestsStr} ${runjitstressStr} \\ | ||
${runjitstressregsStr} ${runjitmioptsStr} ${runjitforcerelocsStr} ${runjitdisasmStr} ${runilasmroundtripStr} \\ | ||
${illinkStr} ${sequentialString} ${playlistString} ${layoutOnlyStr}""") | ||
${illinkStr} ${sequentialString} ${playlistString} ${layoutOnlyStr} ${standaloneGcStr}""") | ||
|
||
if (isGcReliabilityFramework(scenario)) { | ||
// runtest.sh doesn't actually execute the reliability framework - do it here. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters