Skip to content

Add Cloud Agent dev environment config - #195

Draft
dbbaskette wants to merge 1 commit into
mainfrom
cursor/setup-dev-environment-9543
Draft

dbbaskette wants to merge 1 commit into
mainfrom
cursor/setup-dev-environment-9543

Conversation

@dbbaskette

@dbbaskette dbbaskette commented Sep 15, 2026

Copy link
Copy Markdown
Owner

Summary

Sets up a reproducible development environment for IssueBot on Cursor Cloud Agents and demonstrates that the application runs end-to-end.

This run started with no linked environment, so setup ran just-in-time on the default image (which already ships Java 21 and Node 22). This PR captures the setup as a repository-managed .cursor/environment.json so future agents/branches get it automatically.

What this adds

  • .cursor/environment.json:
    • install: disables git commit signing, then builds the app with ./mvnw --batch-mode -q clean package -DskipTests (produces the stable target/issuebot.jar).
    • terminals: runs java -jar target/issuebot.jar (the dashboard) on boot.
    • ports: exposes 8090.

Why disable commit signing in install

The Cloud VM's global git config enables commit.gpgsign=true with gpg.format=ssh and Cursor's SSH signing helper. The git-backed Java tests use JGit to create commits in throwaway temp repos; JGit cannot use native git's SSH signing program and throws UnsupportedSigningFormatException: No signer for ssh signatures. This caused 4 test errors in GitOperationsServiceTest and PlanningWorkspaceServiceTest. Setting commit.gpgsign=false in the environment resolves it without touching any application or test code.

Verification

  • Build: ./mvnw clean package -DskipTests produced target/issuebot.jar (77 MB).
  • App boot: started on port 8090, Flyway applied 46 migrations, dashboard returns HTTP 200; db, liveness, and persistent storage all UP. Overall health reports DOWN only because no GITHUB_TOKEN is configured (expected without secrets).
  • Java tests: ./mvnw verify — 1804 tests; the only 4 errors were the JGit signing cases above, which pass after the git-config fix (re-ran GitOperationsServiceTest + PlanningWorkspaceServiceTest: 10/10 green).
  • JS tests: node --test src/test/js/*.cjs src/test/js/*.js — 69/69 passing.
  • Dashboard UI walkthrough (Dashboard, Repositories, Settings, Setup pages, light/dark theme toggle) recorded and verified.
  • Clean-pod validation: a draft environment build (bld-20260915-6a416634) ran this install from a fresh checkout and SUCCEEDED (install exit 0, snapshot created).

Notes

  • No application code or tests were modified; changes are additive (a single new config file).
Open in Web Open in Cursor 

Adds .cursor/environment.json so Cloud Agents build the app, expose the
dashboard on port 8090, and run IssueBot automatically. The install step
disables git commit signing (gpg.format=ssh) which JGit cannot honor and
which otherwise breaks the git-backed test suite.

Co-authored-by: Dan Baskette <dbbaskette@users.noreply.github.com>
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.

2 participants