Skip to content

Herb introduces risk of production runtime exceptions #1362

@joelhawksley

Description

@joelhawksley

As we continue to get closer to running Herb in production on GitHub.com, we've identified an operational risk in the library.

When turning intercept_erb, it's possible to introduce runtime exceptions if Herb/ReActionView produces invalid Ruby, such as in marcoroth/reactionview#83. If a template is not rendered in tests, the invalid Ruby will not be eval'd until the template is lazily compiled in production.

As a stopgap, I have added a script to compile and eval all of our templates in a CI job, but I would expect Herb to provide a better safety mechanism.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enginequestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions