Skip to content

Don't fail the pipelines build on an invalid nextflow_schema.json - #4589

Merged
ewels merged 1 commit into
nf-core:mainfrom
ewels:fix-invalid-schema-build
Nov 30, 2026
Merged

ewels merged 1 commit into
nf-core:mainfrom
ewels:fix-invalid-schema-build

Conversation

@ewels

@ewels ewels commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

The pipelines sub-site build fails on /genomeannotation/dev/parameters with SyntaxError: Unexpected token '<', "<div class"... is not valid JSON.

  • Root cause
    • nextflow_schema.json on nf-core/genomeannotation@dev has a trailing comma, so it is not valid JSON.
    • The schema processor in sites/main-site/utils/loaders.ts catches the parse error and stores an error <div> in rendered.html, with the message in metadata.error.
    • parameters.astro passed rendered.html to JSON.parse without checking, so one bad schema from any pipeline failed the whole build.
  • Fix
    • parameters.astro now checks metadata.error. If it is set, the page shows an alert-danger with the parse error instead of the schema listing, and the build continues.
    • This page is the only consumer of the rendered schema entries.
  • Upstream

🤖 Generated with Claude Code

@netlify /[pipeline]/[version]/parameters

The loader stores an error <div> in rendered.html when a schema fails to
parse; the parameters page passed it to JSON.parse and crashed the build.
Show the parse error on that page instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for nf-core-main-site ready!

Name Link
🔨 Latest commit 3c9e051
🔍 Latest deploy log https://app.netlify.com/projects/nf-core-main-site/deploys/6b0d2503f830d68c814d92dd
😎 Deploy Preview https://deploy-preview-4589--nf-core-main-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot deleted a comment from netlify Bot Nov 30, 2026
@ewels
ewels merged commit d75516f into nf-core:main Nov 30, 2026
12 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.

1 participant