Skip to content

feat(tools): upd CI (53) #725

feat(tools): upd CI (53)

feat(tools): upd CI (53) #725

Workflow file for this run

name: CI
on:
push:
branches: [ master, CI ]
pull_request:
branches: [ master, CI ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
container:
image: docker.io/library/ubuntu:20.04 # Публичный образ Ubuntu 20.04 из Docker Hub
steps:
- name: Install Git
run: |
echo '*** Install Git ***'
apt-get update
apt-get install -y git
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Set up git
run: |
git config --global --add safe.directory /__w/veda/veda
git config --global user.email "[email protected]"
git config --global user.name "CI"
- name: Verify git status
run: |
git status
git rev-parse HEAD
- uses: actions/setup-node@v3
with:
node-version: '20'
- name: Set up non-interactive apt
run: |
export DEBIAN_FRONTEND=noninteractive
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime
echo "Etc/UTC" > /etc/timezone
- name: Install
run: |
apt-get clean
apt-get update
apt-get upgrade -y
apt-get install -y sudo
apt-get install -y dpkg firefox
npm install -g testcafe
./tools/install-tarantool.sh
./control-install.sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Print versions
run: |
node --version
testcafe --version
rustc -V
- name: Build
run: |
export CARGO_TARGET_DIR=$HOME/target
./build.sh
- name: Set up core dump configuration
run: |
# Создаем директорию для core dumps
export COREDUMP_DIR=$GITHUB_WORKSPACE/corefiles
mkdir -p $COREDUMP_DIR
# Включаем создание core dumps
ulimit -c unlimited
# Устанавливаем шаблон для имени core dump
echo "kernel.core_pattern=${COREDUMP_DIR}/core.%e.%t.%p.%s" | sudo tee /etc/sysctl.d/60-core-pattern.conf
sudo sysctl --system
- name: Test
run: |
# Запускаем скрипт
./control-start.sh
sleep 200
# Проверяем наличие core dump файлов
echo "Checking for core dumps..."
CORE_FILES=$(find $COREDUMP_DIR -name "core.veda-az-indexer*" 2>/dev/null)
if [ -n "$CORE_FILES" ]; then
echo "Core files found:"
echo "$CORE_FILES"
for FILE in $CORE_FILES; do
echo "Processing file: $FILE"
gdb ./bin/veda-az-indexer "$FILE" -ex "bt"
done
else
echo "No core files found."
fi
# Выводим логи
tail -n +1 ./data/tarantool/tarantool.log
tail -n +1 ./logs/*.log
cd ./source-web && npm test