Skip to content

fix: @Bartok9 contributions (batch 2) - #872

Merged
maciejmajek merged 1 commit into
mainfrom
fix/bartok9-contributions-batch-2
Sep 8, 2026
Merged

fix: @Bartok9 contributions (batch 2)#872
maciejmajek merged 1 commit into
mainfrom
fix/bartok9-contributions-batch-2

Conversation

@maciejmajek

Copy link
Copy Markdown
Member

Purpose

Proposed Changes

Issues

Testing

  • tests/tools/ros2/test_input_validation.py covers every schema constraint, tests/s2s/test_asr_config.py covers the config guards, and the bug fixes are asserted in the existing test files.
  • pytest tests/tools tests/agents tests/messages tests/communication tests/s2s: 343 passed, 4 skipped, 11 xfailed.

Co-authored-by: Bartok danielrpike9@gmail.com

@codecov

codecov Bot commented Sep 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.49%. Comparing base (54f2423) to head (84f1d03).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #872      +/-   ##
==========================================
+ Coverage   74.48%   74.49%   +0.01%     
==========================================
  Files          82       82              
  Lines        3621     3627       +6     
==========================================
+ Hits         2697     2702       +5     
- Misses        924      925       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Salvages the second round of validation PRs from @Bartok9. Tool argument
checks are expressed as pydantic Field constraints on the existing
args_schema rather than as imperative guards in each _run, and the four
genuine bug fixes are taken as-is.

Signed-off-by: Bartok9 <danielrpike9@gmail.com>
Co-authored-by: Bartok <danielrpike9@gmail.com>

@boczekbartek boczekbartek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! Thanks for refactoring these PRs

@maciejmajek
maciejmajek merged commit e565d31 into main Sep 8, 2026
10 checks passed
@maciejmajek
maciejmajek deleted the fix/bartok9-contributions-batch-2 branch September 8, 2026 10:45
maciejmajek added a commit to ved197338/rai that referenced this pull request Sep 8, 2026
Keeps the feature and folds the validation into the tool models. The
bounds live on a WorkspaceBounds mixin shared by NavigateToPoseTool,
NavigateToPoseBlockingTool and Nav2Toolkit, which propagates them. Their
ordering is checked once when the tool is built rather than on every goal,
and Tuple[Coordinate, ...] with allow_inf_nan=False covers the shape and
finiteness that coordinates.py checked by hand, so that module and its
re-exports are gone.

Also adds allow_inf_nan=False to NavigateToPoseBlockingToolInput, which
was missed in RobotecAI#872, and constrains the bounds themselves: a plain float
tuple accepts NaN, and NaN bounds silently disable every comparison.

Tests now exercise the tools rather than the helpers: an out-of-bounds
goal is refused before the connector is touched, one-sided bounds only
constrain their side, and inverted or malformed bounds fail at
construction.
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