Skip to content

Commit 5f08de1

Browse files
JoeMattclaude
andcommitted
fix: SSL Labs timeout + Lighthouse score variance
SSL Labs: switch from startNew=on to fromCache=on (maxAge=24h) so on-push audits return a cached result in seconds instead of triggering a fresh 5-min scan that times out before the 15-attempt limit. Fresh scans still happen on the weekly schedule when the cache is cold. Lighthouse: increase numberOfRuns 1→3. With aggregationMethod: optimistic, LHCI takes the best of 3 runs, eliminating false-low scores from network jitter in GitHub Actions runners (observed swings from 49 to 99 between runs). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 58eb2e8 commit 5f08de1

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

.github/workflows/site-audit.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,14 @@ jobs:
267267
- name: SSL Labs
268268
id: ssl
269269
run: |
270-
curl -s "https://api.ssllabs.com/api/v3/analyze?host=icube-emu.com&startNew=on&publish=off" > /dev/null
270+
# Use fromCache=on so pushes return quickly from cache (avoids 5-min fresh scan).
271+
# maxAge=24 means accept results up to 24 hours old. Fresh scans happen on the
272+
# weekly schedule or when the cache is cold.
273+
curl -s "https://api.ssllabs.com/api/v3/analyze?host=icube-emu.com&fromCache=on&maxAge=24&publish=off" > /dev/null
271274
GRADE="N/A"
272-
for i in {1..15}; do
273-
sleep 20
274-
RESULT=$(curl -s "https://api.ssllabs.com/api/v3/analyze?host=icube-emu.com&publish=off")
275+
for i in {1..24}; do
276+
sleep 15
277+
RESULT=$(curl -s "https://api.ssllabs.com/api/v3/analyze?host=icube-emu.com&fromCache=on&maxAge=24&publish=off")
275278
STATUS=$(echo "$RESULT" | python3 -c "import json,sys; d=json.load(sys.stdin); print(d.get('status',''))" 2>/dev/null || echo "")
276279
echo "SSL Labs status: $STATUS (attempt $i)"
277280
if [ "$STATUS" = "READY" ]; then

.lighthouserc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ci:
22
collect:
3-
numberOfRuns: 1
3+
numberOfRuns: 3
44
settings:
55
chromeFlags: '--no-sandbox --disable-dev-shm-usage --disable-gpu --ignore-certificate-errors'
66
assert:

0 commit comments

Comments
 (0)