Skip to content

Commit

Permalink
chore(deps) bump Wasmtime to 19.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault Charbonnier <[email protected]>
  • Loading branch information
casimiro authored and thibaultcha committed Mar 26, 2024
1 parent 559b46a commit 840a73b
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 22 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci-large.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
cc: [gcc-12]
ngx: [1.25.4]
runtime: [wasmtime, wasmer, v8]
wasmtime: [14.0.3]
wasmtime: [19.0.0]
wasmer: [3.1.1]
v8: [12.0.267.17]
ipc: [no_ipc]
Expand All @@ -41,7 +41,7 @@ jobs:
cc: gcc-12
openresty: 1.25.3.1
runtime: wasmtime
wasmtime: 14.0.3
wasmtime: 19.0.0
ipc: no_ipc
ssl: ssl
debug: debug
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
cc: [gcc-12]
ngx: [1.25.4]
runtime: [wasmer, wasmtime, v8]
wasmtime: [14.0.3]
wasmtime: [19.0.0]
wasmer: [3.1.1]
v8: [12.0.267.17]
hup: [hup, no_hup]
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
cc: [clang-15]
openresty: [1.25.3.1]
runtime: [wasmtime, wasmer, v8]
wasmtime: [14.0.3]
wasmtime: [19.0.0]
wasmer: [3.1.1]
v8: [12.0.267.17]
ssl: [no_ssl, ssl]
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
cc: [clang-13, clang-14, gcc-10, gcc-11]
ngx: [1.25.4]
runtime: [wasmtime, wasmer, v8]
wasmtime: [14.0.3]
wasmtime: [19.0.0]
wasmer: [3.1.1]
v8: [12.0.267.17]
include:
Expand All @@ -166,13 +166,13 @@ jobs:
cc: clang-15
ngx: 1.21.6
runtime: wasmtime
wasmtime: 14.0.3
wasmtime: 19.0.0
- label: old_openresty
os: ubuntu-latest
cc: clang-15
openresty: 1.21.4.2
runtime: wasmtime
wasmtime: 14.0.3
wasmtime: 19.0.0
uses: ./.github/workflows/job-build-tests.yml
with:
os: ${{ matrix.os }}
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
include:
# Wasmtime
- runtime: wasmtime
wasmtime: 14.0.3
wasmtime: 19.0.0
os: ubuntu-latest
cc: gcc-12
ngx: 1.25.4
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
cc: gcc-12
ngx: 1.25.4
runtime: wasmtime
wasmtime: 14.0.3
wasmtime: 19.0.0
ipc: no_ipc
ssl: ssl
debug: debug
Expand All @@ -104,7 +104,7 @@ jobs:
cc: gcc-12
openresty: 1.25.3.1
runtime: wasmtime
wasmtime: 14.0.3
wasmtime: 19.0.0
ipc: no_ipc
ssl: ssl
debug: debug
Expand All @@ -115,7 +115,7 @@ jobs:
cc: gcc-12
openresty: 1.25.3.1
runtime: wasmtime
wasmtime: 14.0.3
wasmtime: 19.0.0
ipc: no_ipc
ssl: ssl
debug: debug
Expand All @@ -127,7 +127,7 @@ jobs:
cc: gcc-12
ngx: 1.25.4
runtime: wasmtime
wasmtime: 14.0.3
wasmtime: 19.0.0
ipc: ipc
ssl: no_ssl
debug: debug
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
include:
# Wasmtime
- runtime: wasmtime
wasmtime: 14.0.3
wasmtime: 19.0.0
os: ubuntu-22.04
cc: gcc-12
ngx: 1.25.4
Expand Down Expand Up @@ -277,7 +277,7 @@ jobs:
cc: [clang-15]
openresty: [1.25.3.1]
runtime: [wasmtime, wasmer, v8]
wasmtime: [14.0.3]
wasmtime: [19.0.0]
wasmer: [3.1.1]
v8: [12.0.267.17]
ssl: [ssl]
Expand Down Expand Up @@ -329,7 +329,7 @@ jobs:
cc: [clang-15, gcc-12]
ngx: [1.25.4]
runtime: [wasmtime, wasmer, v8]
wasmtime: [14.0.3]
wasmtime: [19.0.0]
wasmer: [3.1.1]
v8: [12.0.267.17]
uses: ./.github/workflows/job-build-tests.yml
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
NGX ?= 1.25.4
OPENSSL ?= 3.2.1
WASMTIME ?= 14.0.3
WASMTIME ?= 19.0.0
WASMER ?= 3.1.1
V8 ?= 12.0.267.17
PCRE ?= 8.45
Expand Down
2 changes: 1 addition & 1 deletion src/wasm/wrt/ngx_wrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ typedef enum {
#include <wasmtime.h>
#include <wasi.h>

#if WASMTIME_VERSION_MAJOR != 14
#if WASMTIME_VERSION_MAJOR != 19
# error Unsupported Wasmtime version
#elif WASMTIME_VERSION_MINOR > 0
# warning Untested Wasmtime version
Expand Down
4 changes: 4 additions & 0 deletions src/wasm/wrt/ngx_wrt_wasmtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,10 @@ static ngx_wrt_flag_handler_t flag_handlers[] = {
bool_flag_handler,
wasmtime_config_wasm_reference_types_set },

{ ngx_string("wasm_relaxed_simd"),
bool_flag_handler,
wasmtime_config_wasm_relaxed_simd_set },

{ ngx_string("wasm_simd"),
bool_flag_handler,
wasmtime_config_wasm_simd_set },
Expand Down
27 changes: 22 additions & 5 deletions t/01-wasm/directives/008-flag_directive_wasmtime.t
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,23 @@ qr/setting flag: "wasm_simd=on"/


=== TEST 15: flag directive - wasmtime - wasm_simd - off
Disable both flags to avoid:
"cannot disable the simd proposal but enable the relaxed simd proposal"
Shown twice in logs for master+single procs
--- skip_eval: 4: $::nginxV !~ m/wasmtime/
--- main_config
wasm {
wasmtime {
flag wasm_simd off;
flag wasm_relaxed_simd off;
}
}
--- error_log eval
qr/setting flag: "wasm_simd=off"/
--- grep_error_log eval: qr/setting flag: ".*?"/
--- grep_error_log_out
setting flag: "wasm_simd=off"
setting flag: "wasm_relaxed_simd=off"
setting flag: "wasm_simd=off"
setting flag: "wasm_relaxed_simd=off"
--- no_error_log
[error]
[crit]
Expand All @@ -282,16 +290,25 @@ qr/setting flag: "wasm_bulk_memory=on"/


=== TEST 17: flag directive - wasmtime - wasm_bulk_memory - off
Disable all three flags as 'bulk_memory' requires 'threads' and 'reference_types'
Shown twice in logs for master+single procs
--- skip_eval: 4: $::nginxV !~ m/wasmtime/
--- main_config
wasm {
wasmtime {
flag wasm_reference_types off;
flag wasm_bulk_memory off;
flag wasm_threads off;
flag wasm_reference_types off;
}
}
--- error_log eval
qr/setting flag: "wasm_bulk_memory=off"/
--- grep_error_log eval: qr/setting flag: ".*?"/
--- grep_error_log_out
setting flag: "wasm_bulk_memory=off"
setting flag: "wasm_threads=off"
setting flag: "wasm_reference_types=off"
setting flag: "wasm_bulk_memory=off"
setting flag: "wasm_threads=off"
setting flag: "wasm_reference_types=off"
--- no_error_log
[error]
[crit]
Expand Down

0 comments on commit 840a73b

Please sign in to comment.