Skip to content

Commit 48f4edb

Browse files
committed
x/sdk: Enable SR integration test for JavaScript SDK
Signed-off-by: Oren Leiman <oren.leiman@redpanda.com>
1 parent 4a1b3ad commit 48f4edb

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/transform-sdk-build.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ jobs:
258258
steps:
259259
- name: Check out code
260260
uses: actions/checkout@v4
261+
- name: Install node
262+
uses: actions/setup-node@v4
263+
with:
264+
node-version: 20
261265
- name: Build integration tests
262266
working-directory: src/transform-sdk/js
263267
run: |
@@ -267,6 +271,8 @@ jobs:
267271
cmake --build --preset release-static -- redpanda_js_transform
268272
cat identity.js | python3 generate_js_provider.py > identity_source.wat
269273
cat identity_logging.js | python3 generate_js_provider.py > logging_source.wat
274+
(cd schema_registry_example && npm install && npm run build)
275+
cat schema_registry_example/dist/schema_registry_example.js | python3 generate_js_provider.py > sr_source.wat
270276
curl -SLO https://github.com/WebAssembly/binaryen/releases/download/version_${{ env.BINARYEN_VERSION }}/binaryen-version_${{ env.BINARYEN_VERSION }}-x86_64-linux.tar.gz
271277
tar xf binaryen-version_${{ env.BINARYEN_VERSION }}-x86_64-linux.tar.gz
272278
rm binaryen-version_${{ env.BINARYEN_VERSION }}-x86_64-linux.tar.gz
@@ -280,6 +286,11 @@ jobs:
280286
./logging_source.wat redpanda_js_provider \
281287
-mvp --enable-simd --enable-bulk-memory --enable-multimemory \
282288
-o logging.wasm
289+
./binaryen-version_117/bin/wasm-merge \
290+
./build/release-static/redpanda_js_transform js_vm \
291+
./sr_source.wat redpanda_js_provider \
292+
-mvp --enable-simd --enable-bulk-memory --enable-multimemory \
293+
-o sr.wasm
283294
- name: Download integration test suite
284295
uses: actions/download-artifact@v4
285296
with:
@@ -291,7 +302,7 @@ jobs:
291302
IDENTITY: identity.wasm
292303
LOGGING: logging.wasm
293304
TEE: "@UNIMPLEMENTED@"
294-
SCHEMA_REGISTRY: "@UNIMPLEMENTED@"
305+
SCHEMA_REGISTRY: sr.wasm
295306
run: |
296307
chmod +x wasm-integration-test
297308
./wasm-integration-test -test.v

0 commit comments

Comments
 (0)