Skip to content

Add automated RTDE field updater - #605

Merged
urfeex merged 6 commits into
UniversalRobots:masterfrom
make-ki:feature/rtde-field-updater
Nov 24, 2026
Merged

urfeex merged 6 commits into
UniversalRobots:masterfrom
make-ki:feature/rtde-field-updater

Conversation

@make-ki

@make-ki make-ki commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements the maintenance automation proposed in #598, following the removal of documentation-versus-controller checks in #597.

The existing extractor (rewritten) now reads field names and data types from the official RTDE documentation and:

  • Adds new output fields and updates existing types in the fake RTDE server.
  • Preserves fields absent from the documentation, without reporting removals.
  • Regenerates the exhaustive output recipe.
  • Leaves input-only entries and unrelated C++ code unchanged.

A daily workflow, also runnable manually, proposes these changes through a PR on auto/update-rtde-fields. It updates the same PR on later runs and creates no PR when the generated resources are unchanged.

Generated server and recipe changes are intentionally excluded from this PR; the automation will propose them separately.
The script now edits C++ source, so the new offline tests check additions, type updates, preservation of existing content, register expansion, and repeatability.

Validation

  • All 11 updater tests passed locally.
  • Workflow validation with actionlint passed.
  • Live extraction and repeatability were verified locally.

Closes #598.

Copilot AI balanced review requested due to automatic review settings October 21, 2026 17:50
@cursor

cursor Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Changes are confined to test tooling and CI; generated RTDE map updates are proposed via a separate PR with offline validation gates.

Overview
Adds scheduled and manual GitHub Actions maintenance that keeps RTDE test fixtures aligned with Universal Robots’ official documentation, without landing doc-driven diffs in this PR itself.

generate_rtde_outputs.py is reworked from a recipe exporter into an updater that downloads the RTDE guide, locates the controller-output table by content (not fixed index), expands _X register rows, and then patches tests/fake_rtde_server.cpp (new fields, type fixes, preserved undocumented outputs) while regenerating exhaustive_rtde_output_recipe.txt and docs_rtde_output_recipe.txt. Invalid or ambiguous doc parses fail before any file is written.

test_generate_rtde_outputs.py adds offline unit tests for extraction, server patching, idempotency, and atomic writes. The update_rtde_fields.yml workflow runs those tests on every relevant PR; on schedule or workflow_dispatch it runs the updater, checks diff/idempotency, and opens or refreshes a PR on auto/update-rtde-fields with only the server and exhaustive recipe changes.

Reviewed by Cursor Bugbot for commit 2dcadaa. Bugbot is set up for automated code reviews on this repo. Configure here.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@make-ki make-ki changed the title Feature/rtde field updater Add automated RTDE field updater Oct 22, 2026
@mergify

mergify Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.93%. Comparing base (e13368e) to head (2dcadaa).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #605      +/-   ##
==========================================
- Coverage   84.00%   83.93%   -0.08%     
==========================================
  Files         128      128              
  Lines        8566     8566              
  Branches     3914     3914              
==========================================
- Hits         7196     7190       -6     
- Misses        959      963       +4     
- Partials      411      413       +2     
Flag Coverage Δ
python_scripts 49.69% <ø> (ø)
start_ursim 89.36% <ø> (ø)
unit 64.18% <ø> (-0.06%) ⬇️
ur20-latest 81.58% <ø> (+0.03%) ⬆️
ur5-3.14.3 81.30% <ø> (+0.01%) ⬆️
ur5e-10.11.0 77.15% <ø> (+0.01%) ⬆️
ur5e-10.12.0 ?
ur5e-10.7.0 76.76% <ø> (+0.07%) ⬆️
ur5e-5.9.4 81.56% <ø> (ø)
ur7e-10.13.0 78.46% <ø> (-0.08%) ⬇️
ur7e-10.14.0 78.73% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The review identifies no active issues in the automated RTDE resource maintenance changes.

No open issues 🎉

Review effort: Balanced

@urfeex
urfeex self-requested a review November 23, 2026 12:21
Copilot AI balanced review requested due to automatic review settings November 23, 2026 15:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.

There are 3 total unresolved issues (including 1 from previous review).

Fix All in Cursor

Reviewed by Cursor Bugbot for commit cff2f64. Configure here.

@urfeex
urfeex force-pushed the feature/rtde-field-updater branch from cff2f64 to 2dcadaa Compare November 23, 2026 19:09
Copilot AI balanced review requested due to automatic review settings November 23, 2026 19:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The updater’s cron schedule runs only on Mondays rather than daily, potentially delaying documentation updates by nearly a week.

1 open issue

Review effort: Balanced

@urfeex
urfeex merged commit f53cd97 into UniversalRobots:master Nov 24, 2026
61 of 63 checks passed
@urfeex urfeex added the dependencies Pull requests that update a dependency file label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically update the exhaustive recipe and fake RTDE server with new fields

3 participants