Skip to content

refactor: move shared lib to experiments/shared/, remove cross-experiment symlinks#20

Open
iheitlager wants to merge 4 commits into
mainfrom
refactor/003-shared-lib
Open

refactor: move shared lib to experiments/shared/, remove cross-experiment symlinks#20
iheitlager wants to merge 4 commits into
mainfrom
refactor/003-shared-lib

Conversation

@iheitlager
Copy link
Copy Markdown
Contributor

Summary

  • Move lib/bench.sh from 001_hello_world/lib/ to experiments/shared/lib/
  • All three experiments (001, 002, 003) now symlink to ../shared/lib instead of ../001_hello_world/lib
  • Copy Rust baseline source into 003_wasm_compile/rust-hello/ (was a symlink to 001_hello_world/leg3_wasmtime)
  • Update Makefile, benchmark.sh, .gitignore for the rustrust-hello rename

Before

003_wasm_compile/lib  -> ../001_hello_world/lib        (cross-experiment dependency)
003_wasm_compile/rust -> ../001_hello_world/leg3_wasmtime  (cross-experiment dependency)

After

shared/lib/bench.sh                  (single source of truth)
001_hello_world/lib  -> ../shared/lib
002_chromium_sandbox/lib -> ../shared/lib
003_wasm_compile/lib -> ../shared/lib
003_wasm_compile/rust-hello/         (self-contained copy, ~4 files)

Test plan

  • 001 helper tests pass (bats tests/test_helpers.bats — 17/17)
  • 003 tests pass (bats tests/ — 14/14)
  • All three lib symlinks resolve correctly

🤖 Generated with Claude Code

iheitlager and others added 4 commits March 6, 2026 15:36
- Move lib/bench.sh from 001_hello_world to experiments/shared/lib/
- Update symlinks in 001, 002, 003 to point to ../shared/lib
- Copy 001_hello_world/leg3_wasmtime into 003_wasm_compile/rust-hello/
  (removes cross-experiment symlink dependency)
- Update Makefile, benchmark.sh, .gitignore for rust -> rust-hello rename

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The refactor/shared-lib commit regressed the Makefile by losing the
individual build-js, build-py, build-rust sub-targets and their cp-to-build/
steps. Also switches venv creation from python3 -m venv to uv, and
restructures tests into source/build/runtime sections with consistent naming.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… 0.17

- Update app.py to use class-based IncomingHandler API (spin-sdk 3.x)
- Update spin.toml build command to use componentize-py on PATH
  (no hardcoded venv path, no -d wit flag — spin-sdk provides WIT)
- Add --all-features to python-raw build for @unstable WIT annotations
- Pin requirements: componentize-py>=0.17,<0.18 + spin-sdk>=3.4,<4

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Restore the test naming convention from 5ebe81b, grouped by component
(js-spin, py-raw, py-spin, rust) with source → build → runtime order.
Add AS tests as 016–019.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant