Skip to content

Add random number to multishell symlinks (Schniz#1536) #217

Open
Dargon789 wants to merge 4 commits into
Dargon789:dependabot/npm_and_yarn/site/npm_and_yarn-eeacf2bf74from
Schniz:master
Open

Add random number to multishell symlinks (Schniz#1536) #217
Dargon789 wants to merge 4 commits into
Dargon789:dependabot/npm_and_yarn/site/npm_and_yarn-eeacf2bf74from
Schniz:master

Conversation

@Dargon789

Copy link
Copy Markdown
Owner

No description provided.

renovate Bot and others added 4 commits April 17, 2026 18:23
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* feat: add possible values to the arch help docs.

* add a changeset

---------

Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
* docs: add e2e testing guide for agents

* docs: trim AGENTS e2e section

* docs: refine AGENTS guidance for e2e and changesets
* Add random number to multishell symlinks

This protects against collisions when multiple shells are started in parallel
inside Bubblewrap sandboxes, as each shell will have the same timestamp and the
same low PID (e.g. 2), since Bubblewrap sandboxes have isolated PID spaces.

* Add a changeset

---------

Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @Dargon789, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@vercel

vercel Bot commented May 23, 2026

Copy link
Copy Markdown

@joliss is attempting to deploy a commit to the Foundry development Team on Vercel.

A member of the Team first needs to authorize it.

@mergify

mergify Bot commented May 23, 2026

Copy link
Copy Markdown

⚠️ The sha of the head commit of this PR conflicts with #199. Mergify cannot evaluate rules on this PR. Once #199 is merged or closed, Mergify will resume processing this PR. ⚠️

@vercel

vercel Bot commented May 23, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/dargon789-forge?upgradeToPro=build-rate-limit

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces contributor documentation for E2E tests and changesets in AGENTS.md, and updates several dependencies including adding fastrand. The Arch enum now derives ValueEnum to provide possible values in help documentation. Additionally, generate_symlink_path was updated to include a random number to prevent symlink collisions in multishell environments. Feedback was provided regarding the ValueEnum derivation, suggesting explicit naming to avoid potential mismatches with manual string implementations if variant names change.

Comment thread src/arch.rs
use clap::ValueEnum;

#[derive(Clone, Copy, PartialEq, Eq, Debug)]
#[derive(Clone, Copy, PartialEq, Eq, Debug, ValueEnum)]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While deriving ValueEnum is a great way to expose possible values to clap, the default renaming strategy (kebab-case) might not perfectly match your manual FromStr and as_str implementations for all variants. For example, X64Glibc217 would default to x64-glibc-217 in kebab-case, which matches your manual implementation, but it's safer to be explicit to avoid future regressions if variant names change.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants