Add Cloud Agent dev environment config - #195
Draft
dbbaskette wants to merge 1 commit into
Draft
dbbaskette wants to merge 1 commit into
dbbaskette wants to merge 1 commit into
Conversation
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>
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.
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.jsonso 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 stabletarget/issuebot.jar).terminals: runsjava -jar target/issuebot.jar(the dashboard) on boot.ports: exposes8090.Why disable commit signing in
installThe Cloud VM's global git config enables
commit.gpgsign=truewithgpg.format=sshand 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 throwsUnsupportedSigningFormatException: No signer for ssh signatures. This caused 4 test errors inGitOperationsServiceTestandPlanningWorkspaceServiceTest. Settingcommit.gpgsign=falsein the environment resolves it without touching any application or test code.Verification
./mvnw clean package -DskipTestsproducedtarget/issuebot.jar(77 MB).db, liveness, and persistent storage allUP. Overall health reportsDOWNonly because noGITHUB_TOKENis configured (expected without secrets)../mvnw verify— 1804 tests; the only 4 errors were the JGit signing cases above, which pass after the git-config fix (re-ranGitOperationsServiceTest+PlanningWorkspaceServiceTest: 10/10 green).node --test src/test/js/*.cjs src/test/js/*.js— 69/69 passing.bld-20260915-6a416634) ran thisinstallfrom a fresh checkout and SUCCEEDED (install exit 0, snapshot created).Notes