The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(build): allow more time for native wheel builds
ethernetcb17e9ba72de
diff --git a/.github/workflows/pm-bundle.yml b/.github/workflows/pm-bundle.ymlindex 6e7c0919dc2..05e4aee21ee 100644--- a/.github/workflows/pm-bundle.yml+++ b/.github/workflows/pm-bundle.yml@@ -55,7 +55,8 @@ jobs:bundle:name: bundle ${{ matrix.target.label }}runs-on: ${{ matrix.target.runner }}- timeout-minutes: 45+ # Leave time for setup, cache saves and smoke tests around the wheel build.+ timeout-minutes: 180strategy:fail-fast: falsematrix:diff --git a/scripts/bundles/native.py b/scripts/bundles/native.pyindex 5d28e0bea37..7895348f8d0 100644--- a/scripts/bundles/native.py+++ b/scripts/bundles/native.py@@ -195,8 +195,10 @@ def _stage_native(args) -> int:from pm.package import InstallErrortry:+ # Cold native wheels need a larger budget than interactive installs.build_environment(source=repo_dir, python=python_bin, out=venv_dir,- env=env, cache=cache, all_extras=True, sealed=True, explicit=True)+ env=env, cache=cache, all_extras=True, sealed=True, explicit=True,+ timeout=2 * 60 * 60)except InstallError as exc:print(f"✗ venv: {exc}")return 1diff --git a/tests/scripts/test_bundle_native.py b/tests/scripts/test_bundle_native.pyindex df58d5f2ff5..194e636a228 100644--- a/tests/scripts/test_bundle_native.py+++ b/tests/scripts/test_bundle_native.py@@ -19,6 +19,8 @@ from scripts.bundles import nativedef test_bundle_stages_git_tree_and_runs_native_children_before_manifest(tmp_path, monkeypatch):+ import inspect+from hermes_cli.runtime_paths import site_packagesmonkeypatch.setattr(Path, "home", lambda: tmp_path / "home")@@ -63,6 +65,7 @@ def test_bundle_stages_git_tree_and_runs_native_children_before_manifest(tmp_patmonkeypatch.setattr("pm.extras.ANCHORS", {"payloadtest": "bundle_probe.present"})import pmreal_build = pm.build_environment+ install_timeout = inspect.signature(real_build).parameters["timeout"].defaultcalls = []witness = tmp_path / "inventory-python.json"fail_inventory = False@@ -70,6 +73,7 @@ def test_bundle_stages_git_tree_and_runs_native_children_before_manifest(tmp_patdef build(**kwargs):assert "uv" not in kwargsassert kwargs["sealed"] is True+ assert kwargs.get("timeout", install_timeout) > install_timeoutcalls.append(kwargs)assert not (output / "manifest.json").exists()marker = json.loads((output / "pm-runtime/pm-runtime.json").read_text())