Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 25 additions & 45 deletions .github/workflows/quick-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,18 @@ name: quick_check

on:
push:
repository_dispatch:
branches:
- master
tags:
- '**'
pull_request:
workflow_dispatch:

env:
BUILD_TYPE: RelWithDebInfo
MEM_SIZE: 1073741824
SCALE_FACTOR: 0.2
TARANTOOL_SRC: tarantool-src
TNT_RELEASE_PATH: /home/runner/tnt-release
BRANCH: master

jobs:
Expand All @@ -19,65 +23,41 @@ jobs:
fail-fast: false

steps:
- name: checkout tpch
uses: actions/checkout@v2
- name: Prepare checkout
uses: tarantool/actions/prepare-checkout@master

- name: Checkout
uses: actions/checkout@v7
with:
clean: true
fetch-depth: 0
submodules: recursive
ref: ${{ github.ref }}

- name: checkout tarantool sources
uses: actions/checkout@v2
- name: Clone tarantool
uses: actions/checkout@v7
with:
repository: tarantool/tarantool
ref: ${{ env.BRANCH }}
path: ${{ env.TARANTOOL_SRC }}
path: tarantool
fetch-depth: 0
submodules: recursive

- name: Install tarantool build prerequisites
run: |
sudo apt-get install -y patch ccache luarocks libmsgpuck-dev libluajit-5.1-dev
- name: Setup tarantool dependencies
run: sudo apt install -y libreadline-dev

# by some odd reason we can't use
# working-directory: $GITHUB_WORKSPACE/tarantool/build
# syntax - directory is not yet existing before actions
# run. So use workaround with cd
- name: Configure CMake for Tarantool sources
shell: bash
- name: Build tarantool ${{ matrix.tarantool }}
run: |
cd $GITHUB_WORKSPACE/$TARANTOOL_SRC/
cmake -S . -B build \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_BUILD_TYPE=RelWithDebInfo
cd ${GITHUB_WORKSPACE}/tarantool
cmake -S . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DENABLE_DIST=ON -DCMAKE_INSTALL_PREFIX="${TNT_RELEASE_PATH}"
cmake --build build -j
cmake --install build

- name: Build Tarantool
shell: bash
run: |
cd $GITHUB_WORKSPACE/$TARANTOOL_SRC/
cmake --build build
- name: Clean bench data
shell: bash
run: |
make clean-tnt

- name: Run micro bench (SF=0.2)
shell: bash
run: |
make create_TNT_db \
TARANTOOL=$TARANTOOL_SRC/build/src/tarantool \
TARANTOOL="${TNT_RELEASE_PATH}/bin/tarantool" \
SCALE_FACTOR=$SCALE_FACTOR \
MEM_SIZE=$MEM_SIZE
make TARANTOOL=$TARANTOOL_SRC/build/src/tarantool \
make TARANTOOL="${TNT_RELEASE_PATH}/bin/tarantool" \
MEM_SIZE=$MEM_SIZE bench-tnt

- name: artifacts
uses: actions/upload-artifact@v2
with:
name: perf_tpch
retention-days: 7
path: |
*_result.txt
*_t_version.txt
bench-*.csv
1 change: 1 addition & 0 deletions execute_query.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ io.stdout:setvbuf 'no'
local function config(portN, memSz)
if not dryrun then
box.cfg{ listen = tonumber(portN), memtx_memory = tonumber(memSz) }
box.execute('set session "sql_seq_scan" = true')
end
end

Expand Down
2 changes: 1 addition & 1 deletion queries/14.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ select
when p_type like 'PROMO%'
then l_extendedprice * (1 - l_discount)
else 0
end as number)) / sum(l_extendedprice * (1 - l_discount)) as promo_revenue
end as double)) / sum(l_extendedprice * (1 - l_discount)) as promo_revenue
from
lineitem,
part
Expand Down
2 changes: 1 addition & 1 deletion queries/15.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ create view revenue0 (supplier_no, total_revenue) as
l_suppkey,
sum(l_extendedprice * (1 - l_discount))
from
lineitem
LINEITEM
where
l_shipdate >= cast('1993-01-01' as datetime)
and l_shipdate < cast('1993-01-01' as datetime) + cast({'month': 3} as interval)
Expand Down