Skip to content

Update ros industrial ci job - #631

Merged
urfeex merged 3 commits into
UniversalRobots:masterfrom
urfeex:update_ros_industrial_ci_job
Nov 19, 2026
Merged

urfeex merged 3 commits into
UniversalRobots:masterfrom
urfeex:update_ros_industrial_ci_job

Conversation

@urfeex

@urfeex urfeex commented Nov 19, 2026

Copy link
Copy Markdown
Member
  • Run ICI on ubuntu 24.04

  • Remove Rolling and all main jobs

    The main purpose of this workflow is to ensure that we are not breaking
    the API towards the ROS driver. For this, we don't necessarily have to
    build all branches.
    The rolling version is failing a lot due to reasons outside of our
    hands.
    Main build will be failing as soon as we require new versions of
    dependencies in the driver that aren't synched to the main repo. As they
    are built from the same Git revision, there's no added benefit from
    those builds in terms of API compatibility, but they are more likely to
    fail due to something that isn't really an issue. The testing builds
    should get up-to-dates w.r.t. dependency updates.

  • Create separate clang-tidy jobs and fix errors

    All clang-tidy errors are outside of the public API, so no issues with
    addressing them.

The ubuntu-latest runner at the moment contains a 32bit incompatible
docker version. That fails the CB3 test.
The main purpose of this workflow is to ensure that we are not breaking
the API towards the ROS driver. For this, we don't necessarily have to
build all branches.
The rolling version is failing a lot due to reasons outside of our
hands.
Main build will be failing as soon as we require new versions of
dependencies in the driver that aren't synched to the main repo. As they
are built from the same Git revision, there's no added benefit from
those builds in terms of API compatibility, but they are more likely to
fail due to something that isn't really an issue. The testing builds
should get up-to-dates w.r.t. dependency updates.
Copilot AI balanced review requested due to automatic review settings November 19, 2026 09:53
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.76%. Comparing base (6172363) to head (693e1d1).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #631      +/-   ##
==========================================
+ Coverage   83.40%   83.76%   +0.35%     
==========================================
  Files         127      127              
  Lines        8559     8560       +1     
  Branches     3913     3913              
==========================================
+ Hits         7139     7170      +31     
+ Misses        998      977      -21     
+ Partials      422      413       -9     
Flag Coverage Δ
python_scripts 49.69% <ø> (ø)
start_ursim 87.81% <ø> (-0.23%) ⬇️
unit 64.08% <100.00%> (+0.01%) ⬆️
ur20-latest 81.46% <100.00%> (+0.02%) ⬆️
ur5-3.14.3 81.25% <100.00%> (+0.05%) ⬆️
ur5e-10.11.0 77.02% <100.00%> (-0.02%) ⬇️
ur5e-10.12.0 77.99% <100.00%> (+0.01%) ⬆️
ur5e-10.7.0 76.63% <100.00%> (+0.06%) ⬆️
ur5e-5.9.4 81.45% <100.00%> (+0.02%) ⬆️
ur7e-10.13.0 78.43% <100.00%> (ø)
ur7e-10.14.0 78.60% <100.00%> (?)

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.

🟡 Changes recommended

The new clang-tidy job fails because it reuses GCC compilation commands containing -Werror and the Clang-unsupported -Wno-maybe-uninitialized flag.

1 open issue
What changed in this PR

This PR focuses ROS driver compatibility checks on testing repositories and moves clang-tidy into a dedicated job, with naming cleanups that preserve the public API.

Changes:

  • Pin industrial CI to Ubuntu 24.04 and remove Rolling and main-repository builds.
  • Export compilation commands and add a separate clang-tidy job with report uploads.
  • Align internal and test identifiers with naming checks while preserving existing behavior.
File Description
tests/​test_script_reader.cpp Rename the include-chain length constant.
tests/​test_rtde_data_package.cpp Rename the log handler’s public warnings member.
tests/​test_rtde_allocations.cpp Align allocation counters and diagnostic member names.
tests/​test_primary_parser.cpp Rename local message-offset constants.
tests/​test_package_serializer.cpp Align local test constant names.
tests/​test_bin_parser.cpp Rename the expected-double constant.
src/​rtde/​rtde_writer.cpp Rename private register-key constants and their uses.
src/​rtde/​data_package.cpp Replace the type-trait variable template with a constexpr helper.
include/​ur_client_library/​rtde/​rtde_writer.h Update private register-key declarations.
include/​ur_client_library/​log.h Add a naming-check suppression for the existing public function.
examples/​rtde_roundtrip.cpp Rename the global signal flag.
.github/​workflows/​industrial-ci.yml Pin the runner and reduce the compatibility matrix.
.github/​workflows/​ci.yml Export compilation commands and add clang-tidy reporting.

Review effort: Balanced

Comment thread .github/workflows/ci.yml Resolved
@urfeex
urfeex force-pushed the update_ros_industrial_ci_job branch from 8c3d82c to 9f1e847 Compare November 19, 2026 10:25
Copilot AI balanced review requested due to automatic review settings November 19, 2026 10:25

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

No active review issues were identified that require changes before approval.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

All clang-tidy errors are outside of the public API, so no issues with
addressing them.
@urfeex
urfeex force-pushed the update_ros_industrial_ci_job branch from 9f1e847 to 693e1d1 Compare November 19, 2026 11:29
Copilot AI balanced review requested due to automatic review settings November 19, 2026 11:29

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

No active review issues remain for the CI and naming updates.

No open issues 🎉

Review effort: Balanced

@urfeex urfeex added the CI label Nov 19, 2026
@urfeex
urfeex marked this pull request as ready for review November 19, 2026 13:34
@urfeex
urfeex requested a review from a team November 19, 2026 13:34
@cursor

cursor Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Changes are CI configuration and internal naming; no behavioral API changes beyond private RTDEWriter static member renames.

Overview
Adds dedicated clang-tidy CI on Ubuntu 24.04: the Ubuntu build now exports compile_commands.json, .clang-tidy treats identifier-naming violations as errors (with GCC flag workarounds), and the job runs run-clang-tidy over src, examples, and tests with a summarized log artifact.

ROS Industrial CI is narrowed: runners move to ubuntu-24.04, the Rolling distro and main repo matrix entries are removed, leaving testing builds only for the listed ROS2 distros (plus noetic).

Code changes are mostly naming cleanups for readability-identifier-naming: global g_ prefixes (e.g. g_running), UPPER_CASE static constants on RTDEWriter, lowercase test locals instead of k* names, is_untyped_v → isUntyped() in RTDE data package code, and a NOLINT on strerror_portable. The deprecated-constructor integration test gets -Wno-deprecated-declarations so tidy/GCC do not fail on intentional deprecated API use.

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

@mergify

mergify Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@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 1 potential issue.

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 693e1d1. Configure here.

industrial_ci:
name: ${{matrix.ROS_DISTRO.NAME}}, ${{matrix.ROS_REPO}}
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

PR title has acronym and scope issues

Low Severity

The PR title Update ros industrial ci job lowercases the ROS and CI acronyms and only mentions the industrial CI change, so it reads as a spelling issue and understates the clang-tidy work. A clearer title would be Update ROS industrial CI and add clang-tidy.

Fix in Cursor Fix in Web

Triggered by team rule: PR title

Reviewed by Cursor Bugbot for commit 693e1d1. Configure here.

@urfeex
urfeex merged commit 048a295 into UniversalRobots:master Nov 19, 2026
101 of 103 checks passed
@urfeex
urfeex deleted the update_ros_industrial_ci_job branch November 19, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants