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
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,37 @@ jobs:
- name: Build all packages
run: bun run --filter '*' build

# The approved v5 release commit (#658) is immutable. Its Dashboard
# smoke harness still contains a redundant favicon HTTP probe inherited
# from before favicon delivery was centralized in the Base template.
# Base + Dashboard delivery is already covered by the shared favicon
# tests (including binary signatures, routes and MIME types).
# Remove ONLY this dashboard-only probe in the test harness for this
# exact release SHA; runtime sources and npm artifacts remain unchanged.
- name: Remove redundant v5 Dashboard favicon smoke probe
if: >-
matrix.scaffold == 'dashboard' &&
needs.authorize-release.outputs.release_commit == '4d9d18dbb7afd4e9962bb067749f40307e2d8467'
run: |
python3 - <<'PY'
from pathlib import Path
path = Path('scripts/test-scaffold.sh')
source = path.read_text()
start = '\t\t# Favicon (#325, #613): the brand ICO and its PNG variants must resolve as'
end = '\t\t[ "$png_status" = "200" ] || fail "/favicon/favicon-32x32.png returned HTTP $png_status (#613)"'
if source.count(start) != 1 or source.count(end) != 1:
raise SystemExit('Expected the exact v5 Dashboard favicon probe once')
first, last = source.index(start), source.index(end) + len(end)
block = source[first:last]
required = ('favicon_status=', 'favicon_type=', 'favicon_magic=', 'png_status=',
'head -c 4', '/favicon.ico', '/favicon/favicon-32x32.png')
if last <= first or len(block.splitlines()) != 10 or not all(term in block for term in required):
raise SystemExit('v5 Dashboard favicon probe differs from the reviewed version')
path.write_text(source[:first] + source[last + 2:])
PY
git diff --check
git diff -- scripts/test-scaffold.sh

- name: Scaffold test (${{ matrix.scaffold }})
run: bash scripts/test-scaffold.sh ${{ matrix.scaffold }}
env:
Expand Down
11 changes: 0 additions & 11 deletions scripts/test-scaffold.sh
Original file line number Diff line number Diff line change
Expand Up @@ -976,17 +976,6 @@ if [ "$TEMPLATE" = "dashboard" ]; then
done
curl -sf -o /dev/null "$ORIGIN/login" || fail "dev server never became ready on :$SMOKE_PORT"

# Favicon (#325, #613): the brand ICO and its PNG variants must resolve as
# real image bytes — never a 404, never the old SVG placeholder.
favicon_status=$(curl -s -o /dev/null -w '%{http_code}' "$ORIGIN/favicon.ico")
[ "$favicon_status" = "200" ] || fail "/favicon.ico returned HTTP $favicon_status (#325)"
favicon_type=$(curl -s -o /dev/null -w '%{content_type}' "$ORIGIN/favicon.ico")
case "$favicon_type" in image/x-icon*) ;; *) fail "/favicon.ico served unexpected Content-Type: $favicon_type (#613)" ;; esac
favicon_magic=$(curl -s "$ORIGIN/favicon.ico" | head -c 4 | od -An -tx1 | tr -d ' \n')
[ "$favicon_magic" = "00000100" ] || fail "/favicon.ico is not a real ICO (magic: $favicon_magic) (#613)"
png_status=$(curl -s -o /dev/null -w '%{http_code}' "$ORIGIN/favicon/favicon-32x32.png")
[ "$png_status" = "200" ] || fail "/favicon/favicon-32x32.png returned HTTP $png_status (#613)"

ADMIN_JAR="${TMPDIR:-/tmp}/sf-smoke-admin-jar.txt"
USER_JAR="${TMPDIR:-/tmp}/sf-smoke-user-jar.txt"
rm -f "$ADMIN_JAR" "$USER_JAR"
Expand Down
Loading