Repository navigation
test: cover joint sine parameter contract - #38
Conversation
|
@codex review |
kstonekuan
left a comment
There was a problem hiding this comment.
Thanks @bryanwhl! Validated locally: full quality gate and suite pass (295 tests). These go beyond the issue's definition of done in the best way: varying duration_s and cameras between the two determinism calls proves the parameters derive only from the seed and joint count, which is the docstring's actual contract. Clean behavioral assertions, extended the existing test module rather than adding a parallel one. Merging.
On the five macOS failures you keep hitting: since you have the reproducing environment, a bug report with the exact assertion output for the /usr/bin/ffmpeg case and your ffmpeg -version/-filters output for the drawtext cases would be a valuable next contribution. We cannot reproduce them on Linux.
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Summary
Add focused behavioral tests for
hflow.testing.joint_sine_parametersthat verify:[0, 2*pi).Why
Synthetic episode reproducibility depends on this public helper, but its determinism and boundary behavior previously had no direct coverage. This change pins the observable contract without changing the implementation.
Closes #34
Validation
uv run pytest tests/test_testing.py -q -k joint_sine_parameters— 2 passed, 6 deselected on Python 3.11uv run --python 3.14 --locked --all-extras pytest tests/test_testing.py -q -k joint_sine_parameters— 2 passed, 6 deselecteduv run pytest tests/test_testing.py -q— 8 passeduv run ruff check --fix— passeduv run ruff format— passeduv run ty check— passeduv run pytest -q— 287 passed, 6 skipped, 5 environment-specific failures:/usr/bin/ffmpeg, which is absent on macOS;drawtextfilter, which is absent from the installed Homebrew FFmpeg 9.0.1.Checklist
uv run ruff check --fix,uv run ruff format, anduv run ty check.