GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CI: hermetic spawns in e2e_redirect_cargo_shapes (#823) by mikolalysenko · Pull Request #1522 · SocketDev/socket-patch

Conversation

@mikolalysenko

@mikolalysenko Mikola Lysenko (mikolalysenko) commented Oct 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

LLM Description written by Claude Code:claude-opus-5-5

Refs #823 (slice 19: the e2e_redirect_cargo_shapes suite). This uses Refs, so #823 stays open for the last two PENDING_RAW_SPAWNS files: e2e_hosted_production.rs and e2e_vendored_production.rs.

Summary

run_socket_env in e2e_redirect_cargo_shapes.rs now starts socket-patch through hermetic::binary_command() and scrubs an activated venv (Extra::Venv). It sets the leg's own CARGO_HOME after those calls. The file comes off PENDING_RAW_SPAWNS (3 → 2). The change touches tests only: no product code and no workflows.

Root cause

The suite spawned the CLI with a bare Command::new and its own sweep of every ambient SOCKET_*. That sweep was mostly sound, but it had drifted from the shared harness:

  • It forced only SOCKET_NO_CONFIG. The update check and telemetry opt-outs that hermetic::FORCED_OPT_OUTS sets were never forced. (Every call does pass --no-telemetry.)
  • There were no hostile seeds, so a dropped scrub line would not turn the suite red.
  • VIRTUAL_ENV reached the unscoped scan and vex runs.

To be clear about impact: I found no ambient shell that fails this suite on main. Under VIRTUAL_ENV=<real venv with six installed> SOCKET_DRY_RUN=true SOCKET_ECOSYSTEMS=npm SOCKET_NO_CONFIG=0 SOCKET_NO_UPDATE_CHECK=0 SOCKET_TELEMETRY_DISABLED=0 ..., it passes 32/32 both before and after this change. This slice is about consistency and the ratchet, not a live failure.

Test evidence

  • Red with only the PENDING_RAW_SPAWNS removal: spawn_env_hygiene fails no_new_bare_binary_spawns with ["e2e_redirect_cargo_shapes.rs"] (15 passed, 1 failed).
  • Green at 4d4ade7: e2e_redirect_cargo_shapes 32/32 (real cargo 1.93.1 against crates.io through the wiremock mirror) and spawn_env_hygiene 16/16. Both are also green under the hostile shell above. e2e_maven is 22/22 after rebasing onto CI: hermetic spawns in the e2e_maven suite (#823) #1519.
  • Re-verified at takeover (2026-10-14, branch 0 commits behind main): cargo fmt --check clean, clippy on both test targets clean, spawn_env_hygiene 16/16, e2e_redirect_cargo_shapes 32/32.
  • cargo fmt --all -- --check is clean. cargo clippy --locked --workspace --all-features -- -D warnings is clean, and so is clippy --test e2e_redirect_cargo_shapes --test spawn_env_hygiene -- -D warnings.

/code-review high

  • Fixed: the doc comment said the venv scrub was there for the scan only. It applies to every call, because vex also discovers packages under --cwd.
  • Not fixed here (follow-up under Spawn every CLI test child through one hermetic Command builder; 10 test files inherit ambient SOCKET_* today #823): the real-cargo children (cargo_e2e_matrix::cargo_command) pin CARGO_HOME and drop CARGO_TARGET_DIR, but they still inherit CARGO_BUILD_TARGET_DIR, CARGO_NET_OFFLINE, CARGO_REGISTRIES_* / CARGO_SOURCE_* and RUSTFLAGS. That helper is shared by every cargo matrix suite, so changing it belongs in its own slice.
  • Not fixed here (follow-up): about 20 suites now repeat binary_command() + scrub_extra(Venv). Making the shared builder scrub VIRTUAL_ENV by default (or adding a ratchet for it) would remove the copies.

CI cost

No workflow changes. A lean PR run costs the same before and after: about 28 Linux jobs and about 8 minutes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FFQDbPARQNb93vs7DiZJoP


Generated by Claude Code


Generated by Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Claude (claude) added 2 commits October 14, 2026 05:02
@claude
CI: hermetic spawns in e2e_redirect_cargo_shapes
61f386f
The cargo redirect-shapes suite started socket-patch with a bare
Command::new and its own SOCKET_* sweep. That sweep never forced the
update check or telemetry off, and an activated venv reached the
unscoped hosted scan. It now spawns through the shared hermetic
builder, scrubs VIRTUAL_ENV, and leaves PENDING_RAW_SPAWNS.

Refs #823

Assisted-by: Claude Code:claude-opus-5-5
@claude
Clarify the venv scrub and format the list
4d4ade7
The venv scrub covers every call, not just scan: vex also discovers
packages under --cwd. Reformat the two-entry PENDING_RAW_SPAWNS list
the way rustfmt wants it.

Assisted-by: Claude Code:claude-opus-5-5
This was referenced Oct 14, 2026
Spawn every CLI test child through one hermetic Command builder; 10 test files inherit ambient SOCKET_* today #823
Closed
Swarm health manager log #1382
Open
@mikolalysenko
Mikola Lysenko (mikolalysenko) marked this pull request as ready for review October 14, 2026 06:58
@mikolalysenko

Mikola Lysenko (mikolalysenko) commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator Author

BugBot review


Generated by Claude Code

cursor[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cursor[bot]
cursor Bot reviewed Oct 14, 2026
View reviewed changes

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 4d4ade7. Configure here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Tanmay182003
Tanmay Singla (Tanmay182003) approved these changes Oct 14, 2026
View reviewed changes
@mikolalysenko
Mikola Lysenko (mikolalysenko) added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit 6a06ddd Oct 14, 2026
86 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@mikolalysenko
Mikola Lysenko (mikolalysenko) deleted the agent/fix-ci-hermetic-redirect-cargo-shapes branch October 14, 2026 07:57
@mikolalysenko Mikola Lysenko (mikolalysenko) mentioned this pull request Oct 14, 2026
CI perf (settings): slow Depot 16-core hosts since 10-13 15:20 add ~1.5–2.5 min to the merge-queue critical path (~0.6k Linux job-min/day) #1512
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@cursor cursor[bot] cursor[bot] left review comments
@Tanmay182003 Tanmay Singla (Tanmay182003) Tanmay182003 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@mikolalysenko @Tanmay182003 @claude
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.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.