Skip to content

feat(ci): add live-verification check for plugin PRs - #2386

Merged
rajarsheechatterjee merged 2 commits into
lnreader:masterfrom
pdmacinnes:master
Aug 8, 2026
Merged

feat(ci): add live-verification check for plugin PRs#2386
rajarsheechatterjee merged 2 commits into
lnreader:masterfrom
pdmacinnes:master

Conversation

@pdmacinnes

Copy link
Copy Markdown
Contributor

Summary

  • Adds scripts/live-check-plugin.js: bundles a plugin with esbuild and runs it against the real site (popularNovels -> searchNovels -> parseNovel -> parseChapter), classifying each step PASS/FAIL/INCONCLUSIVE.
  • Adds .github/workflows/plugin-live-check.yml: runs the check on PRs that touch plugins/**/*.ts (excluding multisrc-generated files), posts a summary PR comment, and only fails the check on a genuine FAIL — a target site being briefly down or Cloudflare-blocked never blocks a merge.
  • npm run check:plugin -- <path> for local use before opening a PR; documented in docs/testing.md.

Motivation

tsc/ESLint/Prettier are clean on plugins that are still genuinely broken, because the sites plugins scrape are user-edited HTML with no schema. While building a new plugin I hit six real bugs (zero chapters returned, search leaking foreign-language pages, etc.) that all three tools missed — the only thing that caught them was manually bundling the plugin and running it against the live site. This wires that same live check into CI automatically, scoped to just the plugin files a PR actually touches.

Test plan

🤖 Generated with Claude Code

pdmacinnes and others added 2 commits August 5, 2026 08:55
Type-checking/lint/prettier all pass while a plugin can still be
genuinely broken - the Baka-Tsuki plugin shipped six real bugs
(zero chapters, foreign-language search leakage, etc.) that none of
them caught. scripts/live-check-plugin.js bundles a plugin with
esbuild and runs it against the real site (popularNovels,
searchNovels, parseNovel, parseChapter), classifying each step
PASS/FAIL/INCONCLUSIVE so a target site being briefly down or
Cloudflare-blocked never fails CI.

Wired into .github/workflows/plugin-live-check.yml: runs only
against plugin files changed in a PR, posts one summary comment,
and only fails the check on a genuine FAIL.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
feat(ci): add live-verification check for plugin PRs
@rajarsheechatterjee
rajarsheechatterjee merged commit 61f0678 into lnreader:master Aug 8, 2026
3 checks passed
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.

2 participants