Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
69b29c4
improve go test coverage
guyfleeman Nov 12, 2026
dc00dea
coverage tooling, bump deps
guyfleeman Nov 12, 2026
0395479
frontend unit tests
guyfleeman Nov 12, 2026
64af243
remvoe debug panel
guyfleeman Nov 18, 2026
b4e4aee
cleanup debug image render
guyfleeman Nov 18, 2026
4286496
update core port opening
guyfleeman Nov 19, 2026
9250c33
CI cleakup, staticcheck
guyfleeman Nov 19, 2026
8da1431
fix minor and moderate inconsistencies after user and unit testing
guyfleeman Nov 19, 2026
34b48f2
start new configs with no camera selected
guyfleeman Nov 25, 2026
b32e24b
deliniate network conflicts, improve error levels
guyfleeman Nov 25, 2026
03307fa
fix release check for configs with uninit camera configs
guyfleeman Nov 25, 2026
6da4032
normalize API names before finalizing version
guyfleeman Nov 25, 2026
45132e3
remove redundant navigation system
guyfleeman Nov 25, 2026
5723972
normalize app name across subsystems
guyfleeman Nov 25, 2026
1493391
singel typed topic list
guyfleeman Nov 25, 2026
e6802c2
formally typed API client
guyfleeman Nov 25, 2026
5ab223b
architecture documentation updates
guyfleeman Nov 25, 2026
eeed60b
update all dependencies
guyfleeman Nov 25, 2026
f3fb82b
fixes from e2e tests
guyfleeman Nov 25, 2026
e984aa6
fix load/save behavior and l/s cache coherence
guyfleeman Nov 29, 2026
f0162d5
release CI flow for tags
guyfleeman Nov 29, 2026
77fd81d
refactor to allow component tests, fix bugs found in those component …
guyfleeman Nov 29, 2026
ddaac74
minor style and typographic touchups
guyfleeman Nov 29, 2026
d7c3f73
add web component tests, fix foudn bugs
guyfleeman Nov 29, 2026
29d9d7c
update proto to MIT relic
guyfleeman Nov 29, 2026
e77ecc7
proto sm track dev/vision-processor until upstream merge
guyfleeman Nov 29, 2026
5b9219d
prep release test
guyfleeman Nov 29, 2026
65e14a7
initial commit of CV backend deb generation
guyfleeman Nov 29, 2026
2bc61d9
bug fixes in CI
guyfleeman Nov 29, 2026
a6acf94
update release dev docs
guyfleeman Nov 29, 2026
2ebf4d1
disable ubuntu 22.04 build in release
guyfleeman Nov 29, 2026
bfd763c
rename vision_processor to ssl-vision-processor
guyfleeman Nov 30, 2026
1896cbe
udpate architecture document
guyfleeman Nov 30, 2026
bc8d889
update agents files
guyfleeman Nov 30, 2026
a972990
complete review
guyfleeman Nov 30, 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
42 changes: 25 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: CI

on:
push:
branches: [master]
# v2.0-alpha is the integration branch until it merges to master.
branches: [master, v2.0-alpha]
pull_request:

# A second push to the same PR makes the first run's result irrelevant.
Expand All @@ -21,14 +22,14 @@ jobs:
with:
submodules: recursive

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/nix-installer-action@v23
- uses: DeterminateSystems/magic-nix-cache-action@v15

- name: Build all targets
run: |
nix develop --command bash -c '
cmake -B build .
make -C build -j"$(nproc)" vision_processor geometry_benchmark blob_benchmark
make -C build -j"$(nproc)" ssl-vision-processor geometry_benchmark blob_benchmark
'

build-apt:
Expand All @@ -53,7 +54,7 @@ jobs:
- name: Build all targets
run: |
cmake -B build .
make -C build -j"$(nproc)" vision_processor geometry_benchmark blob_benchmark
make -C build -j"$(nproc)" ssl-vision-processor geometry_benchmark blob_benchmark

gui-go:
name: Go (gui)
Expand All @@ -67,26 +68,33 @@ jobs:
with:
submodules: recursive

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/nix-installer-action@v23
- uses: DeterminateSystems/magic-nix-cache-action@v15

# The socket tests send real multicast over loopback, which Ubuntu
# ships with multicast off. They fail rather than skip under CI, so a
# missing step here can't hide as a skip.
- name: Enable loopback multicast
run: sudo scripts/lo-multicast.sh on

- name: Format, vet, build, test
- name: Format, vet, lint, build, test
run: |
nix develop --command bash -c '
cd gui
make fmt-check
make vet
make lint
make build
make go-test
make generate-check
'

# Reported, not enforced: a new advisory shouldn't fail an unrelated
# PR. Read it before tagging a release.
- name: Known vulnerabilities
continue-on-error: true
run: nix develop --command bash -c 'cd gui && make vulncheck'

gui-apt:
name: Go and frontend (gui, Ubuntu 24.04, no nix)
# The non-nix counterpart of gui-go and frontend: the same make targets,
Expand Down Expand Up @@ -119,7 +127,7 @@ jobs:
# Ubuntu doesn't package buf. Keep the version in step with the flake's
# (nix develop -c buf --version) and gui/DEVELOPMENT.md.
- name: Install buf
run: go install github.com/bufbuild/buf/cmd/buf@v1.72.0
run: go install github.com/bufbuild/buf/cmd/buf@v1.75.0

- name: Enable loopback multicast
run: sudo scripts/lo-multicast.sh on
Expand All @@ -144,8 +152,8 @@ jobs:
with:
submodules: recursive

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/nix-installer-action@v23
- uses: DeterminateSystems/magic-nix-cache-action@v15

# A first run publishes nothing, so this can't disturb anything.
- name: Build it and run it as a new user would
Expand All @@ -163,8 +171,8 @@ jobs:
submodules: recursive
fetch-depth: 0

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/nix-installer-action@v23
- uses: DeterminateSystems/magic-nix-cache-action@v15

- name: Build
run: nix develop --command bash -c 'cd gui && make deb'
Expand All @@ -189,8 +197,8 @@ jobs:
with:
submodules: recursive

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/nix-installer-action@v23
- uses: DeterminateSystems/magic-nix-cache-action@v15

- name: Lint, check, build
run: |
Expand All @@ -211,8 +219,8 @@ jobs:
with:
submodules: recursive

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/nix-installer-action@v23
- uses: DeterminateSystems/magic-nix-cache-action@v15

- name: Smoke tests
run: |
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/cv-deb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CV package

# ssl-vision-processor's .deb, for each Ubuntu LTS. Its own workflow, so it runs
# only when what goes into the package changes: each run builds three Docker
# images from scratch, ssl-vision-processor three times, and checks each package
# under systemd. The release workflow builds and checks them again for a tag.
on:
push:
branches: [master, v2.0-alpha]
paths: &paths
- .github/workflows/cv-deb.yml
# What build-in-container.sh compiles.
- CMakeLists.txt
- cmake/**
- kernel/**
- src/**
- tools/**
- proto
# What nfpm.yaml installs from outside packaging/.
- packaging/**
- robot-heights.yml
- README.md
- camera_ids.png
- line_corners.png
- config/legacy/**
pull_request:
paths: *paths

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
cv-deb:
name: Debian package (Ubuntu ${{ matrix.release }})
# Each release's package is built in a stock container of that release, so
# it links against that release's libraries, then installed and checked in
# another, running systemd (packaging/README.md).
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
release: ["24.04", "26.04"]
steps:
# The package version counts commits, which needs the history.
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

# For nfpm, pinned in packaging/go.mod. Not nix: this build is the
# distribution's, not nix's.
- uses: actions/setup-go@v5
with:
go-version-file: packaging/go.mod
cache-dependency-path: packaging/go.sum

- name: Build
run: packaging/build-deb.sh "${{ matrix.release }}"

- name: Install and check the services
run: packaging/deb-check-container.sh "${{ matrix.release }}"
84 changes: 77 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Release

# Pushing a v* tag publishes that version of the GUI host: the static binary,
# its tarball, the .deb packages and SHA256SUMS, as a GitHub Release.
# Pushing a v* tag builds that version of the GUI host (the static binary, its
# tarball and .deb packages) and of ssl-vision-processor (a .deb per Ubuntu LTS),
# with SHA256SUMS, as a draft GitHub Release. Only
# maintainers see a draft: install it, then publish it by hand. A tag with a
# suffix (v2.0.0-alpha.1, -rc.1) is marked as a pre-release.
on:
push:
tags: ["v*"]
Expand All @@ -10,8 +13,39 @@ permissions:
contents: write

jobs:
cv:
name: Release (ssl-vision-processor, Ubuntu ${{ matrix.release }})
runs-on: ubuntu-24.04
strategy:
matrix:
release: ["24.04", "26.04"]
steps:
# The version comes from git describe, which needs the tags.
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0

- uses: actions/setup-go@v5
with:
go-version-file: packaging/go.mod
cache-dependency-path: packaging/go.sum

- name: Build and check
run: |
packaging/build-deb.sh "${{ matrix.release }}"
packaging/deb-check-container.sh "${{ matrix.release }}"

- uses: actions/upload-artifact@v4
with:
name: cv-deb-${{ matrix.release }}
path: build-deb/*.deb
if-no-files-found: error

gui:
name: Release (gui)
# Drafts the release with every package, so it waits for ssl-vision-processor's.
needs: cv
runs-on: ubuntu-24.04
steps:
# The version comes from git describe, which needs the tags.
Expand All @@ -20,8 +54,18 @@ jobs:
submodules: recursive
fetch-depth: 0

- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: DeterminateSystems/nix-installer-action@v23
- uses: DeterminateSystems/magic-nix-cache-action@v15

- name: Enable loopback multicast
run: sudo scripts/lo-multicast.sh on

# Everything CI checks, on the tagged commit itself: a tag can point at
# one CI never ran on.
- name: Check
run: |
google-chrome --version # make check skips the browser tests without it
nix develop --command bash -c 'cd gui && make check'

- name: Build and check
run: nix develop --command bash -c 'cd gui && make release-check VERSION="$GITHUB_REF_NAME"'
Expand All @@ -34,11 +78,37 @@ jobs:
lintian --fail-on error,warning gui/bin/deb/*.deb
sudo gui/scripts/deb-check.sh gui/bin/deb/*_amd64.deb "$GITHUB_REF_NAME"
cp gui/bin/deb/*.deb gui/bin/release/
cd gui/bin/release && sha256sum *.tar.gz *-bin *.deb > SHA256SUMS

- name: Publish
- uses: actions/download-artifact@v4
with:
pattern: cv-deb-*
path: gui/bin/release
merge-multiple: true

# GitHub renames a ~ in an asset's name to a dot, which would leave
# SHA256SUMS naming files nobody can download. The packages' own
# version keeps its ~, so 2.0.0~alpha.1 still sorts before 2.0.0.
- name: Checksums
run: |
cd gui/bin/release
for f in *~*; do if [ -e "$f" ]; then mv "$f" "${f//\~/-}"; fi; done
sha256sum *.tar.gz *-bin *.deb > SHA256SUMS

- name: Draft the release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create "$GITHUB_REF_NAME" --generate-notes \
prerelease=()
case "$GITHUB_REF_NAME" in *-*) prerelease=(--prerelease) ;; esac
# Links in the notes open this release's files, not master's.
sed "s#/blob/master/#/blob/$GITHUB_REF_NAME/#g" gui/packaging/release-notes.md > "$RUNNER_TEMP/notes.md"
# Our notes, then GitHub's list of merged PRs since the last
# release. The first has no last release, and GitHub would list
# every PR in the repository's history, so it gets our notes only.
notes=(--notes-file "$RUNNER_TEMP/notes.md")
if last=$(git describe --tags --abbrev=0 --match 'v*' "$GITHUB_REF_NAME^" 2>/dev/null); then
notes+=(--generate-notes --notes-start-tag "$last")
fi
gh release create "$GITHUB_REF_NAME" --draft "${prerelease[@]}" --verify-tag \
"${notes[@]}" \
gui/bin/release/*.tar.gz gui/bin/release/*-bin gui/bin/release/*.deb gui/bin/release/SHA256SUMS
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@ __pycache__
# The GUI's backup of a config.yml it imported and now regenerates.
*.yml.orig
!/config/**/*.yml
# Not configs: test fixtures, CI, and vision_processor's default robot height
# Not configs: test fixtures, CI, and ssl-vision-processor's default robot height
# table, which it reads from the working directory.
!**/testdata/**/*.yml
!/.gitlab-ci.yml
!/.github/**/*.yml
!/robot-heights.yml

#Output binaries
vision_processor
ssl-vision-processor
blob_benchmark
geometry_benchmark
/gui/bin
Expand Down
15 changes: 0 additions & 15 deletions .gitlab-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "proto"]
path = proto
url = https://github.com/RoboCup-SSL/ssl-protocol-defs.git
branch = main
branch = dev/vision-processor
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(TOOLCHAIN_CHECK AND DEFINED CACHE{CMAKE_CXX_COMPILER})
include("${CMAKE_SOURCE_DIR}/cmake/CheckToolchain.cmake")
endif()

project(vision_processor)
project(ssl-vision-processor)
enable_language(ASM)

option(WITH_SPINNAKER "Build with Spinnaker support (if library available)" ON)
Expand Down Expand Up @@ -131,6 +131,8 @@ foreach(input_file IN LISTS CL_KERNELS)
string(APPEND CL_KERNEL_ASM ".global kernel_${input_filename_cname}\n.type kernel_${input_filename_cname}, @object\nkernel_${input_filename_cname}:\n\t.incbin \"${CMAKE_SOURCE_DIR}/${input_file}\"\n\t.byte 0\n\n")
string(APPEND CL_KERNEL_HEADER "extern const char kernel_${input_filename_cname}[];\n")
endforeach()
# Without this note the linker gives the whole program an executable stack.
string(APPEND CL_KERNEL_ASM ".section .note.GNU-stack,\"\",@progbits\n")

# Don't override cl_kernels.h or cl_kernels.S if already up-to-date to prevent unnecessary recompilation
set(CL_KERNEL_H "${GENERATED_DIR}/cl_kernels.h")
Expand Down
Loading
Loading