Skip to content

Conversation

@jslee02
Copy link
Member

@jslee02 jslee02 commented Nov 20, 2025

Summary

  • add valueEqual/isEqual/isApprox/isZero templates for scalars and Eigen types; handle +/-0 and NaNs
  • switch GenericJoint macro to valueEqual to avoid -Wfloat-equal in consumers
  • update GTest equals helper to share logic and added coverage tests

Testing

  • pixi run lint
  • CI pending

- add valueEqual/isEqual/isApprox/isZero templates for scalars and Eigen types; handle +/-0 and NaNs
- switch GenericJoint macro to valueEqual to avoid -Wfloat-equal in consumers
- update GTest equals helper to share logic and added coverage tests

Testing: pixi run lint; CI (Linux/macOS/Windows/gz-physics/Publish dartpy)
@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

❌ Patch coverage is 84.21053% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 62.63%. Comparing base (8b15844) to head (be65d80).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
dart/math/Helpers.hpp 84.21% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2225   +/-   ##
=======================================
  Coverage   62.63%   62.63%           
=======================================
  Files         361      361           
  Lines       32795    32814   +19     
  Branches     4315     4318    +3     
=======================================
+ Hits        20540    20554   +14     
- Misses      12255    12260    +5     
Flag Coverage Δ
unittests 62.63% <84.21%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
dart/dynamics/detail/GenericJoint.hpp 79.14% <ø> (ø)
dart/math/Helpers.hpp 78.72% <84.21%> (+3.72%) ⬆️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jslee02 jslee02 enabled auto-merge (squash) November 20, 2025 23:38
@jslee02 jslee02 added this to the DART 7.0 milestone Nov 24, 2025
@jslee02
Copy link
Member Author

jslee02 commented Dec 12, 2025

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jslee02
Copy link
Member Author

jslee02 commented Dec 12, 2025

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 👍

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jslee02 jslee02 disabled auto-merge December 12, 2025 17:41
@jslee02 jslee02 merged commit 37b1bf8 into main Dec 12, 2025
39 of 40 checks passed
@jslee02 jslee02 deleted the issue/1096_float_equal branch December 12, 2025 17:41
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.

2 participants