Skip to content

test(api): wait for command start before cancelling - #1685

Closed
frahlg wants to merge 1 commit into
masterfrom
fix/control-test-cancel
Closed

frahlg wants to merge 1 commit into
masterfrom
fix/control-test-cancel

Conversation

@frahlg

@frahlg frahlg commented Oct 17, 2026

Copy link
Copy Markdown
Member

The race CI job can fail TestDriverControlAmbiguousCommandRestoresDefault before it reaches the condition the test needs. Its 10 ms request deadline can expire before the driver starts; in that case no command ran and no safety default is due. The test then waits for a default that should not occur.

The Lua probe now reports when it has changed the value and begun the command. The test waits for that signal, cancels the request, then checks the same error, restored default and cleared hold. Only the test changes; driver and API behavior stay the same.

Validation: the unchanged test on master failed 6 of 100 runs under go test -race. The fixed test passes 100 runs, and all driver-control/default tests pass with the race detector. No hardware was used.

Found while checking #1683. This test fix is separate from the Cloud pairing change.

Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T06:18:35.156842Z 73a7290 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.

@frahlg frahlg added the no-changeset PR intentionally exempt from the changeset requirement (dev tooling / non-shipping) label Oct 17, 2026
@frahlg frahlg closed this in #1683 Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changeset PR intentionally exempt from the changeset requirement (dev tooling / non-shipping)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant