Skip to content

ci: run Lighthouse on every PR so it can be a required check - #147

Merged
lwwmanning merged 3 commits into
mainfrom
claude/lighthouse-required
Oct 30, 2026
Merged

lwwmanning merged 3 commits into
mainfrom
claude/lighthouse-required

Conversation

@lwwmanning

Copy link
Copy Markdown
Contributor

Lighthouse is the only check that tests accessibility, SEO and best practices, but it could not be a required check. It used paths-ignore, so it never started on bench-only PRs, and a required check that never starts blocks the merge. Now it starts on every PR, and a changes job skips the audit when only bench changed. A skipped job counts as passed.

A required check must not fail because one shared runner is slow. Lighthouse now runs each URL three times and checks the best run. A real regression shows in every run and still fails. After this merges, I will add "Lighthouse audit" to the required checks on main.

🤖 Generated with Claude Code

Lighthouse is the only check that asserts accessibility, SEO and best
practices, but it filtered pull requests with paths-ignore, so it could
not be required: a workflow that never starts leaves its check pending
and blocks the merge. A changes job (the shared changed-paths action)
now skips the audit when only bench changed; a skipped job reports
success.

A required check must not fail on one slow shared runner. Collect three
runs per URL: LHCI asserts on the best run by default (aggregationMethod
"optimistic"), so a real regression, which shows in every run, still
fails, and an outlier run does not. The job timeout goes from 15 to 20
minutes for the extra runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Will Manning <will@willmanning.io>
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
vortex Ready Ready Preview Oct 30, 2026 2:33am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-30T02:35:05.013545Z 130d65f Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 029d82a398

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/lighthouse.yml Resolved
Comment thread lighthouserc.cjs Resolved
@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

🔦 Lighthouse audit

URL Perf A11y Best practices SEO Report
/ 🟢 100 🟢 100 🟢 96 🟢 100 report
/blog 🟢 100 🟢 100 🟢 96 🟢 100 report
/blog/btrblocks-compressor 🟢 100 🟢 96 🟢 96 🟢 100 report

Run 40992367542 · 2026-10-30 02:36 UTC

Fork PRs get a read-only GITHUB_TOKEN that can't post comments, and now
that the audit runs on every PR and is to be required, a failed comment
step would fail the check after a passing audit. Format and post the
comment only for same-repository PRs.

With three runs per URL, unique_by(.url) kept an arbitrary run, so the
table could show a slow run the check didn't judge by. Show each URL's
best run by performance, matching LHCI's optimistic assertions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Will Manning <will@willmanning.io>
@lwwmanning

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 48e7895950

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/lighthouse.yml Resolved
Dependabot's PRs come from this repository but get a read-only
GITHUB_TOKEN, so the same-repository condition alone let the comment
step try to write and fail the check with a 403. Skip Dependabot too,
and make both comment steps non-fatal so no token limit can fail an
audit that passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Will Manning <will@willmanning.io>
@lwwmanning

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 130d65f198

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lwwmanning
lwwmanning merged commit 72a9457 into main Oct 30, 2026
23 checks passed
@lwwmanning
lwwmanning deleted the claude/lighthouse-required branch October 30, 2026 02:38
lwwmanning added a commit that referenced this pull request Oct 30, 2026
main runs Lighthouse on every PR as a required check (#147) and resolves
four code-scanning alerts (#148). The merge is clean.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Will Manning <will@willmanning.io>

This branch was successfully deployed

1 active deployment
Preview — 130d65f1 Deployed Oct 30, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant