Skip to content

[CHORE] Render init-workspace.bats shared fixtures concurrently in setup_file #1695

Closed

Description

@c-vigo

Chore Type

General task

Description

tests/bats/init-workspace.bats's setup_file renders seven shared
fixtures (devcontainer, direnv, both, bare, node-both,
python-both, trunk-both, since #1687) serially, ~0.3s each after
#1687's WP2, before the first test starts. Under bats -j that prologue is
pure critical path: no test in the file can run until it finishes, while
the other cores idle.

It is also what makes small fixtures not pay: a fixture for the 2-test
Cargo.toml and nix/module.nix seed groups would save two parallel
renders but add one serial one, so #1687's WP3 left them alone.

Acceptance Criteria

  • setup_file renders the fixtures concurrently (background the
    _render_shared calls, wait, and surface every failed fixture's log
    — not just the first)
  • The Cargo.toml and nix/module.nix seed groups gain fixtures and
    are converted with _clone_shared, now that a fixture costs ~0 wall
    time
  • init-workspace.bats 300/300 under bats -j 8 and sequentially;
    setup_file wall time recorded before/after in the PR body
  • The per-fixture .log files and the "shared scaffold failed"
    diagnostics keep working when several fixtures fail at once

Implementation Notes

Related Issues

Priority

Low

Changelog Category

No changelog needed

Activity

  1. added
    chore
    priority:low
    effort:small
    area:testing
    semver:patch
    on Sep 25, 2026
  2. c-vigo commented on Sep 25, 2026

    @c-vigo
    ContributorAuthor

    Shipped to dev in #1709: nine fixtures rendered concurrently in setup_file (~5s → ~0.6s locally), cargo-both and nix-module-both fixtures added, every failed fixture's log surfaced.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:testingchoreeffort:smallpriority:lowsemver:patch

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions