Skip to content

Commit

Permalink
Fix the benchmark build (#16604)
Browse files Browse the repository at this point in the history
* Fix the benchmark build

* up

* Update HistoricalBenchmark.Runner.fsproj

* up

* try something out
  • Loading branch information
psfinaki authored Jan 29, 2024
1 parent b3a7e29 commit cc4b772
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -718,10 +718,8 @@ stages:
steps:
- checkout: self
clean: true
- script: eng\CIBuild.cmd -testBenchmarks
- script: eng\CIBuild.cmd -configuration $(_BuildConfig) -testBenchmarks
displayName: Smoke test fast benchmarks
continueOnError: true
condition: always()

# Test trimming on Windows
- job: Build_And_Test_Trimming_Windows
Expand Down
6 changes: 1 addition & 5 deletions eng/Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ function TestUsingMSBuild([string] $testProject, [string] $targetFramework, [str

if ($env:RunningAsPullRequest -ne "true" -and $noTestFilter -eq $false) {
$args += " --filter TestCategory!=PullRequest"
}`
}

if ($asBackgroundJob) {
Write-Host("Starting on the background: $args")
Expand Down Expand Up @@ -549,11 +549,7 @@ try {
}

if ($testBenchmarks) {
$properties_storage = $properties
$properties += "/p:RuntimeIdentifier=win-x64"
$properties += "/p:Configuration=Release" # Always run in release.
BuildSolution "FSharp.Benchmarks.sln" $False
$properties = $properties_storage
}

if ($pack) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<RootNamespace>HistoricalBenchmark.Utilities</RootNamespace>
<NoWarn>$(NoWarn);NETSDK1206</NoWarn>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ type TestProjectType =
[<MemoryDiagnoser>]
[<ThreadingDiagnoser>]
[<SimpleJob(warmupCount=1,iterationCount=4)>]
[<BenchmarkCategory(ShortCategory)>]
[<BenchmarkCategory(LongCategory)>]
type TransparentCompilerBenchmark() =

let size = 30
Expand Down

0 comments on commit cc4b772

Please sign in to comment.