ci: Update bfs to 2.6.2

This commit is contained in:
Tavian Barnes
2022-10-21 12:04:44 -04:00
parent 0b02baf61b
commit 366c8b019f
2 changed files with 21 additions and 13 deletions
+2 -13
View File
@@ -90,7 +90,7 @@ jobs:
with:
repository: tavianator/bfs
path: bfs
ref: '2.6'
ref: '2.6.2'
- uses: actions-rs/toolchain@v1
with:
profile: minimal
@@ -137,18 +137,7 @@ jobs:
- name: Compare failing tests against main
shell: bash
run: |
OLD_FAILING=$(sed -n "s/^\([[:print:]]\+\) failed\!/\1/p" dl/tests.log | sort)
NEW_FAILING=$(sed -n "s/^\([[:print:]]\+\) failed\!/\1/p" bfs/tests.log | sort)
for LINE in $OLD_FAILING; do
if ! grep -Fxq $LINE<<<"$NEW_FAILING"; then
echo "::warning ::Congrats! The bfs test $LINE is now passing!"
fi
done
for LINE in $NEW_FAILING; do
if ! grep -Fxq $LINE<<<"$OLD_FAILING"; then
echo "::error ::bfs test failed: $LINE. $LINE is passing on 'main'. Maybe you have to rebase?"
fi
done
./findutils/util/diff-bfs.sh dl/tests.log bfs/tests.log
- name: Compare against main results
shell: bash
run: |
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
set -eu
export LC_COLLATE=C
# Extract the failing test lines from log files
failing_tests() {
sed -n 's/^\([[:print:]]\+\) failed\!/\1/p' "$1" | sort
}
comm -3 <(failing_tests "$1") <(failing_tests "$2") | tr '\t' ',' | while IFS=, read old new; do
if [ -n "$old" ]; then
echo "::warning ::Congrats! The bfs test $old is now passing!"
fi
if [ -n "$new" ]; then
echo "::error ::bfs test failed: $new. $new is passing on 'main'. Maybe you have to rebase?"
fi
done