Skip to content

Feature Request: Support Remote Playwright Server for CI Performance #34

Description

@cody-dot-js

Big fan of your library, we just started using it to power our mermaid diagrams for https://ngrok.com/blog!

Background

Right now, even with caching playwright installs in our GitHub Actions, we still need to spend around a minute or two on just installing fonts used by chromium. This feels solveable at least, like with docker or some other higher level of caching (can't seem to cache and install /usr/* things in GitHub action runners).

Feature Request

So, ultimately, I am looking to improve our CI times in GitHub Actions by using docker to create a playwright image and starting that as a sidecar during build. And my feature request is to somehow allow rehype-mermaid to pass options to mermaid-isomorphic that will ultimately use connect instead of launch when starting playwright to generate the mermaid svgs at build time. As in, I start a "remote" playwright server that rehype-mermaid + mermaid-isomorphic uses.

My napkin math suggests this will give us around 40-60% faster GitHub action jobs.

Happy to contribute the feature or answer any further questions you have!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions