Skip to content

Add CI, Cursor cloud setup, agent rules, and Java 17 test toolchain - #6

Merged
Ernie3 merged 3 commits into
mainfrom
chore/ci-and-cloud-env
Oct 19, 2026
Merged

Ernie3 merged 3 commits into
mainfrom
chore/ci-and-cloud-env

Conversation

@Ernie3

@Ernie3 Ernie3 commented Oct 19, 2026

Copy link
Copy Markdown
Member

Summary

Sets up merge gating, Cursor Cloud Agents, and shared AI conventions for Demonator15. No robot behavior changes — swerve refactor and unit tests come in a follow-up PR.

What's included

CI and Gradle

  • GitHub Actions (.github/workflows/ci.yml): ./gradlew build on push/PR to main using WPILib robot code CI (wpilib/roborio-cross-ubuntu:2025-22.04).
  • README CI status badge linked to that workflow.
  • Gradle: Java 17 test launcher + Foojay toolchain resolver so JUnit/WPILib vendor JNI tests run reliably locally and in automation.

Cursor Cloud

  • .cursor/environment.json + cloud-install.sh: idempotent Cloud Agent Build runs ./gradlew test.
  • Point the Demonator15 cloud environment at .cursor/environment.json on main after merge and run a Build.

Agent / team conventions

  • .cursor/rules/ — focused rules (not one giant file):
    • frc-project.mdc — always on: repo layout, WPILib/Gradle, PathPlanner naming, secrets, CI.
    • frc-commands-subsystems.mdc — src/main/java/**: command-based structure, RobotContainer, subsystem vs commands/.
    • frc-unit-tests.mdc — src/test/**: JUnit 5, sim extension, test style (activates once swerve tests land on main).
  • AGENTS.md — build commands and architecture summary for Cloud Agents and contributors.

Test plan

  • CI workflow passes on this PR
  • After merge, README badge reflects CI on main
  • (Optional) Cursor Cloud environment Build succeeds with .cursor/environment.json on main

Ernie3 and others added 2 commits October 18, 2026 22:18
GitHub Actions build on main PRs, README badge, .cursor/environment.json for Cloud Agents, and Java 17 Gradle test launcher for WPILib JNI.

Co-authored-by: Cursor <cursoragent@cursor.com>
Project-wide and file-scoped rules for command-based structure, tests, and cloud agent build instructions.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Ernie3 Ernie3 self-assigned this Oct 19, 2026
Set JavaCompile encoding and CI locale so Unicode in source comments does not fail javac on Linux US-ASCII defaults.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Ernie3
Ernie3 merged commit fe29cb3 into main Oct 19, 2026
1 check passed
@Ernie3
Ernie3 deleted the chore/ci-and-cloud-env branch October 19, 2026 22:15
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