Repository navigation
Don't fail the pipelines build on an invalid nextflow_schema.json - #4589
Merged
Merged
Conversation
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>
✅ Deploy Preview for nf-core-main-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The pipelines sub-site build fails on
/genomeannotation/dev/parameterswithSyntaxError: Unexpected token '<', "<div class"... is not valid JSON.nextflow_schema.jsononnf-core/genomeannotation@devhas a trailing comma, so it is not valid JSON.sites/main-site/utils/loaders.tscatches the parse error and stores an error<div>inrendered.html, with the message inmetadata.error.parameters.astropassedrendered.htmltoJSON.parsewithout checking, so one bad schema from any pipeline failed the whole build.parameters.astronow checksmetadata.error. If it is set, the page shows analert-dangerwith the parse error instead of the schema listing, and the build continues.🤖 Generated with Claude Code
@netlify /[pipeline]/[version]/parameters