Skip to content
This repository was archived by the owner on Dec 30, 2025. It is now read-only.

Conversation

@dabeycorn
Copy link
Contributor

final 2025 changes

* regenerate WPIlib project

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* create README.md

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* chore: update build.gradle dependancies and settings

Configured the following dependancies:
* spotless
* gversion
* junit jupiter api
* junit platform launcher

Created the following gradlew tasks/arguments:
* installGitHooks (copies all files in /.scripts directory to
/.git/hooks
* -PprofileMode (starts a profiling server that can be attached to with
a JMX client)

Misc:
* Added constant for minimum heap size (default 100 MB)

* feat: create post-generation checklist in README.md

* feat: create template LICENSE

* feat: create AUTHORS.md template

* feat: create auto signoff git hook

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* refactor: move classes to new gradle build path

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* feat: create template README.md

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* chore: create build gh workflow

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* chore: create fix-format gh workflow

Create GitHub workflow for checking formating with spotless and then
running spotless if necessary.

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* chore: create run-tests gh workflow

Create GitHub workflow for running all robot tests

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* chore: add gversion build files to .gitignore

The BuildConstants class generated by gversion should be ignored

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* Delete src/main/java/org/frc6423/robot/BuildConstants.java

Signed-off-by: Dasun L. Abeykoon <Dasun20202020@hotmail.com>

* docs: remove unused assets

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* chore: update fix-format.yml gh workflow

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* chore: fix run-tests.yml gh workflow

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* chore: fix all workflows by declaring name

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* chore: final fix for fix-format.yml

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

---------

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>
Signed-off-by: Dasun L. Abeykoon <Dasun20202020@hotmail.com>
* feat: create Tracer.java util class

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* feat: create CommandRobot.java driver class

{@link CommandRobot} is an extension of {@link TimedRobot}
 *
 * <p>The {@link CommandRobot} class is intendended to subclassed by a
user creating a Robot Program
 *
 * <p>The {@link CommandScheduler} is automatically called and traced by
{@link Tracer} every period
 *
 * <p>Abstract method getAutonomousCommand() is automatically scheduled
on autonomous initialization
 *
 * <p>Garbage collector automatically called every 5 seconds
 *
 * @see wpilibsuite/allwpilib#5939
 * @see {@link TimedRobot}

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* feat: create TestUtil.java utils class

heavily inspired by FRC 1155's TestingUtils.java

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* feat: replace generated robot program with CommandBased implementation

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* chore: manual declare junit testruntime deps

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

* feat: create Robot Program test

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>

---------

Signed-off-by: Dasun Abeykoon <Dasun20202020@hotmail.com>
Signed-off-by: Dasun L. Abeykoon <Dasun20202020@hotmail.com>
Comment on lines +11 to +36
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: init Java
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Grant executive perms
run: chmod +x gradlew
- name: Check formatting
id: formatting
run: ./gradlew spotlessCheck
- name: Format Code
if: ${{ failure() && steps.formatting.conclusion == 'failure'}}
run: ./gradlew spotlessApply
- name: Commit and Push formatted Code
if: ${{ failure() && steps.formatting.conclusion == 'failure'}}
run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git add .
git commit -m "auto generated"
git push

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment on lines +11 to +24
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: checkout repository
uses: actions/checkout@v3
- name: init Java
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: "17"
- name: Grant executive perms
run: chmod +x gradlew
- name: Run robot tests
run: ./gradlew test No newline at end of file

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Create another branch from release/2025 with permission changes for all workflows and then create a PR

@dabeycorn dabeycorn merged commit fbabbd3 into main Dec 16, 2025
11 checks passed
@dabeycorn dabeycorn deleted the release/2025 branch December 16, 2025 05:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants