Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/fortress-test-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,16 @@ jobs:

# Process both test failures and build failures

# First handle regular test failures
if grep -oE 'FAIL:.*\(([^)]+)\)' test-failures.txt 2>/dev/null | sed -E 's/.*\(([^):]+)[^)]*\).*/\1/' | sort -u > "$TEMP_PACKAGES"; then
# Extract package names from test failures using a named regex and
# intermediate steps
FAIL_REGEX='FAIL:.*\(([^)]+)\)'
PACKAGE_LINE_REGEX='.*\(([^):]+)[^)]*\).*'

grep -oE "$FAIL_REGEX" test-failures.txt 2>/dev/null > temp-fail-lines.txt
sed -E "s/$PACKAGE_LINE_REGEX/\1/" temp-fail-lines.txt | sort -u > "$TEMP_PACKAGES"
rm temp-fail-lines.txt

if [[ -s "$TEMP_PACKAGES" ]]; then
echo "📦 Found packages with test failures:"
cat "$TEMP_PACKAGES"

Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ builds:
# Archives
# ---------------------------
archives:
- id: go-template
- id: go-sanitize
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
Expand Down