Skip to content

test: add exec unit tests and varlock run smoke tests#707

Merged
theoephraim merged 6 commits into
mainfrom
copilot/bugfix-child-stdout-loss
May 21, 2026
Merged

test: add exec unit tests and varlock run smoke tests#707
theoephraim merged 6 commits into
mainfrom
copilot/bugfix-child-stdout-loss

Conversation

Copilot AI commented May 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add unit tests for exec(): stdout/stderr piping, exit code propagation, inherited stdio, timing assertion
  • Add smoke tests for varlock run: stdout forwarding, exit code propagation, stderr forwarding
  • Drop the exitclose code change (underlying issue was resolved in 1.2.0)
  • Drop unrelated devalue override and erroneous smoke-tests/bun.lock

Test plan

  • bun run --filter varlock test -- --run src/lib/test/exec.test.ts — 5 tests pass
  • bun run lint:fix — clean
  • CI passes

Copilot AI changed the title [WIP] Fix child stdout/stderr loss in varlock on Windows PowerShell fix(exec): use close event instead of exit to prevent piped stdout/stderr loss on Windows May 20, 2026
Copilot AI requested a review from philmillman May 20, 2026 14:58
@philmillman philmillman marked this pull request as ready for review May 20, 2026 15:03
@philmillman

Copy link
Copy Markdown
Member

@copilot fix the build issue with bun audit seen here
image

Copilot AI commented May 20, 2026

Copy link
Copy Markdown
Contributor Author

@copilot fix the build issue with bun audit seen here
image

Fixed in 3c1e2b2. Added "devalue": ">=5.8.1" to the overrides in root package.json, which forces the transitive dependency from astro@6.2.2 to resolve to the patched devalue@5.8.1 (GHSA-77vg-94rm-hx3p). bun audit now exits clean.

@github-actions

github-actions Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

bumpy-frog

This PR includes an empty bump file — no version bump is needed.


This comment is maintained by bumpy.

@pkg-pr-new

pkg-pr-new Bot commented May 20, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/varlock@707

commit: 3c1e2b2

@philmillman philmillman requested a review from theoephraim May 20, 2026 17:32
@philmillman

Copy link
Copy Markdown
Member

@theoephraim looks like the associated issue was already resolved in 1.2.0 but this might still be worth it for the additional test coverage

Copilot AI and others added 6 commits May 21, 2026 10:01
…stdout/stderr loss on Windows

Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/88778d17-339f-4845-8a95-e568d205c190

Co-authored-by: philmillman <3722211+philmillman@users.noreply.github.com>
…ming threshold

Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/88778d17-339f-4845-8a95-e568d205c190

Co-authored-by: philmillman <3722211+philmillman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/88778d17-339f-4845-8a95-e568d205c190

Co-authored-by: philmillman <3722211+philmillman@users.noreply.github.com>
The underlying stdout loss issue was resolved in 1.2.0. Drop the
exec.ts code change, changeset, devalue override, and erroneous
smoke-tests/bun.lock. Retain the new unit tests for exec (piping,
exit codes, timing) and smoke tests for `varlock run`.
@theoephraim theoephraim force-pushed the copilot/bugfix-child-stdout-loss branch from 3c1e2b2 to d9f9c48 Compare May 21, 2026 17:11
@theoephraim theoephraim changed the title fix(exec): use close event instead of exit to prevent piped stdout/stderr loss on Windows test: add exec unit tests and varlock run smoke tests May 21, 2026
@theoephraim theoephraim merged commit 15c112a into main May 21, 2026
24 checks passed
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.

[BUG]: child stdout/stderr lost when using varlock run -- on Windows PowerShell

3 participants