Repository navigation
Internal environment release pipeline (sandbox:release) #7093
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
e8bf99a
feat(sandbox): one-command internal environment release, and the fixe…
saddlepaddle 1a49beb
fix(sandbox): address review on the release script
saddlepaddle ac4ecea
docs(sandbox): say what the double-quoted .env fallback guarantees
saddlepaddle eacbb6c
feat(sandbox): a workspace branches the database for itself at first …
saddlepaddle 8c6e5a9
fix(sandbox): run the golden setup detached and retry probe execs at …
saddlepaddle b4b820a
docs(sandbox): storageMb was never a Blaxel field; the half-memory tm…
saddlepaddle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| // `bun dev` runs this on a laptop and inside a cloud sandbox alike. The one | ||
| // thing Electron forces apart is root: it refuses to start as root unless | ||
| // `--no-sandbox` is on its command line (an env var arrives too late), and the | ||
| // sandbox runs everything as root. electron-vite's `--noSandbox` puts it there. | ||
| const asRoot = process.platform === "linux" && process.getuid?.() === 0; | ||
| const child = Bun.spawn( | ||
| [ | ||
| "electron-vite", | ||
| "dev", | ||
| "--watch", | ||
| ...(asRoot ? ["--noSandbox"] : []), | ||
| ...process.argv.slice(2), | ||
| ], | ||
| { | ||
| stdio: ["inherit", "inherit", "inherit"], | ||
| env: { | ||
| ...process.env, | ||
| NODE_ENV: "development", | ||
| NODE_OPTIONS: "--max-old-space-size=8192", | ||
| }, | ||
| }, | ||
| ); | ||
| for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"] as const) { | ||
| process.on(signal, () => child.kill(signal)); | ||
| } | ||
| process.exit(await child.exited); |
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
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P3: Adding the node_modules probe shifts the inspect output indices that the display check's detail message relies on.
lines.slice(3).join(" ")now starts at the newdepsmarker instead of the xvfb/x11vnc lines, so on a display failure the printed detail no longer reliably shows the missing display process. Adjust the slice offset or filter the detail to the xvfb/x11vnc markers.Prompt for AI agents