sendScriptBlocking: Restart interface and resend script on readOnlyInterfaceException#522
Merged
urfeex merged 14 commits intoJun 17, 2026
Conversation
Move send and monitoring to separate function Rename a variable to avoid shadowing
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #522 +/- ##
==========================================
- Coverage 78.95% 78.86% -0.09%
==========================================
Files 116 116
Lines 6689 6696 +7
Branches 2953 2960 +7
==========================================
Hits 5281 5281
- Misses 1040 1046 +6
- Partials 368 369 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
urfeex
reviewed
Jun 17, 2026
Co-authored-by: Felix Exner <feex@universal-robots.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
Reviewed by Cursor Bugbot for commit 31129a8. Configure here.
urfeex
approved these changes
Jun 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Implements functionality to restart primary interface and retry execution of script code, if the interface was initially in read-only mode
Note
Medium Risk
Changes robot script execution by stopping/restarting the primary pipeline on read-only errors; default-on retry alters failure timing and connection state for integrators.
Overview
sendScriptBlockinggains aretry_on_readonly_interfaceflag (default true). OnReadOnlyInterfaceException(robot error C210), it stops and restarts the primary client pipeline, then retries script upload and monitoring once; with retry disabled, behavior is unchanged.The blocking send/monitor loop is moved into a new private
sendScriptMonitorExecution;sendScriptBlockingkeeps pre-checks (robot mode, safety) and wraps execution with that retry logic. The start-wait parameter is renamedstart_timeout(docs updated), and private helpers are renamed to camelCase (prepareScript, etc.).sendScriptdocs now clarify upload-only vs blocking feedback.Fake-server tests cover retry off, retry success after C210 on first attempt, and persistent read-only after reconnect.
Reviewed by Cursor Bugbot for commit 572da92. Bugbot is set up for automated code reviews on this repo. Configure here.