You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci: parallelize ng_test_all in-process (gym env test / ng_test_all)
Ports #1596 onto the unified gym CLI (#1434). Adds +max_concurrency to
ng_test_all: each module still runs in its own isolated subprocess/venv, but
up to N run concurrently via a ThreadPoolExecutor, so local ng_test_all and CI
both speed up (no matrix sharding). run_command gains an additive capture=
param so concurrent module output is collected and printed atomically.
Workflow runs on ${{ vars.TEST_RUNNER || 'ubuntu-latest' }} with
TEST_CONCURRENCY (default 8). Targets martas/1434.
Signed-off-by: Wojciech Prazuch <wprazuch@nvidia.com>
@@ -590,21 +666,14 @@ def test_all(): # pragma: no cover
590
666
tests_missing.append(dir_path)
591
667
case _:
592
668
raiseValueError(
593
-
f"""Hit unrecognized exit code {return_code} while running tests for {dir_path}.
669
+
f"""Hit unrecognized exit code {result.return_code} while running tests for {dir_path}.
594
670
You can rerun just these tests using `ng_test +entrypoint={dir_path}` or run detailed tests via `cd {dir_path} && source .venv/bin/activate && pytest`."""
595
671
)
596
672
597
-
try:
598
-
_validate_data_single(test_config)
599
-
exceptAssertionError:
673
+
ifresult.data_validation_failed:
600
674
data_validation_failed.append(dir_path)
601
675
602
-
iftest_all_config.delete_venvs_after_each_test:
603
-
venv_path=dir_path/".venv"
604
-
print(f"Deleting {venv_path} since `delete_venvs_after_each_test=true`")
0 commit comments