Urgent.News

What's breaking now, across thousands of outlets.

Tech

Review a pull request by booting it

<trynix-preview> is a GitHub action that enables reviewers to boot a pull request's (PR) build in the browser, allowing them to test, validate, and provide feedback without the need for servers, SSH, VPN, Docker, VMs, or cloud resources. The action simply provides store paths via Nix eval and hands the cache's URL and public key to the browser.

It does not build or cache anything itself. To utilize <trynix-preview>, one must have previously built and cached the path, and the action relies on a free Cachix service for open source projects up to 5GiB. A private segregated cache is recommended to prevent forks from pushing to the main cache. The workflow runs on the default branch and checks out the pull request's code, ensuring that the fork cannot edit the workflow that builds it.

Despite the performance limitations for large binaries, <trynix-preview> showcases the power of Nix and is best suited for small to medium-sized binaries. A benchmark page is available at <https://trynix.dev/bench/> for further information on boot and run times.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at fzakaria.com →

More in Tech

More from Thursday 10 September →