From 9fed239f17b656bb640648cdfd807419a24b3b5f Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Mon, 23 Oct 2023 12:46:15 -0700 Subject: [PATCH] wip 2 --- .github/workflows/job-unit-tests.yml | 24 ++++++++++++++---------- t/03-proxy_wasm/003-on_tick.t | 1 + 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/job-unit-tests.yml b/.github/workflows/job-unit-tests.yml index a4457b0f0..b496e4589 100644 --- a/.github/workflows/job-unit-tests.yml +++ b/.github/workflows/job-unit-tests.yml @@ -82,15 +82,15 @@ jobs: ~/.rustup/toolchains/* ~/.rustup/update-hashes/* key: rust-toolchain-${{ inputs.os }}-${{ hashFiles('.github/**/*.yml', '.github/**/*.sh', 'rust-toolchain') }} - - name: 'Setup cache - work/ dir' - if: ${{ !env.ACT }} - uses: actions/cache@v3 - with: - path: | - work/downloads - work/runtimes - work/openssl - key: work-${{ inputs.os }}-${{ inputs.cc }}-${{ inputs.ngx }}-${{ inputs.openresty }}-${{ inputs.runtime }}-${{ hashFiles('util/**/*.sh', 'util/**/*.pl', 'util/**/*.awk', '.github/**/*.yml', '.github/**/*.sh', '.github/**/*.js', 'rust-toolchain', 'Makefile') }} + #- name: 'Setup cache - work/ dir' + # if: ${{ !env.ACT }} + # uses: actions/cache@v3 + # with: + # path: | + # work/downloads + # work/runtimes + # work/openssl + # key: work-${{ inputs.os }}-${{ inputs.cc }}-${{ inputs.ngx }}-${{ inputs.openresty }}-${{ inputs.runtime }}-${{ hashFiles('util/**/*.sh', 'util/**/*.pl', 'util/**/*.awk', '.github/**/*.yml', '.github/**/*.sh', '.github/**/*.js', 'rust-toolchain', 'Makefile') }} - name: Setup Rust if: ${{ !env.ACT }} uses: actions-rs/toolchain@v1 @@ -112,8 +112,12 @@ jobs: ghcr_username: ${{ github.repository_owner }} ghcr_password: ${{ secrets.TOKEN_GITHUB }} - run: make setup + - run: ls work/runtimes - run: make - - run: make test + #- run: make test + - run: util/test.sh t/03-proxy_wasm/003-on_tick.t + - run: cat t/servroot/logs/error.log + if: ${{ always() }} - name: Run lcov id: lcov if: ${{ !env.ACT && inputs.coverage }} diff --git a/t/03-proxy_wasm/003-on_tick.t b/t/03-proxy_wasm/003-on_tick.t index e4b6268e5..bd92edb11 100644 --- a/t/03-proxy_wasm/003-on_tick.t +++ b/t/03-proxy_wasm/003-on_tick.t @@ -156,6 +156,7 @@ qr/.*?(\[error\]|Uncaught RuntimeError: |\s+)tick_period already set.* === TEST 6: proxy_wasm - on_tick with trap +--- ONLY Should recycle the tick instance Should not prevent http context/instance from starting --- skip_no_debug: 7