Set up Cloud Agent development environment - #10
Conversation
Co-authored-by: Ben Schellenberger <bschellenberger2600@users.noreply.github.com>
|
Warning Review limit reached
More reviews will be available in 57 minutes and 29 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Sets up and verifies the full development environment for
git-harness(Go library + CLI + Python/Java polyglot wrappers) for Cursor Cloud Agents.The only code change is documentation: a new
## Cursor Cloud specific instructionssection inAGENTS.mdcapturing the layer layout, the Python venv location, theGIT_HARNESS_CLIrequirement for wrappers, and a known cloud-only test caveat.Environment setup
python3.12-venv,maven(JDK 21 already present).go mod download; create/refresh venv at~/.venvs/git-harness;pip install -e "testkit/python[dev]".Verification
gofmt -l,go build ./...,go vet ./...,go test -race ./...go build -o bin/git-harness-cli ./cmd/git-harness-cli+ JSON smokepytest tests/(10 passed) + 2 sample smokesmvn test(4) + 2 sample smokesvalidate_specify.sh* One test,
git/command_test.go::TestFetchRemote_UnauthenticatedHTTPSFailsWithoutPrompt, fails only in the cloud environment because the agent's globalurl.<token>.insteadOfrewrite authenticates the "unauthenticated" fetch (GitHub returnsRepository not foundinstead of a credential prompt). This is an environment artifact, not a code bug; documented inAGENTS.md.Hello-world (CLI end-to-end)
Detect dirty repo →
git_auto_commit_dirty→ verify clean → read branch/HEAD sha.git_harness_hello_world.log
git_harness_env_verification.log