Title: Would your team use an open-loop regression testing tool for ROS 2 autonomy stacks?

I’m exploring an idea to help improve the CI process for robotics teams and would love honest feedback from engineers who work on deployed robots.

A common workflow I hear from robotics teams looks something like:

A developer makes a perception/localization/planning change → they manually replay a rosbag/MCAP log → inspect outputs in tools like Foxglove / RViz → make a judgment call → ship.

This feels very manual and inconsistent, especially for teams shipping frequent autonomy updates.

The idea I’m exploring is a lightweight regression testing tool for ROS 2 stacks that works like CI for autonomy systems:

  • replay recorded MCAP/rosbag logs

  • run a candidate autonomy stack (likely in Docker)

  • observe selected output topics

  • evaluate pass/fail rules

  • output a CI-friendly test result

Over time, teams could build a regression suite composed of previously recorded real-world failure scenarios.

Example workflow:

  1. Robot encounters a real-world failure in production (ex: reflective pallet wrap, localization drift, perception miss, repeated recovery loop)

  2. Team saves that incident log

  3. Engineer makes changes to the autonomy stack

  4. CI runs replay tests against previously recorded failure scenarios

  5. Tool verifies whether known failures were reintroduced

  6. Engineer gets pass/fail results before deployment

This would be intentionally open-loop only for an MVP:

  • no simulation environment recreation

  • no closed-loop driving

  • no digital twin requirements

The goal is to make regression testing easier for perception/localization/prediction teams using real-world logs.

A few questions I’d love feedback on:

  1. Is this a painful problem at your company, or do most teams already have internal tooling for this?

  2. Would rule-based validation be useful, or would teams strongly prefer baseline-vs-baseline output comparison?

  3. Is requiring Docker too restrictive?

  4. What are the biggest reasons this would fail in your environment?

  5. If your team already does something similar, what does your current workflow look like?

I’m especially interested in hearing from teams operating real robots in production environments (warehouse robots, autonomous forklifts, delivery robots, etc.).

Appreciate any honest feedback.

3 Likes

At Foxglove, we talked to many people who would love this kind of feature (and no surprise; we are cooking around this idea).

In my consulting life, it feels like I have spent many days on tuning things in a similar way to what you describe. Here is some feedback on your question based on my work before Foxglove:

Is this a painful problem at your company, or do most teams already have internal tooling for this?

The companies I worked at, only one had internal tooling similar to this. I don’t think many companies realize the problem/pain, perhaps companies with >100 engineers.

Would rule-based validation be useful, or would teams strongly prefer baseline-vs-baseline output comparison?

I would go with baseline-vs-baseline and ideally produce a graphic output showing the output comparison if possible. Rule-based can also work, but IMO requires mroe though, e.g. I’m doing an UMBMark test and my robot is expected to go back to (0,0,0), if it didn’t move we might get a success, so we need to start adding distance travelled etc.

Is requiring Docker too restrictive?

IMO it’s fine

What are the biggest reasons this would fail in your environment?

N/A

If your team already does something similar, what does your current workflow look like?

For now, I’ve been testing something similar using Foxglove and the foxglove_mcap_player, but this is probably not an approach you would have taken in CI

2 Likes

Just a heads up, it is customary to remove the “Title” and “Body” indicators before posting your AI generated posts to Discourse.

5 Likes

I think this would be a nice idea to explore. If I understand your idea correctly, the “pass/fail” rules would still be a manual process. For example, to test a change in a perception module, I guess one would need some kind of an annotation corresponding to the mcap recording used for testing in the regression test suite. And I think this is tricky to generalize, but otherwise, the idea of having such an open loop suite would certainly be beneficial. But how lightweight this could get if the mcaps contain images and/or pointclouds, is something I cannot guesstimate.

Apologies if I misinterpreted your idea.

Regarding the questions you have asked.

Is this a painful problem at your company, or do most teams already have internal tooling for this? If your team already does something similar, what does your current workflow look like?

Yes, this is an important problem for us. We do have some internal tooling based on similar thought process as yours. Our approach to “lightweight” this so far is to only run the relevant CI step under two circumstances. The obvious one being, when the module in the critical line of fire has new changes. The other, when the field team logs a new incident (this is wip tbh). The main idea here is that logs/mcaps are in a common store, just the triggers to the CI step are through different sources. (And some co-operation from the field about certain conventions when adding new incident mcaps/logs :slight_smile: )

Would rule-based validation be useful, or would teams strongly prefer baseline-vs-baseline output comparison?

I’d lean towards having both. Rule based validation for ensuring any special/corner cases in your usecase (hopefully not too many :slight_smile: ), are still checked thoroughly and baseline vs baseline output comparison to ensure everything else still keeps working as intended along with the newly added feature deltas.

Is requiring Docker too restrictive?

I don’t think so. I rather think it would help with reproducibility especially if you set up tightly disciplined image layers such that dependent distro packages are not altered too frequently.

What are the biggest reasons this would fail in your environment?

I can’t think of reasons this would fail in our environment yet. It costs a few extra CI minutes, but I guess it’s totally worth it if it helps catch a potential field issue upfront.

2 Likes

Hey Katherine! Thanks for the feedback! While I definitely use AI tools to help tighten up the content of my post, (remove redundancies and structure the message more clearly), the ideas, the underlying spec and the request for feedback from the community are all authentic and very much human :slight_smile:

I do appreciate the feedback on how it may be perceived though, sincerely. If you do have any other feedback on any of the technical side of this and how it could be improved or why it would or wouldn’t be useful I’d love to hear that as well!

Thanks so much for the thoughtful feedback! It’s encouraging to hear your team is facing similar problems.

I agree that one of the core challenges is generalizing a way to define expected / unexpected behavior when the inputs and outputs are widely varying MCAP bags. Right now the plan for the MVP of this is to define a simple and flexible YAML grammar that allows devs to express these conditions in a simple natural way. Here’s one trivial example from a prototype config. This would be part of a “rules based validation,” but as you suggested, having support for both rules based validation as well as diff-based against a known correct output would be great.

Yes, such a yaml grammar would indeed be a good starting point. And this is very similar to our current setup.

1 Like