Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
lwm1986
roslyn
提交
4724bd5f
R
roslyn
项目概览
lwm1986
/
roslyn
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
roslyn
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4724bd5f
编写于
4月 02, 2017
作者:
C
CyrusNajmabadi
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into codeCleanupErrors2
上级
f5cb6d6a
853b87b8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
21 addition
and
10 deletion
+21
-10
build/scripts/cibuild.ps1
build/scripts/cibuild.ps1
+8
-5
build/scripts/run_perf.ps1
build/scripts/run_perf.ps1
+5
-3
perf.groovy
perf.groovy
+1
-1
src/Test/Perf/Runner/Program.cs
src/Test/Perf/Runner/Program.cs
+6
-0
src/Test/Perf/Utilities/Benchview.cs
src/Test/Perf/Utilities/Benchview.cs
+1
-1
未找到文件。
build/scripts/cibuild.ps1
浏览文件 @
4724bd5f
...
...
@@ -108,16 +108,19 @@ try {
Run-MSBuild
Roslyn.sln
/p:Configuration
=
$buildConfiguration
/p:DeployExtension
=
false
# Check if we have credentials to upload to benchview
$extraArgs
=
""
$extraArgs
=
@()
if
((
Test-Path
env:\GIT_BRANCH
)
-and
(
Test-Path
env:\BV_UPLOAD_SAS_TOKEN
))
{
$extraArgs
=
"--report-benchview --branch
$(
$
env
:
GIT_BRANCH
)
"
$extraArgs
+=
"--report-benchview"
$extraArgs
+=
"--branch=
$
env
:
GIT_BRANCH
"
# Check if we are in a PR or this is a rolling submission
if
(
Test-Path
env:\ghprbPullTitle
)
{
$extraArgs
=
'$($extraArgs) --benchview-submission-name "[$($env:ghprbPullAuthorLogin)] PR $($env:ghprbPullId): $($env:ghprbPullTitle)" --benchview-submission-type private'
$submissionName
=
$
env
:
ghprbPullTitle
.
Replace
(
" "
,
"_"
)
$extraArgs
+=
"--benchview-submission-name=""
$submissionName
"""
$extraArgs
+=
"--benchview-submission-type=private"
}
else
{
$extraArgs
=
'$(4extraArgs) --benchview-submission-type rolling'
$extraArgs
+=
"--benchview-submission-type=rolling"
}
Create-Directory
".\Binaries\
$buildConfiguration
\tools\"
...
...
@@ -126,7 +129,7 @@ try {
}
Terminate-BuildProcesses
&
".\Binaries\
$buildConfiguration
\Exes\Perf.Runner\Roslyn.Test.Performance.Runner.exe"
--search-directory
=
".\\Binaries\\
$buildConfiguration
\\Dlls\\"
--no-trace-upload
$extraArgs
&
".\Binaries\
$buildConfiguration
\Exes\Perf.Runner\Roslyn.Test.Performance.Runner.exe"
$extraArgs
--search-directory
=
".\\Binaries\\
$buildConfiguration
\\Dlls\\"
--no-trace-upload
if
(
-not
$?
)
{
throw
"Perf run failed"
}
...
...
build/scripts/run_perf.ps1
浏览文件 @
4724bd5f
...
...
@@ -16,8 +16,10 @@ Invoke-WebRequest -Uri http://dotnetci.blob.core.windows.net/roslyn-perf/cpc.zip
[
Reflection.Assembly
]::
LoadWithPartialName
(
'System.IO.Compression.FileSystem'
)
|
Out-Null
[
IO.Compression.ZipFile
]::
ExtractToDirectory
(
'cpc.zip'
,
$CPCLocation
)
.
/cibuild.cmd
/testPerfRun
/release
if
(
$LASTEXITCODE
-ne
0
)
.
/build/scripts/cibuild.ps1
-release
-testPerfRun
if
(
-not
$?
)
{
exit
$LASTEXITCODE
echo
"perf run failed"
exit
1
}
perf.groovy
浏览文件 @
4724bd5f
...
...
@@ -54,4 +54,4 @@ def generate(boolean isPr) {
}
generate
(
true
)
generate
(
false
)
\ No newline at end of file
generate
(
false
)
src/Test/Perf/Runner/Program.cs
浏览文件 @
4724bd5f
...
...
@@ -16,6 +16,8 @@ public static class Program
{
public
static
int
Main
(
string
[]
args
)
{
Console
.
WriteLine
(
"args: \n"
+
String
.
Join
(
"\n "
,
args
));
bool
shouldReportBenchview
=
false
;
bool
shouldUploadTrace
=
true
;
bool
isCiTest
=
false
;
...
...
@@ -37,8 +39,12 @@ public static int Main(string[] args)
{
"search-directory="
,
"the directory to recursively search for tests"
,
dir
=>
{
searchDirectory
=
dir
;
}
}
};
parameterOptions
.
Parse
(
args
);
Log
(
$"shouldReportBenchview:
{
shouldReportBenchview
}
"
);
Log
(
$"submissionType:
{
submissionType
}
"
);
if
(
shouldReportBenchview
)
{
if
(!
CheckBenchViewOptions
(
submissionType
,
submissionName
)
||
...
...
src/Test/Perf/Utilities/Benchview.cs
浏览文件 @
4724bd5f
...
...
@@ -86,7 +86,7 @@ public static void UploadBenchviewReport(string filepath, string submissionName)
if
(
result
)
{
var
submissionJson
=
CreateSubmissionJson
(
s_submissionType
,
submissionName
,
s_branch
,
Path
.
Combine
(
s_outputDirectory
,
"measurement.json"
));
System
.
Console
.
Write
(
System
.
IO
.
File
.
ReadAllText
(
submissionJson
));
Log
(
"Uploading json to Azure blob storage"
);
var
uploadPy
=
Path
.
Combine
(
s_scriptDirectory
,
"upload.py"
);
ShellOutVital
(
"py"
,
$"\"
{
uploadPy
}
\" \"
{
submissionJson
}
\" --container roslyn"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录