Fix/ci pnpm lockfile - #1
Open
simoncheungbg wants to merge 3 commits into
Open
simoncheungbg wants to merge 3 commits into
simoncheungbg wants to merge 3 commits into
Conversation
simoncheungbg
commented
Jun 1, 2026
Contributor
- 文档小修复
- github action修复
Restores the canonical portal repo name. The publishable npm package is still bitget-agent-installer, but it lives in the bitget/agent-hub repository (alongside docs, assets, e2e tests). The earlier rename of the repo folder to agent-installer was incorrect — the folder serves the broader portal role and should retain its agent-hub name.
The lockfile was missing after splitting this package out of the monorepo, causing CI to fail at actions/setup-node@v4 (cache: pnpm) and at `pnpm install --frozen-lockfile`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
… localhost Tests were pointing BITGET_API_BASE_URL at http://localhost:<port>, but MockServer binds only to 127.0.0.1. On Node 18+ with verbatim DNS lookup (default), GitHub Actions Ubuntu runners resolve `localhost` to ::1 first, so fetch hits IPv6 and the server isn't there — surfaced as "Failed to call Bitget endpoint ..." NetworkError. - MockServer now exposes a `baseUrl` getter that returns the actual 127.0.0.1:<port> it bound to, eliminating URL-construction mismatch. - All 5 test files use `server.baseUrl` instead of building their own. This also benefits external SDK consumers using the published `bitget-agent-sdk/testing` MockServer, who'd otherwise hit the same trap on Linux CI. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.