Skip to content

Don't clear kernel cache during test execution#757

Merged
eric-heiden merged 2 commits into
newton-physics:mainfrom
adenzler-nvidia:dev/adenzler/dont-clear-kernel-cache
Sep 15, 2025
Merged

Don't clear kernel cache during test execution#757
eric-heiden merged 2 commits into
newton-physics:mainfrom
adenzler-nvidia:dev/adenzler/dont-clear-kernel-cache

Conversation

@adenzler-nvidia

@adenzler-nvidia adenzler-nvidia commented Sep 10, 2025

Copy link
Copy Markdown
Member

This might be happening while other test processes are compiling kernels, leading to missing directories.

Before your PR is "Ready for review"

  • Necessary tests have been added and new examples are tested (see newton/tests/test_examples.py)
  • Documentation is up-to-date
  • Code passes formatting and linting checks with pre-commit run -a

Summary by CodeRabbit

  • Tests
    • Streamlined the test suite by removing redundant per-test setup, reducing overhead and improving execution time.
    • Enhances consistency across runs by avoiding unnecessary environment resets between tests.
    • No changes to product functionality; impacts only test performance and reliability.
    • Expect faster CI and local test iterations for developers.

Signed-off-by: Alain Denzler <adenzler@nvidia.com>
@coderabbitai

coderabbitai Bot commented Sep 10, 2025

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Removed the setUp method in TestCollisionPrimitives that called wp.clear_kernel_cache(), eliminating automatic Warp kernel cache clearing before each test.

Changes

Cohort / File(s) Summary
Tests — collision primitives
newton/tests/test_collision_primitives.py
Deleted TestCollisionPrimitives.setUp method that invoked wp.clear_kernel_cache(); no per-test kernel cache clearing now.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks (3 passed)

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly and accurately describes the primary change, namely avoiding kernel cache clearing during test execution, without extraneous detail or ambiguity.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


📜 Recent review details

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between e5a7cfa and 9049779.

📒 Files selected for processing (1)
  • newton/tests/test_collision_primitives.py (0 hunks)
💤 Files with no reviewable changes (1)
  • newton/tests/test_collision_primitives.py
⏰ Context from checks skipped due to timeout of 900000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: Run GPU Benchmarks (Pull Request)
  • GitHub Check: Run GPU Unit Tests on AWS EC2 (Pull Request)
  • GitHub Check: run-newton-tests / newton-unittests (windows-latest)
  • GitHub Check: run-newton-tests / newton-unittests (ubuntu-latest)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@eric-heiden eric-heiden enabled auto-merge (squash) September 15, 2025 14:48
@eric-heiden eric-heiden merged commit 7867570 into newton-physics:main Sep 15, 2025
12 checks passed
eric-heiden pushed a commit to eric-heiden/newton that referenced this pull request Jan 28, 2026
Signed-off-by: Alain Denzler <adenzler@nvidia.com>
mmacklin pushed a commit to mmacklin/newton that referenced this pull request Apr 7, 2026
Signed-off-by: Alain Denzler <adenzler@nvidia.com>
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