Skip to content

test: a renamed from-source-only describe drops out of CI without failing #389

Open

Description

@willgosnold

Problem

Two e2e describes skip when PATCHBOOK_CMD is set, because they need the TypeScript source:

  • "init stopped by a preload, so only from source" in test/e2e/clone-init.test.ts, with 8 tests;
  • "killed by a preload, so only from source" inside VendorTest in test/e2e/vendor.test.ts, with 4 tests.

CI runs e2e against the binary, so these 12 tests run only in the rest shard's from-source step. That step selects them by name with --test-name-pattern "so only from source".

The step fails only when the pattern matches no test at all. Rename one of the describes so its title no longer holds that phrase, and its tests skip in every binary run and are never selected from source. CI stays green.

Steps

From source, at b47f511:

bun test --parallel test/e2e/*.test.ts --test-name-pattern "init stopped by a preload, so only from source"

This exits 0 with 8 tests. It stands in for the case where the VendorTest describe was renamed and its 4 tests dropped out. A pattern that matches nothing does exit 1.

Expected

A describe that skips under PATCHBOOK_CMD always runs somewhere in CI, whatever its title. One way is to declare these describes through one helper in test/e2e-fixtures.ts that adds the phrase to the title, so the name and the skip can't drift apart.

Found in review of #388: #388 (comment)

🤖 Generated with Claude Code

Activity

  1. added
    bug
    on Oct 27, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions