diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4865e12d503..08e347c340e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -119,9 +119,8 @@ jobs: Out-String | Select-String -Pattern '(?s)```text\r?\n(.*?)```' - # FIXME: Check that the diff can fail, then filter out performance tests in Where-Object. $expected_failures = $match_info.Matches.Groups[1].Value -split "`n" | - Where-Object { $_ -match '^\s*FAIL \[' } | + Where-Object { ($_ -match '^\s*FAIL \[') -and ($_ -notmatch '\bperformance\b') } | ForEach-Object { $_ -replace '^\s*FAIL \[\s*\d+\.\d+s\]\s*', '' -replace '\s+$', '' } | Sort-Object diff --git a/scratchwork.ps1 b/scratchwork.ps1 index 89816aaa18e..5fa6c2f102f 100644 --- a/scratchwork.ps1 +++ b/scratchwork.ps1 @@ -22,9 +22,8 @@ $match_info = gh issue --repo GitoxideLabs/gitoxide view $issue --json body --jq Out-String | Select-String -Pattern '(?s)```text\r?\n(.*?)```' -# FIXME: Check that the diff can fail, then filter out performance tests in Where-Object. $expected_failures = $match_info.Matches.Groups[1].Value -split "`n" | - Where-Object { $_ -match '^\s*FAIL \[' } | + Where-Object { ($_ -match '^\s*FAIL \[') -and ($_ -notmatch '\bperformance\b') } | ForEach-Object { $_ -replace '^\s*FAIL \[\s*\d+\.\d+s\]\s*', '' -replace '\s+$', '' } | Sort-Object