aptos-labs / aptos-labs/workspace

npx aptos-workspace test fails with Timeout waiting for ports

Open
#62 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
7
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Environment Information
Aptos CLI Version: 6.1.1

Docker Version: 27.5.1

Operating System: Macbook Pro 15.2 m2

Node.js Version: v22.1.0

Project Dependencies:

@aptos-labs/workspace: 0.0.26

@aptos-labs/ts-sdk: 1.34.0

chai: 4.5.0

Description
When running npx aptos-workspace test, the tests fail to start with the following error:
```bash
Spinning up local networks to run tests, this may take a while...

1) "before all" hook: beforeAll in "{root}"

0 passing (1m)
1 failing

1) "before all" hook: beforeAll in "{root}":
Error: Failed to spawn test node: Timeout waiting for ports
at Function.spawn (node_modules/.pnpm/@aptos-labs+workspace@0.0.26_@aptos-labs+ts-sdk@1.34.0_chai@4.5.0/node_modules/@aptos-labs/workspace/src/internal/node.ts:57:43)
at async exports.b (node_modules/.pnpm/@aptos-labs+workspace@0.0.26_@aptos-labs+ts-sdk@1.34.0_chai@4.5.0/node_modules/@aptos-labs/workspace/src/internal/rootHook.ts:23:24)
at async Context.beforeAll (node_modules/.pnpm/@aptos-labs+workspace@0.0.26_@aptos-labs+ts-sdk@1.34.0_chai@4.5.0/node_modules/@aptos-labs/workspace/src/internal/rootHook.ts:10:5)
```

Image

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with `npx aptos-workspace test` using the reported Aptos CLI, Docker, macOS, Node.js, and dependency versions. Start by reading `@aptos-labs/workspace/src/internal/node.ts` at `spawn` and `src/internal/rootHook.ts` at `beforeAll`; done means the local test node starts without the port-timeout error and the tests run.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, node.js, typescript
Domain
cli, testing, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.