Skip to content

Consolidate plugin migration and runner test fixtures #8290

Closed

Description

@jyaunches

Objective

Use shared valid-baseline fixtures in plugin migration and blueprint-runner tests.

Scope

  • Add builders for migration host state, snapshots, filesystem layout, and failure results.
  • Add runner fixtures for subprocesses, UUIDs, SSRF checks, stdout, and sandbox identities.
  • Migrate commands/migration-state*.test.ts and blueprint/runner*.test.ts.

Expected net reduction: 460–610 LOC.

Relationships

Acceptance criteria

  • Security tests keep malicious path and symlink setup explicit.
  • Runner command expectations remain local.
  • Fixture defaults represent only the ordinary valid baseline.
  • Oversized-test budgets decrease with the resulting files.

Validation

Run plugin tests, plugin type-check, and targeted shuffled tests.

Activity

  1. added
    area: architecture
    area: sandbox
    help wanted
    on Aug 5, 2026
  2. added theissue type on Aug 5, 2026
  3. JulienAu commented on Aug 6, 2026

    @JulienAu
    Contributor

    I'd like to take this one.

    Plan, following the stated scope and acceptance criteria:

    1. Add builders for migration host state, snapshots, filesystem layout, and failure results.
    2. Add runner fixtures for subprocesses, UUIDs, SSRF checks, stdout, and sandbox identities.
    3. Migrate the commands/migration-state*.test.ts and blueprint/runner*.test.ts suites to consume them, keeping malicious path and symlink setup explicit in the security tests and keeping runner command expectations local.

    Fixture defaults will represent only the ordinary valid baseline and return fresh nested state per call. Target is a clearly negative net LOC delta. I will open a PR once the affected suites, the plugin type-check, and the targeted shuffled tests pass.

  4. added a commit that references this issue on Aug 7, 2026
    77545f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: architecturearea: sandboxhelp wanted

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions