Skip to content

[Bug] The test suite requires an undeclared trash binary and fails on a clean machine #73

Closed

Description

@rocklambros

Predicted by adversarial review of #60 and then proven by CI on its first run.

The test helpers delete fixture directories with Bun.$`trash ${dir}` rather than rm -rf, a deliberate safety choice. trash is not an npm dependency of the tree, bun install never provides it, and four of the five scripts under scripts/ also require it.

On a clean ubuntu-latest runner the result is bun: command not found: trash and 26 of 1,111 tests fail, all in upstream-watch and policy-input-schema. Anyone following the README on Linux hits the same thing.

Worked around in .github/workflows/reference-implementation.yml by installing trash-cli pinned to 7.2.0, so CI exercises the suite. The underlying defect stands: a contributor cloning the repository and running bun test gets 26 failures and no explanation. Either declare the dependency and document it, or have the helper fall back to a plain recursive delete on a path the test itself created under the temp directory.

Activity

  1. added
    type:bugSomething isn't working
    scope:in-focusFeeds the ninety-day committed outcome. Maintainers only
    workstream:sdkOwning workstream. Maintainers only
    on Sep 10, 2026
  2. moved this to Needs triage in ACS Project Trackeron Sep 10, 2026
  3. aaronormerod commented on Oct 11, 2026

    @aaronormerod
    Collaborator

    README and the scripts now say trash is required, so the docs half is covered. What's left is that a bare bun test on a clean machine still fails those 26 tests. Two fixes: pin trash-cli as a devDependency, or fall back to fs.rm in the helper, scoped to dirs the test made under tmpdir. The code says never rm -rf, so I'd rather not pick for you. Which one do you want?

  4. moved this from Accepted to In progress in ACS Project Trackeron Oct 28, 2026
  5. drk-ram commented on Oct 31, 2026

    @drk-ram
    Collaborator

    I am working on this issue in PR #345.

  6. added a commit that references this issue on Oct 31, 2026
    208d569
  7. added a commit that references this issue on Oct 31, 2026
    1b8f970
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority:P2Maintainers onlyscope:in-focusFeeds the ninety-day committed outcome. Maintainers onlystatus:acceptedIn the backlog. Maintainers onlytype:bugSomething isn't workingworkstream:sdkOwning workstream. Maintainers only

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions