Repository navigation
Conversation
…or access to the machine
… list what it refused
…arn sandbox into yarn test-safe
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.
yarn test-saferuns the checks of code we did not write in a sandbox. Only Bun runs, it reads and writes only its own temporary folder, and it has no network. macOS only.yarn test-safechecks the current checkout.yarn test-safe 3184shows the head of a pull request and the files to read, and runs nothing.yarn test-safe 3184 8cae9b96runs the pull request merged with main, only when its head is still the SHA you read. The pull request is never checked out, so its git hooks do not run.It first checks that the sandbox refuses files, programs, writes and network, and ends with what the code tried that the sandbox refused. test2149 (starts the command line tool) and test418 (serves files over HTTP) are not run in the sandbox.
A pull request can change
package.json, so for a checkout of code from others start main's copy with an alias on your own machine.This keeps the machine safe while the code runs. It does not say that the code is safe to merge, so the diff still needs reading.