This repository was archived by the owner on Jan 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Windows CoreFX CI Staging Commit #18388
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
|
@@ -151,7 +151,8 @@ class Constants { | |
// 'jitdiff', // jitdiff is currently disabled, until someone spends the effort to make it fully work | ||
'standalone_gc', | ||
'gc_reliability_framework', | ||
'illink'] | ||
'illink', | ||
'corefx_innerloop'] | ||
|
||
def static allScenarios = basicScenarios + r2rStressScenarios.keySet() + jitStressModeScenarios.keySet() | ||
|
||
|
@@ -1741,6 +1742,11 @@ def static addTriggers(def job, def branch, def isPR, def architecture, def os, | |
case 'illink': | ||
Utilities.addGithubPRTriggerForBranch(job, branch, "${os} ${architecture} ${configuration} via ILLink", "(?i).*test\\W+${os}\\W+${architecture}\\W+${configuration}\\W+${scenario}.*") | ||
break | ||
case 'corefx_innerloop': | ||
if (configuration == 'Release' || configuration == 'Checked') { | ||
Utilities.addGithubPRTriggerForBranch(job, branch, "${os} ${architecture} ${configuration} CoreFX Tests", "(?i).*test\\W+${os}\\W+${architecture}\\W+${configuration}\\W+${scenario}.*") | ||
} | ||
break | ||
|
||
default: | ||
if (isJitStressScenario(scenario)) { | ||
|
@@ -2212,19 +2218,28 @@ def static calculateBuildCommands(def newJob, def scenario, def branch, def isPR | |
runtestArguments = "${lowerConfiguration} ${arch} ${testOpts}" | ||
|
||
if (doCoreFxTesting) { | ||
def workspaceRelativeFxRoot = "_/fx" | ||
def absoluteFxRoot = "%WORKSPACE%\\_\\fx" | ||
def fxBranch = getFxBranch(branch) | ||
if (scenario == 'corefx_innerloop') { | ||
buildCommands += "tests\\runtest.cmd ${runtestArguments} CoreFXTests" | ||
|
||
// Archive and process (only) the test results | ||
Utilities.addArchival(newJob, "%WORKSPACE%bin/Logs/**/testResults.xml") | ||
Utilities.addXUnitDotNETResults(newJob, "%WORKSPACE%/bin/Logs/**/testResults.xml") | ||
} | ||
else { | ||
def workspaceRelativeFxRoot = "_/fx" | ||
def absoluteFxRoot = "%WORKSPACE%\\_\\fx" | ||
def fxBranch = getFxBranch(branch) | ||
|
||
buildCommands += "python -u %WORKSPACE%\\tests\\scripts\\run-corefx-tests.py -arch ${arch} -ci_arch ${architecture} -build_type ${configuration} -fx_root ${absoluteFxRoot} -fx_branch ${fxBranch} -env_script ${envScriptPath}" | ||
buildCommands += "python -u %WORKSPACE%\\tests\\scripts\\run-corefx-tests.py -arch ${arch} -ci_arch ${architecture} -build_type ${configuration} -fx_root ${absoluteFxRoot} -fx_branch ${fxBranch} -env_script ${envScriptPath}" | ||
|
||
// Archive and process (only) the test results | ||
Utilities.addArchival(newJob, "${workspaceRelativeFxRoot}/bin/**/testResults.xml") | ||
Utilities.addXUnitDotNETResults(newJob, "${workspaceRelativeFxRoot}/bin/**/testResults.xml") | ||
// Archive and process (only) the test results | ||
Utilities.addArchival(newJob, "${workspaceRelativeFxRoot}/bin/**/testResults.xml") | ||
Utilities.addXUnitDotNETResults(newJob, "${workspaceRelativeFxRoot}/bin/**/testResults.xml") | ||
|
||
//Archive additional build stuff to diagnose why my attempt at fault injection isn't causing CI to fail | ||
Utilities.addArchival(newJob, "SetStressModes.bat", "", true, false) | ||
Utilities.addArchival(newJob, "${workspaceRelativeFxRoot}/bin/testhost/**", "", true, false) | ||
//Archive additional build stuff to diagnose why my attempt at fault injection isn't causing CI to fail | ||
Utilities.addArchival(newJob, "SetStressModes.bat", "", true, false) | ||
Utilities.addArchival(newJob, "${workspaceRelativeFxRoot}/bin/testhost/**", "", true, false) | ||
} | ||
} | ||
else if (isGcReliabilityFramework(scenario)) { | ||
buildCommands += "tests\\runtest.cmd ${runtestArguments} GenerateLayoutOnly" | ||
|
@@ -2571,6 +2586,12 @@ def static shouldGenerateJob(def scenario, def isPR, def architecture, def confi | |
return false | ||
} | ||
|
||
// Run basic corefx tests only on PR-triggered jobs | ||
// Runs under Release and Checked | ||
if (scenario == 'corefx_innerloop' && !isPR) { | ||
return false | ||
} | ||
|
||
// Tizen is only supported for armem architecture | ||
if (os == 'Tizen' && architecture != 'armem') { | ||
return false | ||
|
@@ -2784,6 +2805,14 @@ def static shouldGenerateJob(def scenario, def isPR, def architecture, def confi | |
return false | ||
} | ||
break | ||
case 'corefx_innerloop': | ||
if (os != 'Windows_NT'|| architecture != 'x64') { | ||
return false | ||
} | ||
if(configuration != 'Release' && configuration != 'Checked') { | ||
return false | ||
} | ||
break | ||
default: | ||
println("Unknown scenario: ${scenario}") | ||
assert false | ||
|
@@ -2831,6 +2860,8 @@ Constants.allScenarios.each { scenario -> | |
|
||
// Create the new job | ||
def newJob = job(Utilities.getFullJobName(project, jobName, isPR, folderName)) {} | ||
|
||
// Should we add corefx_innerloop to views? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will let @BruceForstall comment |
||
addToViews(newJob, isPR, architecture, os) | ||
|
||
setJobMachineAffinity(architecture, os, true, false, false, newJob) // isBuildJob = true, isTestJob = false, isFlowJob = false | ||
|
@@ -3459,7 +3490,10 @@ def static shouldGenerateFlowJob(def scenario, def isPR, def architecture, def c | |
if (scenario == 'innerloop' && !isPR) { | ||
return false | ||
} | ||
|
||
|
||
if (scenario == 'corefx_innerloop') { | ||
return false | ||
} | ||
// Filter based on OS and architecture. | ||
|
||
switch (architecture) { | ||
|
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between the outerloop and innerloop jobs? Why are we opting for two different ways to run corefx tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CoreFx tests have a notion of innerloop and outerloop built into them as well. We should probably only run corefx's innerloop tests in coreclr's innerloop. This naming seems appropriate in case we want to add corefx outerloop jobs at some point. It's unclear right now (to me, at least).
In reply to: 196827178 [](ancestors = 196827178)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, @RussKeldorph was spot on. The CI configuration will only run innerloop (marked as such) CoreFX tests during innerloop CoreCLR jobs.