Skip to content

Commit 0a3f3af

Browse files
committed
Exclude performance test(s) from expected failures
This omits tests containing `performance` (and not as part of a larger "word", not even with `_`) from being expected to fail on CI with `GIX_TEST_IGNORE_ARCHIVES=1` on Windows. Currently there is one such test listed in #1358, `gix-ref-tests::refs packed::iter::performance`.
1 parent 63473bc commit 0a3f3af

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@ jobs:
119119
Out-String |
120120
Select-String -Pattern '(?s)```text\r?\n(.*?)```'
121121
122-
# FIXME: Check that the diff can fail, then filter out performance tests in Where-Object.
123122
$expected_failures = $match_info.Matches.Groups[1].Value -split "`n" |
124-
Where-Object { $_ -match '^\s*FAIL \[' } |
123+
Where-Object { ($_ -match '^\s*FAIL \[') -and ($_ -notmatch '\bperformance\b') } |
125124
ForEach-Object { $_ -replace '^\s*FAIL \[\s*\d+\.\d+s\]\s*', '' -replace '\s+$', '' } |
126125
Sort-Object
127126

scratchwork.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ $match_info = gh issue --repo GitoxideLabs/gitoxide view $issue --json body --jq
2222
Out-String |
2323
Select-String -Pattern '(?s)```text\r?\n(.*?)```'
2424

25-
# FIXME: Check that the diff can fail, then filter out performance tests in Where-Object.
2625
$expected_failures = $match_info.Matches.Groups[1].Value -split "`n" |
27-
Where-Object { $_ -match '^\s*FAIL \[' } |
26+
Where-Object { ($_ -match '^\s*FAIL \[') -and ($_ -notmatch '\bperformance\b') } |
2827
ForEach-Object { $_ -replace '^\s*FAIL \[\s*\d+\.\d+s\]\s*', '' -replace '\s+$', '' } |
2928
Sort-Object
3029

0 commit comments

Comments
 (0)