Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultcha committed Jun 28, 2024
1 parent 3d7193b commit b869571
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 24 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/ci-large.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Large CI

on:
#pull_request:
# branches: '**'
pull_request:
branches: '**'
schedule:
- cron: '0 9 * * *' # 9am UTC, 2am PST
workflow_dispatch:
Expand Down Expand Up @@ -47,7 +47,8 @@ jobs:
hup: no_hup
module_type: static
# macOS - Wasmer (full)
- runtime: wasmer
- label: macos_wasmer_full
runtime: wasmer
wasmer: 3.1.1
os: macos-latest
cc: clang
Expand All @@ -56,25 +57,25 @@ jobs:
debug: debug
hup: no_hup
# macOS - Wasmtime
- runtime: wasmtime
- label: macos_wasmtime
runtime: wasmtime
wasmtime: 19.0.0
os: macos-latest
cc: clang
ngx: 1.25.4
ssl: ssl
debug: debug
hup: hup
path: t/01-wasm
# macOS - V8
- runtime: v8
- label: macos_v8
runtime: v8
v8: 12.0.267.17
os: macos-latest
cc: clang
ngx: 1.25.4
ssl: ssl
debug: debug
hup: no_hup
path: t/01-wasm
uses: ./.github/workflows/job-unit-tests.yml
with:
os: ${{ matrix.os }}
Expand All @@ -90,7 +91,6 @@ jobs:
debug: ${{ matrix.debug }}
hup: ${{ matrix.hup }}
module_type: ${{ matrix.module_type }}
path: ${{ matrix.path }}

valgrind:
name: 'Valgrind'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ jobs:
v8: [""]
hup: [no_hup, hup]
debug: [debug]
path: [""]
include:
# Wasmtime
- runtime: wasmtime
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/job-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ on:
module_type:
required: true
type: string
path:
required: false
type: string
coverage:
required: false
type: boolean
Expand Down Expand Up @@ -133,8 +130,7 @@ jobs:
- name: Run tests
run: |
ulimit -c unlimited
IN_PATH="${{ inputs.path != '' && inputs.path || 't/0*' }}"
./util/test.sh ${IN_PATH}
./util/test.sh t/0* 2>&1 | tee valgrind.out
- name: Run lcov
id: lcov
if: ${{ !env.ACT && inputs.coverage }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/job-valgrind-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ jobs:
- run: make
- name: Run tests
run: |
IN_PATH="${{ inputs.path }}"
./util/test.sh ${IN_PATH:-t/} 2>&1 | tee valgrind.out
IN_PATH="${{ inputs.path }}"
./util/test.sh ${IN_PATH:-t/0*} 2>&1 | tee valgrind.out
- run: |
awk -f ./util/parse-valgrind.awk valgrind.out > valgrind.log
if [[ -s valgrind.log ]]; then
Expand Down
5 changes: 3 additions & 2 deletions t/03-proxy_wasm/hfuncs/130-proxy_dispatch_http.t
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ qq{


=== TEST 13: proxy_wasm - dispatch_http_call() unix domain socket, bad path (EISDIR)
In Linux, "Connection refused"; in macOS, "Socket operation on non-socket".
Linux: "Connection refused"
macOS: "Socket operation on non-socket"
--- wasm_modules: hostcalls
--- config eval
qq{
Expand Down Expand Up @@ -378,7 +379,7 @@ Host: localhost\s*


=== TEST 19: proxy_wasm - dispatch_http_call() sanity resolver + hostname (IPv4), default port
This test passes intermittently in CI when ran in a macOS host.
macOS: intermitent failures
Needs IPv4 resolution + external I/O to succeed.
Succeeds on:
- HTTP 200 (httpbin.org/headers success)
Expand Down
4 changes: 2 additions & 2 deletions t/03-proxy_wasm/hfuncs/131-proxy_dispatch_http_timeouts.t
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ qr/(\[error\]|Uncaught RuntimeError|\s+).*?dispatch failed: tcp socket - resolve


=== TEST 3: proxy_wasm - dispatch_http_call() read timeout
mockeagain, required for triggering read timeout, doesn't support macOS.
macOS: mockeagain NYI
--- skip_eval: 4: $::osname =~ m/darwin/
--- load_nginx_modules: ngx_http_echo_module
--- wasm_modules: hostcalls
Expand All @@ -99,7 +99,7 @@ qr/(\[error\]|Uncaught RuntimeError|\s+).*?dispatch failed: tcp socket - timed o


=== TEST 4: proxy_wasm - dispatch_http_call() write timeout
mockeagain, required for triggering write timeout, doesn't support macOS.
macOS: mockeagain NYI
--- skip_eval: 4: $::osname =~ m/darwin/
--- load_nginx_modules: ngx_http_echo_module
--- wasm_modules: hostcalls
Expand Down
4 changes: 2 additions & 2 deletions t/03-proxy_wasm/hfuncs/132-proxy_dispatch_http_ssl.t
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ foo


=== TEST 12: proxy_wasm - dispatch_https_call() no trusted CA
This test passes intermittently in CI when ran in a macOS host.
macOS: intermitent failures
--- skip_eval: 4: $::osname =~ m/darwin/
--- timeout eval: $::ExtTimeout
--- main_config eval
Expand Down Expand Up @@ -419,7 +419,7 @@ qr/(\[error\]|Uncaught RuntimeError|\s+).*?dispatch failed: tcp socket - tls cer


=== TEST 13: proxy_wasm - dispatch_https_call() empty trusted CA path
This test passes intermittently in CI when ran in a macOS host.
macOS: intermitent failures
--- skip_eval: 4: $::osname =~ m/darwin/
--- timeout eval: $::ExtTimeout
--- main_config eval
Expand Down
2 changes: 0 additions & 2 deletions t/TestWasmX.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use POSIX qw(sysconf _SC_PAGESIZE);

our $pwd = cwd();
our $osname = $Config{"osname"};
our $archname = eval { `uname -m` };
our $crates = "$pwd/work/lib/wasm";
our $buildroot = "$pwd/work/buildroot";
our $nginxbin = $ENV{TEST_NGINX_BINARY} || 'nginx';
Expand All @@ -24,7 +23,6 @@ our @nginx_modules;
our @EXPORT = qw(
$pwd
$osname
$archname
$crates
$buildroot
$nginxbin
Expand Down

0 comments on commit b869571

Please sign in to comment.