fix(diag): identify the binary measured by soak reports
This commit is contained in:
parent
1560c0513f
commit
24f898c54d
2 changed files with 70 additions and 3 deletions
|
|
@ -289,6 +289,35 @@ public sealed class ConnectedR6SoakContractTests
|
|||
Assert.Contains("$env:ACDREAM_DUMP_MOVE_TRUTH = '1'", source, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void BaselineIdentityComesFromTheMeasuredBinaryRatherThanOnlyTheCheckout()
|
||||
{
|
||||
string source = File.ReadAllText(Path.Combine(
|
||||
FindRepoRoot(),
|
||||
"tools",
|
||||
"run-connected-r6-soak.ps1"));
|
||||
|
||||
AssertAppearsInOrder(
|
||||
source,
|
||||
"$sourceCommit = (& git -C $Repository rev-parse HEAD).Trim()",
|
||||
"[Diagnostics.FileVersionInfo]::GetVersionInfo($exe).ProductVersion",
|
||||
"$binaryCommitMatch = [regex]::Match(",
|
||||
"$commit = if ($null -ne $binaryCommit) { $binaryCommit } else { $sourceCommit }",
|
||||
"$binaryMatchesSource = $null -ne $binaryCommit -and $binaryCommit -eq $sourceCommit");
|
||||
Assert.Contains(
|
||||
"status --short --untracked-files=no",
|
||||
source,
|
||||
StringComparison.Ordinal);
|
||||
Assert.Contains("BinaryProductVersion = $binaryProductVersion", source);
|
||||
Assert.Contains("BinaryCommit = $binaryCommit", source);
|
||||
Assert.Contains("BinaryMatchesSource = $binaryMatchesSource", source);
|
||||
Assert.Contains("TrackedSourceStatus = @($sourceStatus)", source);
|
||||
Assert.Contains(
|
||||
"measured binary commit $binaryCommit differs from checked-out source commit $sourceCommit",
|
||||
source,
|
||||
StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SoakExportsAndSummarizesFrameHistory()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue