Skip to content

Fix placement pool fallback and run placement test in uv CI - #1598

Merged
zhx06 merged 2 commits into
mainfrom
zxiao/fix/uv-ci-placement
Nov 4, 2026
Merged

zhx06 merged 2 commits into
mainfrom
zxiao/fix/uv-ci-placement

Conversation

@zhx06

@zhx06 zhx06 commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Fix the placement pool fallback so it fills an environment's remaining slots when the last batch finds too few valid layouts. Native uv CI has failed on main since #1523 because of this. Also run test_placement_success.py in native uv CI, as Docker CI does.

Why this change?

With allow_best_loss_fallbacks, which is on by default, PooledObjectPlacer fell back only when its last batch had no valid layout. If the last batch had some valid layouts but too few, the build raised Placement pool could not fill .... So finding one more valid layout could turn a passing build into a failing one.

#1523 changed the candidate seeds, and the farmhouse2 banana spec now hits this in native uv CI. It finds 3 of 5 valid layouts, but its last batch has 1, so the build fails. Before #1523 it found 1, its last batch had none, and fallback filled the rest.

What changes?

  • On the last batch, PooledObjectPlacer stores an environment's valid layouts first, then fills its remaining slots with best-loss layouts. With allow_best_loss_fallbacks=False, an environment that is still short still fails the build. The docs described the old rule and now describe the new one.
  • uv-ci.yml runs isaaclab_arena_benchmarking/tests/test_placement_success.py, as ci.yml has since Add Placement Success Benchmark #1560.

Validation

  • A new test in test_heterogeneous_placement.py covers a last batch with too few valid layouts, with fallback on and off. Its fallback-on case fails on main and passes here. The placement test files pass in the Isaac Sim 6.2 container.
  • With the farmhouse2 spec limited to 3 placement attempts, seeds 0 and 7 fail on main and build with this change.

This PR's native uv job runs the farmhouse2 test on the stack where it fails. main's latest uv run also failed test_droid_deformable_environment[physx], which this PR doesn't address.

zhx06 added 2 commits November 4, 2026 08:42
Signed-off-by: zhx06 <zihaox@nvidia.com>
Signed-off-by: zhx06 <zihaox@nvidia.com>
@zhx06
zhx06 marked this pull request as ready for review November 4, 2026 16:51
@arena-review-bot

Copy link
Copy Markdown
Contributor

The review stopped before it finished. Please run /review to retry.

@zhx06

zhx06 commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

/review

@arena-review-bot

Copy link
Copy Markdown
Contributor

The review stopped before it finished. Please run /review to retry.

Requested in this comment.

@greptile-apps

greptile-apps Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge; no actionable issues were found.

Summary

This PR fills remaining placement-pool slots after storing the final batch’s valid layouts.

  • Placement pools fill leftover slots from the final batch when fallback is on.
  • Native uv CI runs placement-success tests with the no-camera PhysX suite.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Ranked layouts for one environment] --> B[Store valid layouts up to target]
    B --> C{Slots still empty?}
    C -- No --> D[Pool ready]
    C -- Yes --> E{Final batch and fallback allowed?}
    E -- Yes --> F[Fill remaining slots with ranked invalid layouts]
    F --> G[Record fallback environment]
    G --> D
    E -- No --> H[Retry or fail at batch limit]
Loading

Reviews (1) · Last reviewed commit: "self review" · Reviewed by Greptile

Comment thread .github/workflows/uv-ci.yml Resolved
@zhx06
zhx06 merged commit b0d4d29 into main Nov 4, 2026
21 checks passed
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