Skip to content

Feature/report stale if one stale#506

Closed
Timple wants to merge 4 commits into
ros:ros2from
nobleo:feature/report-stale-if-one-stale
Closed

Feature/report stale if one stale#506
Timple wants to merge 4 commits into
ros:ros2from
nobleo:feature/report-stale-if-one-stale

Conversation

@Timple
Copy link
Copy Markdown
Contributor

@Timple Timple commented May 23, 2025

Going from:

Report stale as errors unless all stale

to:

If one STALE and no ERROR, report STALE

As a bonus, the message that caused the degradation of the diagnostics is added to the toplevel state. This is useful for reporting mechanisms such as error logs.

@mergify mergify Bot added the ros2 PR tackling a ROS2 branch label May 23, 2025
@Timple Timple force-pushed the feature/report-stale-if-one-stale branch from f9b78c0 to 8cd4d07 Compare May 26, 2025 07:42
@Timple
Copy link
Copy Markdown
Contributor Author

Timple commented May 26, 2025

Rebased as build failed on #507

@ct2034 ct2034 added the enhancement This tackles a new feature of the code (and not a bug) label May 26, 2025
@Timple
Copy link
Copy Markdown
Contributor Author

Timple commented Jun 30, 2025

Any objections here?

We think it makes more sense to report STALE as summary. Because now you can have an ERROR without any actual ERROR states.

@Timple
Copy link
Copy Markdown
Contributor Author

Timple commented Aug 15, 2025

If there are any reasons not to do this, we'd also like to hear. Or should this pass an MPC or something?

@Timple Timple force-pushed the feature/report-stale-if-one-stale branch from 8cd4d07 to 601b4a6 Compare August 15, 2025 07:44
@Timple
Copy link
Copy Markdown
Contributor Author

Timple commented Jan 30, 2026

Almost a year...

Can someone point us at someone who can shine a light if this is desired or undesired?

@ct2034 ct2034 self-assigned this Apr 20, 2026
@peci1
Copy link
Copy Markdown

peci1 commented May 15, 2026

I haven't gone through the logic of the implementation, but from a high-level point, I agree with this direction (I'm not a maintainer here, though).

Comment thread diagnostic_aggregator/src/aggregator.cpp Outdated
Comment thread diagnostic_aggregator/src/aggregator.cpp Outdated
Comment thread diagnostic_aggregator/src/aggregator.cpp Outdated
Comment thread diagnostic_aggregator/src/aggregator.cpp Outdated
Comment thread diagnostic_aggregator/src/aggregator.cpp Outdated
@Timple
Copy link
Copy Markdown
Contributor Author

Timple commented May 20, 2026

Valid comments. Thank you for the review.

I managed to dispute none and to address them all 🙂

Copy link
Copy Markdown

@mfaferek93 mfaferek93 left a comment

Choose a reason for hiding this comment

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

LGTM!

@ct2034
Copy link
Copy Markdown
Collaborator

ct2034 commented May 20, 2026

Thanks for the review @mfaferek93 ! I agree with it and as far as I can follow it, the logic makes sense to me.
Is there a chance we could get an opinion from @asymingt ? (who developed this in #315)

Copy link
Copy Markdown
Collaborator

@ct2034 ct2034 left a comment

Choose a reason for hiding this comment

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

please fix this one comment

Comment thread diagnostic_aggregator/test/test_discard_behavior.py Outdated
Co-authored-by: Christian Henkel <6976069+ct2034@users.noreply.github.com>
@ct2034
Copy link
Copy Markdown
Collaborator

ct2034 commented May 20, 2026

I made some more tests. ;-)
Could you please merge https://github.com/ros/diagnostics/tree/feature/report-stale-if-one-stale into your branch.
There is one test that is failing for me locally, and I would be interested in your opinion.

@ct2034
Copy link
Copy Markdown
Collaborator

ct2034 commented May 20, 2026

I made some more tests. ;-) Could you please merge https://github.com/ros/diagnostics/tree/feature/report-stale-if-one-stale into your branch. There is one test that is failing for me locally, and I would be interested in your opinion.

Nvm, I think figured the test out. The case was wrong. But please still include them here @Timple.

@ct2034
Copy link
Copy Markdown
Collaborator

ct2034 commented May 20, 2026

Merged in #593

@Timple
Copy link
Copy Markdown
Contributor Author

Timple commented May 21, 2026

I see I was too late. Thanks for merging.

Not sure about the backports though. It's a breaking change so not sure who would be affected in what way.

@ct2034
Copy link
Copy Markdown
Collaborator

ct2034 commented May 21, 2026

Nvm, it worked out.
I am always in favour of backports to keep the codebase consistent. And especially this case I would primarily treat as a bug, because the old behaviour seemed to not make sense to anyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This tackles a new feature of the code (and not a bug) ros2 PR tackling a ROS2 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants