Skip to content

fix(client): resolve import-boundary failures under bun workspaces (Refs #724) - #741

Closed
agenteinstinct1-max wants to merge 2 commits into
dev-vibecodedfrom
arena/849f25f3-silvercode
Closed

agenteinstinct1-max wants to merge 2 commits into
dev-vibecodedfrom
arena/849f25f3-silvercode

Conversation

@agenteinstinct1-max

Copy link
Copy Markdown
Collaborator

Issue for this PR

Refs #724. DRAFT - do not auto-close, no GitHub comments, no workflow edits.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Refs #724. The public import-boundary test in packages/client invoked bun work
to bundle each entrypoint, but bun work is not a valid Bun command, so bundling
failed with "Script not found work" before any assertion ran. Switch the
invocation to bun build, which supports the --target/--format/--packages/
--metafile/--outdir flags the test relies on.

This carries the one-line fix from the compliance-closed PR #727 forward on a fresh
branch. The change is isolated to packages/client/test/import-boundaries.test.ts and
does not touch packages/opencode or the permission system.

How did you verify your code works?

Ran bun test from packages/client:

  • test/import-boundaries.test.ts: 1 pass, 0 fail, 10 expect() calls (previously failed with bun work)
  • Full client suite: 16 pass, 0 fail, 75 expect() calls across 4 files
  • bun typecheck in packages/client: pass

The outstanding unit(linux) failure in packages/opencode/test/permission/timeout.test.ts
(reported as 2 fails at the old head) is a separate, pre-existing timing-sensitive
flake: it is not reproduced locally (17 pass, 0 fail across 3 runs, including under
4-way CPU burn) and is not caused by this change, which is confined to the client
import-boundaries test. Reported as unresolved / not mine; no assertions or timeouts
were weakened.

Screenshots / recordings

Not a UI change; none.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

invoke Bun build instead of Bun work in the import-boundary test. bun work
is not a valid command, so bundling each public entrypoint failed with
'Script not found work'. bun build supports the --target/--format/--packages/
--metafile/--outdir flags the test relies on.

Refs #724

Co-authored-by: arena-agent <[email protected]>
@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant