Repository navigation
Run live inference endpoint tests only on opt-in - #1431
Conversation
The six tests that call the real inference endpoint ran whenever an API key was set. Since #1413 gave CI the right key, they run in the required "Run tests" job and the native uv job on every push. Each request to the public endpoint takes minutes, and 504 errors from the endpoint add 15 minutes per failed attempt, so both jobs now hit their timeouts on main and on PRs. Skip these tests unless ISAACLAB_ARENA_RUN_LIVE_ENDPOINT_TESTS=1 is set in addition to the API key, and rename the skip helper to match. Signed-off-by: Clemens Volk <[email protected]>
🤖 Isaac Lab-Arena Review BotSummaryPuts the six live inference endpoint tests behind Test Coverage and CI CostAfter this PR nothing in CI or VerdictShip it |
|
Add a nightly CI job for the six live environment-generation and inference tests disabled by #1431. ## Why this change? #1431 made these tests opt-in because slow public inference requests caused regular CI jobs to time out. Restore automated live-endpoint coverage with a separate job. ## What changes? - Add agentic env gen agent tests to nightly jobs ## Validation - Tests passed. - lIve agent test passed https://github.com/isaac-sim/IsaacLab-Arena/actions/runs/39324836472/job/118348852887 --------- Signed-off-by: Xinjie Yao <[email protected]>
Skip the 6 tests that call the real inference endpoint unless
ISAACLAB_ARENA_RUN_LIVE_ENDPOINT_TESTS=1is set. This stops them from making the CI test jobs run out of time.Why this change?
Since Oct 9, the "Run tests" job and the native uv job on main run out of time and get cancelled. No code is broken. All other tests pass.
The cause is 6 tests that call the real public inference endpoint (build.nvidia.com):
test_environment_generation_agent.py:test_generate_spec_atomic_pick_and_place_against_live_endpoint,test_generate_spec_five_bananas_parallel_pick_and_place_against_live_endpoint,test_resolve_usd_prim_robocasa_kitchen_counter_and_fridgetest_missing_object_inference.py:test_infer_names_the_uncatalogued_object_against_live_endpoint,test_infer_names_nothing_when_the_catalog_covers_the_prompt_against_live_endpointtest_shared_inference_backend.py:test_multimodal_image_against_live_endpointThese tests used to be skipped because CI had the wrong API key. #1413 fixed the key, so they started running.
How long they take depends on how busy the free public endpoint is, which we don't control:
InferenceBackendrepeat that several times."Run tests" takes about 58 minutes without these tests and has an 80 minute limit, so the slow days push it over. The native uv job (120 minute limit) has the same problem. PR runs are affected too.
What changes?
The 6 tests now run only when both of these are set:
ISAACLAB_ARENA_RUN_LIVE_ENDPOINT_TESTS=1(new)NVIDIA_API_KEYfor the default public endpointBefore, the API key alone was enough. The skip helper is renamed from
skip_without_live_endpoint_key()toskip_unless_live_endpoint_tests_enabled()to match what it checks.What this means:
NVIDIA_API_KEYset no longer runs them.run_docker.shpasses that key into the container, so this changes local test runs too.This is a stopgap. Possible follow-ups, to discuss with the code owners:
InferenceBackend. The OpenAI client retries on its own, and the backend retries on top of that, so one call can hang for about an hour. This also affects people running environment generation from the command line or the GUI. A small first step: create the client with its own retries turned off and an explicit timeout, and remove the@pytest.mark.flakymarkers, which do nothing because the plugin is not installed.InferenceBackendsends when it is created (_ping) is needed. It adds a full request to every test and is never retried. At least 5 of the 8 live tests that failed on Oct 11-12 failed in this request.Usage example
Running the live tests inside the Arena container.
Before:
After:
Each live test can take from under a minute to several minutes, depending on the endpoint.
Validation
Ran the 3 affected test files in the Arena container:
CI on this PR:
Not yet confirmed: