Spaces:
Running on T4
Running on T4
Commit ·
0099164
1
Parent(s): 917d818
Streaming-zip: default use_plugin_default=True
Browse files- tools/hf_space/runner.py +11 -10
tools/hf_space/runner.py
CHANGED
|
@@ -408,16 +408,17 @@ def _validate_zip_streaming(*, api: HfApi, dataset: str, token: str | None,
|
|
| 408 |
val_ver = _validator_version()
|
| 409 |
found_sha = _foundation_sha()
|
| 410 |
|
| 411 |
-
#
|
| 412 |
-
#
|
| 413 |
-
#
|
| 414 |
-
#
|
| 415 |
-
#
|
| 416 |
-
#
|
| 417 |
-
#
|
| 418 |
-
#
|
| 419 |
-
#
|
| 420 |
-
|
|
|
|
| 421 |
issue_filed_for_registration_bug = False
|
| 422 |
# Once an issue-filing attempt 404s (token can't reach the repo,
|
| 423 |
# repo wrong, permissions missing), don't try again this run —
|
|
|
|
| 408 |
val_ver = _validator_version()
|
| 409 |
found_sha = _foundation_sha()
|
| 410 |
|
| 411 |
+
# Always use --use-plugin in the streaming path. With the patched
|
| 412 |
+
# foundation wheel installed, SimReadyPlugin's on_startup() loads
|
| 413 |
+
# profiles via simready.validate.impl.loader at omni.asset_validator
|
| 414 |
+
# import time — fully populated ProfileRegistry before validate.py
|
| 415 |
+
# main() runs. The default CLI-loader path still attempts a
|
| 416 |
+
# second `load_validation_implementation` call which races with
|
| 417 |
+
# the plugin's registration and ends up failing in subtle ways
|
| 418 |
+
# (we've observed FATAL: profile X not registered even though
|
| 419 |
+
# the plugin succeeded — different code path, different bug).
|
| 420 |
+
# Skip the doomed-first-attempt entirely.
|
| 421 |
+
use_plugin_default = True
|
| 422 |
issue_filed_for_registration_bug = False
|
| 423 |
# Once an issue-filing attempt 404s (token can't reach the repo,
|
| 424 |
# repo wrong, permissions missing), don't try again this run —
|