Skip to content

Add GPAD firmware CI check and GPAP parser tests - #620

Open
Yukti007 wants to merge 1 commit into
mainfrom
regression/gpad-native-tests-ci
Open

Yukti007 wants to merge 1 commit into
mainfrom
regression/gpad-native-tests-ci

Conversation

@Yukti007

@Yukti007 Yukti007 commented Dec 6, 2026 •

Copy link
Copy Markdown
Collaborator

Part of the regression testing work (#450). Scope docs are in #611.

What this PR does

1. Adds an automatic check on GitHub.
Every time someone opens a PR that changes the GPAD_API firmware, GitHub now does two things by itself:

  • runs the tests on a computer (no Krake needed)
  • makes sure the firmware still builds for the ESP32

If either one fails, the PR shows a red cross, so we know before merging.

2. Adds more tests for reading messages (GPAP). We go from 5 tests to 20. The new tests check that:

  • the mute (s), unmute (u), help (h) and info (i) messages are understood
  • alarm level 4, and the longest allowed message (80 letters) and ID (10 characters), work
  • bad messages are rejected. For example: no alarm level, a level above 5, a message that is too long, a wrong ID, or stray brackets.

It also adds two small empty functions (setUp / tearDown) that the test tool needs before it will build.

No firmware code is changed.

How I checked it

  • All 20 tests pass on my laptop and on GitHub.
  • The ESP32 firmware builds on my laptop and on GitHub.

One question

The README writes the mute and help commands in capital letters (S, U, H), but the code only accepts small letters (s, u, h). Which is right? I didn't add a test for this until we agree.

- New workflow runs the native unit tests and the ESP32 build on every
  PR that touches Firmware/GPAD_API, and on pushes to main.
- Adds setUp/tearDown so the native suite links under Unity.
- Adds 15 GPAP tests: mute, unmute, help and info message types; alarm
  level 4 and max-length content/id; and malformed input (empty/null
  buffer, unknown type, missing or out-of-range level, overlong content
  or id, bad id/designator, duplicates, stray delimiters).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-06T05:23:07.352226Z ba04b6b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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