Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
d9b32d1
Remove already indirectly included pyqt6-qt6 dependency
nycrat Oct 12, 2026
c97dc9b
Create minimal environment setup for running thunderscope
nycrat Oct 12, 2026
dce51a2
Re-write setup to only use wget and install all into /opt/tbots
nycrat Oct 12, 2026
ff94451
Fix user vs sudo_user bug
nycrat Oct 12, 2026
175e041
Fix autoref binary context manager to refer to new path
nycrat Oct 12, 2026
355797c
Add tigers autoref installation in minimal script
nycrat Oct 12, 2026
7b8cee2
Fix qt bootstrap function call in test fixtures
nycrat Oct 12, 2026
b4ecb06
Merge branch 'master' into avah/minimal_environment_setup_tscope
nycrat Oct 14, 2026
91dcb0d
Fix issues caused by merge
nycrat Oct 14, 2026
e3c833a
Run minimal setup on ci/cd
nycrat Oct 14, 2026
d575cd2
Run setup as sudo on ci
nycrat Oct 14, 2026
5b8df69
Use hermetic llvm toolchain for c++ builds
nycrat Oct 15, 2026
875654f
some clang compatibility stuff on linux
nycrat Oct 15, 2026
3dcc945
Use /opt/tbots/ for thunderscope local files for now
nycrat Oct 15, 2026
1e1f9cc
Install xvfb on action runner to make headless ui work
nycrat Oct 15, 2026
8a82e29
Debug ci gui dependencies
nycrat Oct 15, 2026
34a658b
Test
nycrat Oct 15, 2026
f0a4da0
Test ci again
nycrat Oct 15, 2026
90c0773
fix floating point exception in bullet when O3 is on
nycrat Oct 15, 2026
3d09a47
Add gui dependency for linux ci runner
nycrat Oct 15, 2026
0b4002b
Re-enable -Werror and fix lots of warnings
nycrat Oct 15, 2026
7819090
Fix autoref unzip destination
nycrat Oct 15, 2026
7f4b380
Fix signed type
nycrat Oct 15, 2026
19a4150
Simplify setup minimal script
nycrat Oct 16, 2026
9266194
Perhaps this will work for cross compile for robot software
nycrat Oct 16, 2026
fccd055
Get rid of gcc thing that isn't relevant with clang
nycrat Oct 16, 2026
343c6fc
Cross compile for STM32 motor board
nycrat Oct 16, 2026
bc66ec7
Remove old toolchain configs (this might break everything)
nycrat Oct 16, 2026
0ffb784
Hermetic platformio
nycrat Oct 16, 2026
ab7bace
Fix diagnostics cli not finding python venv
nycrat Oct 16, 2026
0259aba
update requirements_lock.txt
nycrat Oct 16, 2026
c458f18
Patch to resolve esptool thingy
nycrat Oct 16, 2026
b38ae3c
Fix some minor issues
nycrat Oct 16, 2026
be20634
Update CI stuff
nycrat Oct 16, 2026
01fae68
Define starlark transition to be able to flash robot software on any
nycrat Oct 18, 2026
7d70a50
Add unzip as a system requirement in comment
nycrat Oct 18, 2026
d998800
Remove unused variable
nycrat Oct 18, 2026
cbdee82
Update bcr googletest version, removing patches
nycrat Oct 18, 2026
19be701
Fix googletest version compat issues
nycrat Oct 20, 2026
95237ab
pin espressif32 version use archived jdk21 oracle installation instea…
Lo3wer Oct 20, 2026
a47740b
Fix previously ignored unit tests
nycrat Oct 22, 2026
3d31f4f
Add chardet as explicit dependency for platformio
nycrat Nov 14, 2026
b5017e5
Merge branch 'master' into avah/minimal_environment_setup_tscope
nycrat Nov 14, 2026
1af42f8
Add --no-annotate flag for platformio requirements lock
nycrat Nov 15, 2026
188e957
Resolve small type error
nycrat Nov 15, 2026
27926cf
Remove temporary test script
nycrat Nov 16, 2026
1ea0990
Merge branch 'master' into avah/minimal_environment_setup_tscope
nycrat Nov 19, 2026
3c5ba3b
Hermeticity RFC: Use http_file to fetch gamecontroller binary (#4066)
nycrat Nov 19, 2026
7140518
Ada/hermetic tbots py (#4059)
ada1027 Nov 19, 2026
6ba5ab0
Do sudo apt update before environment setup
nycrat Nov 20, 2026
7123f85
Install lint and format tools through Bazel (#4051)
AmyKawa Nov 20, 2026
71d0c7e
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Nov 20, 2026
84da29b
Fix minor lint and format bug
nycrat Nov 20, 2026
4a6e15e
Remove references to tbotspython for host, still exists for robot
nycrat Nov 21, 2026
84129c8
Address some review comments
nycrat Nov 21, 2026
a1e0d28
Run generate_fsm_diagrams with bazel hermetic python
nycrat Nov 21, 2026
dc42811
Add include for free
nycrat Nov 21, 2026
51ede5f
Maggie/hermetic autoref (#4073)
maggiettu Nov 21, 2026
0e00a2a
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Nov 21, 2026
2d6f240
Remove irrelevant setting
nycrat Nov 21, 2026
2909bc4
Revert "Remove irrelevant setting"
nycrat Nov 21, 2026
db97aac
Check for powerloop already cached when generating tar.gz
nycrat Nov 21, 2026
3f53a6d
Use -ftrapping-math instead of manually telling bullet to not optimize
nycrat Nov 21, 2026
99ca075
Bazel Hermeticity RFC: Add MacOS GitHub actions (#4057)
GrantYu9 Nov 21, 2026
d9810dd
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Nov 21, 2026
b5d5d56
Fix comment formatting in .bazelrc
GrantYu9 Nov 21, 2026
8f07081
Resolve issues with flashing using ansible
Thunderbots Nov 22, 2026
2003e8b
Fix power tar gen
Thunderbots Nov 22, 2026
a81c94f
Add temporary fix for thread limit issue
nycrat Nov 22, 2026
de5dea4
[pre-commit.ci lite] apply automatic fixes
pre-commit-ci-lite[bot] Nov 22, 2026
97cc291
Actually fix power tar gen
nycrat Nov 22, 2026
b4b6ccf
Patch on inconsistent order of building powerloop
nycrat Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .github/actions/environment-setup/action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: Environment Setup
description: Sets up the environment

on:
workflow_call:
inputs:
os:
required: true
type: string
inputs:
os:
required: true
type: string

runs:
using: "composite"
Expand All @@ -17,18 +16,25 @@ runs:
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc

- name: Run setup_software.sh
shell: bash
run: |
sudo "${GITHUB_WORKSPACE}"/environment_setup/setup_minimal.sh

- name: Install GUI dependencies for Linux runner
shell: bash
if: runner.os == 'Linux'
run: |
"${GITHUB_WORKSPACE}"/environment_setup/setup_software.sh
sudo apt-get update
sudo apt-get install xvfb libxcb-cursor0 python3-pyqt6

- name: Run setup_software_mac.sh
- name: Install GUI dependencies for macOS
shell: bash
if: runner.os == 'macOS'
run: |
"${GITHUB_WORKSPACE}"/environment_setup/setup_software_mac.sh
brew update
brew install pyqt@6

- name: Cache Bazel disk cache
uses: actions/cache@v4
Expand Down
83 changes: 64 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches: [
master,
avah/minimal_environment_setup_tscope,
grant/add_macos_action_runners
]
schedule:
- cron: '0 8 * * *' # 12 AM PST / 8 AM UTC
workflow_dispatch:
Expand All @@ -25,7 +29,14 @@ concurrency:

jobs:
check-and-clear-cache:
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-24.04,
macos-latest
]
outputs:
should_run: ${{ steps.check.outputs.should_run }}
steps:
Expand Down Expand Up @@ -63,20 +74,16 @@ jobs:
multiplatform-build:
needs: check-and-clear-cache
if: needs.check-and-clear-cache.outputs.should_run == 'true'
strategy:
matrix:
platform: [ ubuntu-24.04-arm ]

name: Ubuntu Alternate Builds
runs-on: ${{ matrix.platform }}
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/environment-setup

- name: Software Build Test
run: |
cd src
bazel build --show_timestamps --copt=-O3 --verbose_failures \
bazel build --show_timestamps --copt=-O3 --verbose_failures --keep_going \
-- //... -//software:unix_full_system \
-//software/gameplay_tests/... \
-//software/ai/stp/... \
Expand All @@ -86,7 +93,7 @@ jobs:
- name: Raspberry Pi Build Test
run: |
cd src
bazel build //software/embedded:thunderloop_main --copt=-O3 --platforms=//toolchains/cc:robot
bazel build //software/embedded:thunderloop_main --copt=-O3 --platforms=@llvm//platforms:linux_x86_64_gnu.2.28

- name: Motor Firmware build Test
run: |
Expand All @@ -95,7 +102,14 @@ jobs:

motor-firmware:
name: Motor Firmware
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-24.04,
macos-latest
]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/environment-setup
Expand All @@ -109,41 +123,61 @@ jobs:
needs: check-and-clear-cache
if: needs.check-and-clear-cache.outputs.should_run == 'true'
name: Software Tests
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-24.04,
macos-latest
]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/environment-setup

- name: Software Test
run: |
cd src
bazel test --copt=-O3 --show_timestamps --verbose_failures \
bazel test --copt=-O3 --show_timestamps --verbose_failures --keep_going \
-- //... -//software:unix_full_system \
-//software/gameplay_tests/... \
-//software/ai/stp/... \
-//software/ai/navigator/... \
-//software:unix_full_system_tar_gen

robot-tests:
robot-tests: # cross compile test
needs: check-and-clear-cache
if: needs.check-and-clear-cache.outputs.should_run == 'true'
name: Robot Software Tests
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-24.04,
macos-latest
]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/environment-setup

- name: Raspberry Pi Build
run: |
cd src
bazel build //software/embedded:thunderloop_main --copt=-O3 --platforms=//toolchains/cc:robot

bazel build //software/embedded:thunderloop_main --copt=-O3 --platforms=@llvm//platforms:linux_x86_64_gnu.2.28

simulated-gameplay-tests:
needs: check-and-clear-cache
if: needs.check-and-clear-cache.outputs.should_run == 'true'
name: Simulated Gameplay Tests
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-24.04,
macos-latest
]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/environment-setup
Expand Down Expand Up @@ -180,15 +214,26 @@ jobs:
needs: check-and-clear-cache
if: needs.check-and-clear-cache.outputs.should_run == 'true'
name: AutoRef'd Game (3 Minutes)
runs-on: ubuntu-24.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-24.04,
macos-latest
]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/environment-setup

- name: AI vs AI (3 minutes)
run: |
cd src
bazel run --run_under="xvfb-run" //software/thunderscope:thunderscope_main --copt=-O3 -- --enable_autoref --ci_mode
if [ "$RUNNER_OS" == "Linux" ]; then
bazel run --run_under="xvfb-run" //software/thunderscope:thunderscope_main --copt=-O3 -- --enable_autoref --ci_mode
else
bazel run //software/thunderscope:thunderscope_main --copt=-O3 -- --enable_autoref --ci_mode
fi

- name: Upload AI vs AI logs
# Ensure that simulated test logs get uploaded
Expand Down
34 changes: 25 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ on:

jobs:
prepare_release:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-24.04,
ubuntu-24.04-arm,
macos-latest
]
outputs:
tag: ${{ steps.bump_logic.outputs.tag }}
should_release: ${{ steps.check.outputs.count > 0 }}
Expand Down Expand Up @@ -114,15 +122,15 @@ jobs:
upload_assets:
needs: prepare_release
if: needs.prepare_release.outputs.should_release == 'true'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-x86, mac-arm64]
include:
- platform: ubuntu-x86
runner: ubuntu-24.04
- platform: mac-arm64
runner: macos-latest
runs-on: ${{ matrix.runner }}
os: [
ubuntu-24.04,
ubuntu-24.04-arm,
macos-latest
]
permissions:
contents: write
steps:
Expand All @@ -149,7 +157,15 @@ jobs:

publish_release:
needs: [prepare_release, upload_assets]
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
ubuntu-24.04,
ubuntu-24.04-arm,
macos-latest
]
permissions:
contents: write
steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ on:

jobs:
stale:

runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
pull-requests: write

Expand Down
5 changes: 3 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ repos:

- id: generate_fsm_diagrams
name: generate new FSM diagrams
language: python
entry: scripts/fsm_diagram_generator.py
language: system
entry: scripts/generate_fsm_diagrams.sh
pass_filenames: false
2 changes: 1 addition & 1 deletion docs/getting_started/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ We use Ansible to automatically update software running on the robot. [More info
To update binaries on a working robot, you can run:

```bash
bazel run //software/embedded/ansible:run_ansible --platforms=//toolchains/cc:robot -- --playbook deploy_robot_software.yml --hosts <robot_ip> --ssh_pass <robot_password>
bazel run //software/embedded/ansible:run_ansible -- --playbook deploy_robot_software.yml --hosts <robot_ip> --ssh_pass <robot_password>
```

Where `<robot_ip>` is the IP address of the robot you are deploying to. The `robot_password` is the password used to login to the `robot` user on the robot.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

For a more detailed look at how Ansible works, [see the RFC](https://docs.google.com/document/d/1hN3Us2Vjr8z6ihqUVp_3L7rrjKc-EZ-l2hZJc31gNOc/edit)

Example command: `bazel run //software/embedded/ansible:run_ansible --platforms=//toolchains/cc:robot -- --playbook deploy_robot_software.yml --hosts <robot_ip> --ssh_pass <robot_password>`
Example command: `bazel run //software/embedded/ansible:run_ansible -- --playbook deploy_robot_software.yml --hosts <robot_ip> --ssh_pass <robot_password>`
* <robot_ip>: IP address of the robot
* <robot_password>: Password of the robot

Expand Down
2 changes: 1 addition & 1 deletion docs/working_with_hardware/setup-pi.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ ping -c 3 8.8.8.8
3. Exit the SSH connection to the Raspberry Pi with the `exit` command.
4. Change directory to `Software/src` and run the bazel ansible command:
```bash
bazel run //software/embedded/ansible:run_ansible --platforms=//toolchains/cc:robot -- --playbook setup_pi.yml --hosts <robot_name>.local --ssh_pass <robot_password>
bazel run //software/embedded/ansible:run_ansible -- --playbook setup_pi.yml --hosts <robot_name>.local --ssh_pass <robot_password>
```
* Ensure you configure `<robot_name>` and `<password>` in the command above. Copy/pasting the above won't work.
* This may take a while.
Expand Down
10 changes: 5 additions & 5 deletions docs/working_with_hardware/useful-robot-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Individual miscellaneous tasks (ex reboot, shutdown, rtt test) can be run throug
To view a list of supported arguments, run:

```bash
bazel run //software/embedded/ansible:run_ansible --platforms=//toolchains/cc:robot -h
bazel run //software/embedded/ansible:run_ansible -h
```

If desired, the `-ho`, `--hosts` argument can be replaced with `-p`, `--port`, defining a port to listen to for Announcements from hosts.
Expand All @@ -77,7 +77,7 @@ This will stop the current Systemd services, replace and restart them. Binaries
<b>This will trigger motor calibration meaning the wheels may spin. Please elevate the robot so the wheels are not touching the ground for proper calibration.</b>

```bash
bazel run //software/embedded/ansible:run_ansible --platforms=//toolchains/cc:robot -- --playbook deploy_robot_software.yml --hosts <robot_ip> --ssh_pass <robot_password>
bazel run //software/embedded/ansible:run_ansible -- --playbook deploy_robot_software.yml --hosts <robot_ip> --ssh_pass <robot_password>
```

* <robot_ip> is the IP address of the robot
Expand All @@ -102,7 +102,7 @@ This will flash powerloop, the current firmware in `software/power/`, onto the p
Looking from the back of the robot the reset and boot buttons are on right side of the battery holder on the lowest board with the reset being on the left and the boot on the right. <b>Warning it may kick/chip when pressed.</b>

```bash
bazel run //software/embedded/ansible:run_ansible --platforms=//toolchains/cc:robot -- --playbook deploy_powerboard.yml --hosts <robot_ip> --ssh_pass <robot_password>
bazel run //software/embedded/ansible:run_ansible -- --playbook deploy_powerboard.yml --hosts <robot_ip> --ssh_pass <robot_password>
```

## Flashing the Motor Driver Boards from Raspberry Pi
Expand All @@ -121,7 +121,7 @@ This section refers to setting up the computer on the robot for the first time.
### Raspberry Pi

```bash
bazel run //software/embedded/ansible:run_ansible --platforms=//toolchains/cc:robot -- --playbook setup_pi.yml --hosts <robot_ip> --ssh_pass <robot_password>
bazel run //software/embedded/ansible:run_ansible -- --playbook setup_pi.yml --hosts <robot_ip> --ssh_pass <robot_password>
```

## Robot Diagnostics
Expand Down Expand Up @@ -154,7 +154,7 @@ Deploys the STSPIN Motor Controller Test binary onto a robot through Ansible.
From Software/src:

```bash
bazel run //software/embedded/ansible:run_ansible --platforms=//toolchains/cc:robot -- --playbook deploy_stspin_motor_controller_test.yml --hosts <robot_name> --ssh_pass <robot_password>
bazel run //software/embedded/ansible:run_ansible -- --playbook deploy_stspin_motor_controller_test.yml --hosts <robot_name> --ssh_pass <robot_password>
```

* replace the \<robot_ip\> with the actual ip address of the Raspberry Pi for the ssh connection.
Expand Down
Loading
Loading