Skip to content

fix(penpal): fail fast with helpful error when Warp is not connected#340

Open
pyricau wants to merge 1 commit intoblock:mainfrom
pyricau:py/warp-check-install
Open

fix(penpal): fail fast with helpful error when Warp is not connected#340
pyricau wants to merge 1 commit intoblock:mainfrom
pyricau:py/warp-check-install

Conversation

@pyricau
Copy link

@pyricau pyricau commented Mar 4, 2026

Summary

  • Adds a _check-warp recipe that tests reachability of global.block-artifacts.com before just install runs
  • Without Warp, pnpm install would retry packages repeatedly with confusing ECONNRESET errors before eventually failing
  • Now fails immediately with a clear message: "Error: Block's internal network is unreachable. Turn on Warp before running this command."

Note: warp-cli status reports "Connected" even when Block's internal network isn't reachable (it reflects Cloudflare tunnel state, not Block's overlay network), so we test reachability of the actual Artifactory host instead.

Test plan

  • With Warp off: just install exits immediately with the Warp error message
  • With Warp on: just install proceeds normally

🤖 Generated with Claude Code

Adds a _check-warp recipe that tests reachability of
global.block-artifacts.com before install runs. Without Warp, pnpm
install would silently retry and eventually fail with confusing
ECONNRESET errors.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
echo "Error: Block's internal network is unreachable." >&2
echo "Turn on Warp before running this command." >&2
exit 1
fi
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I asked Claude to do this but looking at the PR I'm realizing builderbot is one of our OSS projects, so probably not appropriate. Not sure what to do if anything.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant