You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix IL2091 trimming warning in `LazyExtensions.Create` by adding `DynamicallyAccessedMembers` attribute to the generic type parameter. ([Issue #17356](https://github.com/dotnet/fsharp/issues/17356), [PR #18302](https://github.com/dotnet/fsharp/pull/18302))
Write-Error"Build failed with exit code ${LASTEXITCODE}"
12
-
Write-Error"${build_output}"-ErrorAction Stop
14
+
$errors+="Build failed with exit code ${LASTEXITCODE}"
15
+
Write-Host"##vso[task.logissue type=error;sourcepath=${scriptFile};linenumber=${callerLineNumber}]Build failed for ${root} with exit code ${LASTEXITCODE}"
Write-Error"Test failed with exit code ${LASTEXITCODE}"-ErrorAction Stop
26
+
$errors+="Test failed with exit code $($process.ExitCode)"
27
+
Write-Host"##vso[task.logissue type=error;sourcepath=${scriptFile};linenumber=${callerLineNumber}]Test execution failed for ${root} with exit code $($process.ExitCode)"
23
28
}
24
-
if ($output-eq$expected)
29
+
elseif ($output-ne$expected)
25
30
{
26
-
Write-Host"Test passed"
31
+
$errors+="Test failed with unexpected output: Expected '${expected}', Actual '${output}'"
32
+
Write-Host"##vso[task.logissue type=error;sourcepath=${scriptFile};linenumber=${callerLineNumber}]Test failed for ${root} with unexpected output: Expected '${expected}', Actual '${output}'"
27
33
}
28
34
else
29
35
{
30
-
Write-Error"Test failed with unexpected output:`nExpected:`n`t${expected}`nActual`n`t${output}"-ErrorAction Stop
36
+
Write-Host"Test passed"
31
37
}
32
38
33
39
# Checking that the trimmed outputfile binary is of expected size (needs adjustments if test is updated).
@@ -39,24 +45,46 @@ function CheckTrim($root, $tfm, $outputfile, $expected_len) {
39
45
}
40
46
elseif ($file_len-ne$expected_len)
41
47
{
42
-
Write-Error"Test failed with unexpected ${tfm} - trimmed ${outputfile} length:`nExpected:`n`t${expected_len} Bytes`nActual:`n`t${file_len} Bytes`nEither codegen or trimming logic have changed. Please investigate and update expected dll size or report an issue."-ErrorAction Stop
48
+
$errors+="Test failed with unexpected ${tfm} - trimmed ${outputfile} length: Expected ${expected_len} Bytes, Actual ${file_len} Bytes"
49
+
Write-Host"##vso[task.logissue type=error;sourcepath=${scriptFile};linenumber=${callerLineNumber}]Trimmed ${outputfile} size mismatch for ${root}: Expected ${expected_len} Bytes, Actual ${file_len} Bytes. Either codegen or trimming logic have changed. Please investigate and update expected dll size or report an issue."
0 commit comments