Skip to content

ci: fix kilted branch CI to actually test against kilted - #3769

Merged
nbbrooks merged 1 commit into
moveit:kiltedfrom
nbbrooks:nbbrooks/fix-kilted-ci-config
Jun 23, 2026
Merged

nbbrooks merged 1 commit into
moveit:kiltedfrom
nbbrooks:nbbrooks/fix-kilted-ci-config

Conversation

@nbbrooks

Copy link
Copy Markdown
Collaborator

When the kilted branch was forked from main, two workflow files were overlooked and still target rolling/humble/jazzy:

  1. .github/workflows/ci.yaml's matrix was testing kilted-branch code against rolling-ci/humble-ci/jazzy-ci images. PR CI thus failed for reasons unrelated to the PR (e.g. mergify-backported Fix ERROR stream + check only active controllers for multiple chained controllers (backport #3556) #3768 failed all 6 jobs because they ran on rolling+humble+jazzy infrastructure that doesn't match kilted's expected toolchain).

  2. .github/workflows/docker.yaml's matrix kept ROS_DISTRO=[rolling], so the kilted branch never built its own moveit/moveit2:kilted-ci / kilted-release / kilted-source images. The push trigger also still pointed at branches: [main].

Match the jazzy branch's pattern: ci.yaml uses kilted-ci for both ccov and ikfast+clang-tidy jobs; docker.yaml builds kilted images and triggers on pushes to kilted.

Followup work after this lands:

Description

Please explain the changes you made, including a reference to the related issue if applicable

Checklist

  • Required by CI: Code is auto formatted using clang-format
  • Extend the tutorials / documentation reference
  • Document API changes relevant to the user in the MIGRATION.md notes
  • Create tests, which fail without this PR reference
  • Include a screenshot if changing a GUI
  • While waiting for someone to review your request, please help review another open pull request to support the maintainers

When the kilted branch was forked from main, two workflow files were
overlooked and still target rolling/humble/jazzy:

1. .github/workflows/ci.yaml's matrix was testing kilted-branch code
   against rolling-ci/humble-ci/jazzy-ci images. PR CI thus failed for
   reasons unrelated to the PR (e.g. mergify-backported moveit#3768 failed
   all 6 jobs because they ran on rolling+humble+jazzy infrastructure
   that doesn't match kilted's expected toolchain).

2. .github/workflows/docker.yaml's matrix kept ROS_DISTRO=[rolling],
   so the kilted branch never built its own moveit/moveit2:kilted-ci /
   kilted-release / kilted-source images. The push trigger also still
   pointed at branches: [main].

Match the jazzy branch's pattern: ci.yaml uses kilted-ci for both ccov
and ikfast+clang-tidy jobs; docker.yaml builds kilted images and triggers
on pushes to kilted.

Followup work after this lands:
- Trigger docker.yaml manually (workflow_dispatch on kilted) to build
  the first set of kilted-ci/release/source Docker images, OR push any
  commit to kilted to trigger automatically.
- Once moveit/moveit2:kilted-ci exists, re-run CI on PR moveit#3768 (and
  any other open kilted backports) so they have a real toolchain to
  test against.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@mergify

mergify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@mergify

mergify Bot commented Jun 23, 2026

Copy link
Copy Markdown

Please target the main branch for development, we will backport the changes to kilted for you if approved and if they don't break API.

@nbbrooks
nbbrooks merged commit 43cbf9d into moveit:kilted Jun 23, 2026
8 of 12 checks passed
@github-project-automation github-project-automation Bot moved this to ✅ Done in MoveIt Jun 23, 2026
nbbrooks added a commit to nbbrooks/moveit2 that referenced this pull request Jun 23, 2026
…sections

Document the unified per-distro branch CI policy established by:
- Topic 3 §"Per-distro branches": which workflows live on per-distro
  branches (ci/docker/docker_lint/format only) vs main-only
  (prerelease/sonar/stale/tutorial_docker).
- Topic 3 §"Forking a new per-distro branch": the exact bootstrap
  changes when a new ROS distro lands. Captures the lessons from the
  kilted-branch retrofit (moveit#3769) where ci.yaml/docker.yaml/tutorial
  workflows were left targeting rolling/main after the fork from main.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
nbbrooks added a commit that referenced this pull request Nov 16, 2026
* Add distro compatibility policy

Document the in-source patterns and process moveit2 uses to keep main
building on every active ROS 2 distro, plus the lifecycle for adding
and removing distros from the CI matrix. Three topics:

1. Supporting multiple distros on main — five sub-patterns covering C++
   source divergence (RCLCPP_VERSION_GTE), package.xml conditional deps,
   launch-loaded file overrides, CMake feature detection, and MIGRATION
   .md updates.
2. Handling dependencies without a bloom package — CI source-build via
   per-distro .repos files (preferred), with a CMake-side optional
   feature-flag fallback.
3. CI matrix policy — add / graduate / drop lifecycle.

Pulls together patterns already established in
  - moveit2#3567 (C++ source via RCLCPP_VERSION_GTE)
  - moveit2#3727 (Boost::system removal under Boost 1.89+)
  - moveit2#3743 (rolling-resolute experimental CI job)
  - moveit_resources#211 (package.xml condition= attribute)

so future divergences are handled consistently rather than ad hoc.

Add a pointer from CONTRIBUTING.md.

* DISTRO_COMPAT_POLICY: add Per-distro branches + Forking a new branch sections

Document the unified per-distro branch CI policy established by:
- Topic 3 §"Per-distro branches": which workflows live on per-distro
  branches (ci/docker/docker_lint/format only) vs main-only
  (prerelease/sonar/stale/tutorial_docker).
- Topic 3 §"Forking a new per-distro branch": the exact bootstrap
  changes when a new ROS distro lands. Captures the lessons from the
  kilted-branch retrofit (#3769) where ci.yaml/docker.yaml/tutorial
  workflows were left targeting rolling/main after the fork from main.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* DISTRO_COMPAT_POLICY: guard on the feature-carrier package's version macro

The §1.1 draft advised guarding C++ divergence on RCLCPP_VERSION_GTE
as a general distro proxy. That's fragile: every ROS 2 package has
its own version macro and its own release cadence, so RCLCPP_VERSION
only proxies for another package's feature when their versions happen
to move in lockstep.

Concrete failure #3703 → #3705: `ament_index_cpp` renamed
`get_package_share_directory.hpp` → `get_package_share_path.hpp` in
1.14. Rolling's `rclcpp` had already been at ≥ 30 for months before
that, so a `RCLCPP_VERSION_GTE(30, 0, 0)` guard triggered on
Rolling-on-Noble containers that still shipped ament_index_cpp 1.13.1
— referencing a header that didn't exist yet. The guard was doing
nothing useful in the Noble era, then quietly discriminating wrong
across the Noble→Resolute transition.

Changes:

- §1.1 rewritten to advise guarding on the actual feature-carrier
  package's version macro (`AMENT_INDEX_CPP_VERSION_GTE`,
  `TF2_VERSION_GTE`, `RCLCPP_VERSION_GTE` for genuine rclcpp changes).
  Adds a "picking the threshold" checklist, a version snapshot for
  the frozen `rolling-ci` container vs. current Rolling, and
  #3703→#3705 as the canonical example.
- §1.5 adds a reviewer checklist item: verify the threshold matches
  the upstream release, and verify the guard uses the correct package's
  macro.
- New Topic 3 section "Auditing existing version guards when Rolling
  changes base OS" — a concrete grep-and-audit procedure for the
  CI-matrix PR that adopts each new Rolling base.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* DISTRO_COMPAT_POLICY: expand carrier-package snapshot to all active distros

Adds humble, jazzy, kilted, lyrical columns to the rclcpp /
ament_index_cpp version table. Sourced from `apt-cache policy`
on ubuntu:{jammy,noble,resolute} against packages.ros.org.

Also flags the Rolling-on-Noble ↔ Lyrical inversion: Rolling's rclcpp
was at 30.1.4 when the frozen `rolling-ci` snapshot was taken, but
Lyrical branched later at 32.0.1. A guard threshold set with only
"current Rolling" in mind can catch or miss Lyrical unintentionally
depending on the value.

Co-Authored-By: Claude Opus 4.7 <[email protected]>

* DISTRO_COMPAT_POLICY: move policy to doc/ and link from README

Squash the review updates since the last push into one commit. Move the
policy from .github/ to doc/, where contributor docs live, and link it
from README. Rewrite the content in plain technical English and refresh
the claims against upstream tags and apt packages. Address the review
feedback. Restructure into four topics: per-distro branches, distro
differences on main, dependencies without an apt binary, and CI matrix
policy.

Co-Authored-By: Claude Code <[email protected]>

---------

Co-authored-by: Claude Opus 4.7 <[email protected]>
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