Skip to content

fix(test): fix the failed ASan test for gutil due to absl::node_hash_map #40

fix(test): fix the failed ASan test for gutil due to absl::node_hash_map

fix(test): fix the failed ASan test for gutil due to absl::node_hash_map #40

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
name: Test - node.js client
on:
pull_request:
branches:
- master
- 'v[0-9]+.*' # release branch
- ci-test # testing branch for github action
- '*dev' # developing branch
paths:
- .github/actions/**
- .github/workflows/test_nodejs-client.yml
- nodejs-client/**
workflow_dispatch:
defaults:
run:
shell: bash
env:
ARTIFACT_NAME: release_for_nodejs_client
jobs:
build_server:
name: Build server
runs-on: ubuntu-latest
env:
USE_JEMALLOC: OFF
ENABLE_ASAN: OFF
BUILD_OPTIONS: -t release
container:
image: apache/pegasus:thirdparties-bin-test-ubuntu2204-${{ github.base_ref }}
steps:
- uses: actions/checkout@v4
- uses: "./.github/actions/rebuild_thirdparty_if_needed"
- uses: "./.github/actions/build_pegasus"
- uses: "./.github/actions/upload_artifact"
test:
name: Test NodeJS client
needs: build_server
runs-on: ubuntu-latest
container:
image: apache/pegasus:thirdparties-bin-test-ubuntu2204-${{ github.base_ref }}
steps:
- uses: actions/checkout@v4
- name: Install nodejs
uses: actions/setup-node@v3
with:
node-version: 16
- name: Download artifact
uses: "./.github/actions/download_artifact"
- name: Start Pegasus cluster
run: |
export LD_LIBRARY_PATH=$(pwd)/thirdparty/output/lib:${JAVA_HOME}/jre/lib/amd64/server
ulimit -s unlimited
./run.sh start_onebox
- name: Run NodeJS client tests
working-directory: ./nodejs-client
run: |
./recompile_thrift.sh
npm install
npm test