Commit dc04a44
committed
Speed up CI by merging Python backend crates into root workspace
The three Python SDK backend crates were separate Cargo workspaces with
duplicate [patch] sections and isolated target/ directories, causing the
full dependency tree (~500 crates) to be compiled three times. Moving
them into the root workspace means the second and third builds are
essentially free.
This required several related fixes:
- Rename native lib targets from '_native' to '_native_wasm' and
'_native_js' to avoid artifact collisions in the shared target/ dir.
Both crates produced lib_native.so; the last one built would overwrite
the other.
- Restructure python-build to use 'uv sync' with --no-install-package
for the backend crates (installed separately via maturin develop) and
'uv run --no-sync' for maturin to prevent PEP 517 editable rebuilds
that fail due to missing release-profile runtime binaries.
- Add 'just jssandbox build' before Python SDK steps in CI so
hyperlight-js-runtime is compiled in the shared target/ directory.
- Clean stale cargo fingerprints before release-profile maturin builds
to force the build scripts to re-run and produce the runtime binaries.
- Update examples/Justfile integration dep syncs to skip building
backend crates (already installed by maturin develop).
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>1 parent 89fce8b commit dc04a44
14 files changed
Lines changed: 385 additions & 290 deletions
File tree
- .github/workflows
- examples
- src
- nanvix_sandbox
- src
- sdk/python
- hyperlight_js_backend
- hyperlight_sandbox_backend_hyperlight_js
- pyo3_common
- wasm_backend
- hyperlight_sandbox_backend_wasm
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | | - | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | | - | |
| 103 | + | |
99 | 104 | | |
100 | 105 | | |
101 | | - | |
| 106 | + | |
102 | 107 | | |
103 | 108 | | |
104 | | - | |
| 109 | + | |
105 | 110 | | |
106 | 111 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | | - | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
117 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
| |||
0 commit comments