Skip to content

fix(ci): run integration tests from directory outside repo#138

Merged
CalvinAllen merged 1 commit into
mainfrom
fix/ci/test-workspace
Dec 14, 2025
Merged

fix(ci): run integration tests from directory outside repo#138
CalvinAllen merged 1 commit into
mainfrom
fix/ci/test-workspace

Conversation

@CalvinAllen

Copy link
Copy Markdown
Contributor

Summary

  • Run integration tests from a directory outside the cloned repo to avoid picking up .dtvem/runtimes.json
  • Also fixes SIGPIPE error (exit 141) when piping list-all to head

Problem

The repo has a local .dtvem/runtimes.json config that specifies versions different from what tests install. When tests run dtvem current, local config takes precedence over global config, causing verification failures.

Changes

  • Add TEST_WORKSPACE env var pointing to ${{ github.workspace }}/../dtvem-test-workspace
  • Create test workspace directory and copy dtvem binary there
  • Run all test commands from TEST_WORKSPACE
  • Add || true to list-all | head to prevent SIGPIPE failures

Test plan

  • Node.js integration tests pass on all platforms
  • Python integration tests pass on all platforms
  • Ruby integration tests pass on all platforms

Fixes #137
Fixes #134

Tests were picking up .dtvem/runtimes.json from the cloned repo,
causing 'current' command to read local config instead of global.

Changes:
- Add TEST_WORKSPACE env var pointing outside repo
- Create test workspace and copy dtvem binary there
- Run all test commands from TEST_WORKSPACE
- Add || true to list-all | head to fix SIGPIPE (exit 141)

Fixes #137
@CalvinAllen CalvinAllen merged commit 3bec118 into main Dec 14, 2025
2 checks passed
@CalvinAllen CalvinAllen deleted the fix/ci/test-workspace branch December 14, 2025 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

fix(ci): integration tests pick up local .dtvem/runtimes.json fix(ci): SIGPIPE error (exit 141) when piping list-all to head

1 participant