Skip to content
Merged
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
8 changes: 4 additions & 4 deletions concourse/pipeline/main.ent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ resources:
uri: git@github.com:eloqdata/raft_host_manager.git
private_key: ((git-key))

- name: mono_ubuntu_2204
- name: eloq_ubuntu_2404
type: registry-image
source:
repository: monographdb/monograph-dev-ci-ubuntu2204
repository: eloqdata/monograph-dev-ci-ubuntu2404
username: monographdb
password: ((docker-secret-key))

Expand All @@ -53,9 +53,9 @@ jobs:
trigger: true
- get: eloq_test_src
trigger: true
- get: mono_ubuntu_2204
- get: eloq_ubuntu_2404
- task: compile-test-task
image: mono_ubuntu_2204
image: eloq_ubuntu_2404
file: eloqsql_src/concourse/tasks/main.ent.yml
params:
ELOQ_AWS_ACCESS_KEY_ID: ((minio-access-key))
Expand Down
8 changes: 4 additions & 4 deletions concourse/pipeline/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ resources:
uri: git@github.com:eloqdata/eloq-test.git
private_key: ((git-key))

- name: mono_ubuntu_2204
- name: eloq_ubuntu_2404
type: registry-image
source:
repository: monographdb/monograph-dev-ci-ubuntu2204
repository: eloqdata/monograph-dev-ci-ubuntu2404
username: monographdb
password: ((docker_hub_pass))

Expand All @@ -33,9 +33,9 @@ jobs:
trigger: true
- get: eloq_test_src
trigger: true
- get: mono_ubuntu_2204
- get: eloq_ubuntu_2404
- task: compile-test-task
image: mono_ubuntu_2204
image: eloq_ubuntu_2404
file: eloqsql_src/concourse/tasks/main.yml
params:
ELOQ_AWS_ACCESS_KEY_ID: ((minio-access-key))
Expand Down
8 changes: 4 additions & 4 deletions concourse/pipeline/pr.ent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ resources:
uri: git@github.com:eloqdata/raft_host_manager.git
private_key: ((git-key))

- name: mono_ubuntu_2004
- name: eloq_ubuntu_2404
type: registry-image
source:
repository: monographdb/monograph-dev-ci-ubuntu2004
repository: eloqdata/monograph-dev-ci-ubuntu2404
username: monographdb
password: ((docker-secret-key))

Expand All @@ -58,13 +58,13 @@ jobs:
- get: eloqsql_pr
trigger: true
version: every
- get: mono_ubuntu_2004
- get: eloq_ubuntu_2404
- put: eloqsql_pr
params:
path: eloqsql_pr
status: pending
- task: compile-test-task
image: mono_ubuntu_2004
image: eloq_ubuntu_2404
file: eloqsql_pr/concourse/tasks/pr.ent.yml
params:
ELOQ_AWS_ACCESS_KEY_ID: ((minio-access-key))
Expand Down
29 changes: 15 additions & 14 deletions concourse/scripts/main.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ cd $WORKSPACE
whoami
pwd
ls
sudo chown -R mono $PWD
current_user=$(whoami)
sudo chown -R $current_user $PWD

# make coredump dir writable.
if [ ! -d "/var/crash" ]; then sudo mkdir -p /var/crash; fi
Expand All @@ -19,12 +20,12 @@ sudo chmod 777 /var/crash
ulimit -c unlimited
echo '/var/crash/core.%t.%e.%p' | sudo tee /proc/sys/kernel/core_pattern

sudo chown -R mono /home/mono/workspace
cd /home/mono/workspace
sudo chown -R $current_user /home/$current_user/workspace
cd /home/$current_user/workspace
ln -s $WORKSPACE/eloqsql_src eloqsql
ln -s $WORKSPACE/eloq_test_src eloq_test

cd /home/mono/workspace/eloqsql
cd /home/$current_user/workspace/eloqsql
git submodule sync
git submodule update --init --recursive

Expand Down Expand Up @@ -117,14 +118,14 @@ sed -i "s/rocksdb_cloud_bucket_prefix.*=.\+/rocksdb_cloud_bucket_prefix=dss-/g"
echo "dss_server.ini"
cat $WORKSPACE/eloqsql_src/concourse/scripts/dss_server.ini

cd /home/mono/workspace/eloqsql
cd /home/$current_user/workspace/eloqsql

echo "configuring"
if [ ! -d "bld" ]; then mkdir bld; fi
cd bld

if [ ! -f "Makefile" ]; then
cmake -DCMAKE_INSTALL_PREFIX="/home/mono/workspace/eloqsql/install" \
cmake -DCMAKE_INSTALL_PREFIX="/home/$current_user/workspace/eloqsql/install" \
-DPLUGIN_{HANDLERSOCKET,ROCKSDB,ARIA,ARCHIVE,CVS,FEDERATEDX,TOKUDB,MROONGA,OQGRAPH,CONNECT,SPIDER,SPHINX,HEAP,MYISAMMRG}=NO \
-DCMAKE_BUILD_TYPE=Debug \
-DINSTALL_MYSQLTESTDIR="" \
Expand Down Expand Up @@ -152,24 +153,24 @@ echo "installing"
cmake --install . --config Debug

echo "building dss_server"
cd /home/mono/workspace/eloqsql/storage/eloq/store_handler/eloq_data_store_service
cd /home/$current_user/workspace/eloqsql/storage/eloq/store_handler/eloq_data_store_service
mkdir bld && cd bld
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_DATA_STORE=ELOQDSS_ROCKSDB_CLOUD_S3 ../
cmake --build . --config Debug -j8
echo "installing dss_server"
cp dss_server /home/mono/workspace/eloqsql/install/bin/
cp dss_server /home/$current_user/workspace/eloqsql/install/bin/

echo "building log_server"
cd /home/mono/workspace/eloqsql/storage/eloq/log_service
cd /home/$current_user/workspace/eloqsql/storage/eloq/log_service
mkdir bld && cd bld
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DUSE_ROCKSDB_LOG_STATE=ON ../
cmake --build . --config Debug -j8
echo "installing launch_sv"
cp launch_sv /home/mono/workspace/eloqsql/install/bin/
cp launch_sv /home/$current_user/workspace/eloqsql/install/bin/

echo "build finished"

cd /home/mono/workspace/eloq_test
cd /home/$current_user/workspace/eloq_test
./setup
sed -i "s/eloq_aws_access_key_id.*=.\+/eloq_aws_access_key_id=${ELOQ_AWS_ACCESS_KEY_ID}/g" ./bootstrap_cnf/*_s3.cnf
sed -i "s/eloq_aws_secret_key.*=.\+/eloq_aws_secret_key=${ELOQ_AWS_SECRET_KEY}/g" ./bootstrap_cnf/*_s3.cnf
Expand Down Expand Up @@ -199,9 +200,9 @@ mc rb minio_server/txlog-${bucket_name} --force
set -e

echo "running eloq_test"
# python run_tests.py --dbtype eloqsql --storage eloqdss-rocksdb-cloud-s3 --install_path /home/mono/workspace/eloqsql/install
# python run_tests.py --dbtype eloqsql --storage eloqdss-rocksdb-cloud-s3 --install_path /home/$current_user/workspace/eloqsql/install

cd /home/mono/workspace/eloqsql/bld/mysql-test
cd /home/$current_user/workspace/eloqsql/bld/mysql-test

# Clean up minio buckets
echo "cleaning minio buckets"
Expand Down Expand Up @@ -233,7 +234,7 @@ cat $WORKSPACE/eloqsql_src/mysql-test/include/eloq_kv_dss.cnf

# Start dss_server
echo "starting dss_server"
nohup /home/mono/workspace/eloqsql/install/bin/dss_server --config=$WORKSPACE/eloqsql_src/concourse/scripts/dss_server.ini > dss_server.log 2>&1 &
nohup /home/$current_user/workspace/eloqsql/install/bin/dss_server --config=$WORKSPACE/eloqsql_src/concourse/scripts/dss_server.ini > dss_server.log 2>&1 &
sleep 5

echo "running mono_multi"
Expand Down
31 changes: 16 additions & 15 deletions concourse/scripts/main.ent.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ cd $WORKSPACE
whoami
pwd
ls
sudo chown -R mono $PWD
current_user=$(whoami)
sudo chown -R $current_user $PWD

# make coredump dir writable.
if [ ! -d "/var/crash" ]; then sudo mkdir -p /var/crash; fi
Expand All @@ -19,16 +20,16 @@ sudo chmod 777 /var/crash
ulimit -c unlimited
echo '/var/crash/core.%t.%e.%p' | sudo tee /proc/sys/kernel/core_pattern

sudo chown -R mono /home/mono/workspace
cd /home/mono/workspace
sudo chown -R $current_user /home/$current_user/workspace
cd /home/$current_user/workspace
ln -s $WORKSPACE/eloqsql_src eloqsql
ln -s $WORKSPACE/eloq_test_src eloq_test

cd /home/mono/workspace/eloqsql
cd /home/$current_user/workspace/eloqsql
git submodule sync
git submodule update --init --recursive

cd /home/mono/workspace/eloqsql/storage/eloq
cd /home/$current_user/workspace/eloqsql/storage/eloq
ln -s $WORKSPACE/logservice_src eloq_log_service
cd tx_service
ln -s $WORKSPACE/raft_host_manager_src raft_host_manager
Expand Down Expand Up @@ -125,14 +126,14 @@ sed -i "s/rocksdb_cloud_bucket_prefix.*=.\+/rocksdb_cloud_bucket_prefix=dss-/g"
echo "dss_server.ini"
cat $WORKSPACE/eloqsql_src/concourse/scripts/dss_server.ini

cd /home/mono/workspace/eloqsql
cd /home/$current_user/workspace/eloqsql

echo "configuring"
if [ ! -d "bld" ]; then mkdir bld; fi
cd bld

if [ ! -f "Makefile" ]; then
cmake -DCMAKE_INSTALL_PREFIX="/home/mono/workspace/eloqsql/install" \
cmake -DCMAKE_INSTALL_PREFIX="/home/$current_user/workspace/eloqsql/install" \
-DPLUGIN_{HANDLERSOCKET,ROCKSDB,ARIA,ARCHIVE,CVS,FEDERATEDX,TOKUDB,MROONGA,OQGRAPH,CONNECT,SPIDER,SPHINX,HEAP,MYISAMMRG}=NO \
-DCMAKE_BUILD_TYPE=Debug \
-DINSTALL_MYSQLTESTDIR="" \
Expand Down Expand Up @@ -163,24 +164,24 @@ echo "installing"
cmake --install . --config Debug

echo "building dss_server"
cd /home/mono/workspace/eloqsql/storage/eloq/store_handler/eloq_data_store_service
cd /home/$current_user/workspace/eloqsql/storage/eloq/store_handler/eloq_data_store_service
mkdir bld && cd bld
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_DATA_STORE=ELOQDSS_ROCKSDB_CLOUD_S3 ../
cmake --build . --config Debug -j8
echo "installing dss_server"
cp dss_server /home/mono/workspace/eloqsql/install/bin/
cp dss_server /home/$current_user/workspace/eloqsql/install/bin/

echo "building log_server"
cd /home/mono/workspace/eloqsql/storage/eloq/log_service
cd /home/$current_user/workspace/eloqsql/storage/eloq/log_service
mkdir bld && cd bld
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DUSE_ROCKSDB_LOG_STATE=ON ../
cmake --build . --config Debug -j8
echo "installing launch_sv"
cp launch_sv /home/mono/workspace/eloqsql/install/bin/
cp launch_sv /home/$current_user/workspace/eloqsql/install/bin/

echo "build finished"

cd /home/mono/workspace/eloq_test
cd /home/$current_user/workspace/eloq_test
./setup
sed -i "s/eloq_aws_access_key_id.*=.\+/eloq_aws_access_key_id=${ELOQ_AWS_ACCESS_KEY_ID}/g" ./bootstrap_cnf/*_s3.cnf
sed -i "s/eloq_aws_secret_key.*=.\+/eloq_aws_secret_key=${ELOQ_AWS_SECRET_KEY}/g" ./bootstrap_cnf/*_s3.cnf
Expand Down Expand Up @@ -210,9 +211,9 @@ mc rb ${minio_server_alias}/txlog-${bucket_name} --force
set -e

echo "running eloq_test"
# python run_tests.py --dbtype eloqsql --storage eloqdss-rocksdb-cloud-s3 --install_path /home/mono/workspace/eloqsql/install
# python run_tests.py --dbtype eloqsql --storage eloqdss-rocksdb-cloud-s3 --install_path /home/$current_user/workspace/eloqsql/install

cd /home/mono/workspace/eloqsql/bld/mysql-test
cd /home/$current_user/workspace/eloqsql/bld/mysql-test

# Clean up minio buckets
echo "cleaning minio buckets"
Expand Down Expand Up @@ -244,7 +245,7 @@ cat $WORKSPACE/eloqsql_src/mysql-test/include/eloq_kv_dss.cnf

# Start dss_server
echo "starting dss_server"
nohup /home/mono/workspace/eloqsql/install/bin/dss_server --config=$WORKSPACE/eloqsql_src/concourse/scripts/dss_server.ini > dss_server.log 2>&1 &
nohup /home/$current_user/workspace/eloqsql/install/bin/dss_server --config=$WORKSPACE/eloqsql_src/concourse/scripts/dss_server.ini > dss_server.log 2>&1 &
sleep 5

echo "running mono_multi"
Expand Down
4 changes: 2 additions & 2 deletions concourse/scripts/my.cnf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[mariadb]
plugin_maturity=experimental
datadir=/home/mono/mariadbdata0
lc_messages_dir=/home/mono/workspace/mariadb/sql/share
datadir=/home/eloq/mariadbdata0
lc_messages_dir=/home/eloq/workspace/mariadb/sql/share
max_connections=500
skip-log-bin
innodb_flush_method=fsync
Expand Down
31 changes: 16 additions & 15 deletions concourse/scripts/pr.ent.bash
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ cd $WORKSPACE
whoami
pwd
ls
sudo chown -R mono $PWD
current_user=$(whoami)
sudo chown -R $current_user $PWD

# make coredump dir writable.
if [ ! -d "/var/crash" ]; then sudo mkdir -p /var/crash; fi
Expand All @@ -18,17 +19,17 @@ sudo chmod 777 /var/crash
ulimit -c unlimited
echo '/var/crash/core.%t.%e.%p' | sudo tee /proc/sys/kernel/core_pattern

sudo chown -R mono /home/mono/workspace
cd /home/mono/workspace
sudo chown -R $current_user /home/$current_user/workspace
cd /home/$current_user/workspace
ln -s $WORKSPACE/eloqsql_pr eloqsql
ln -s $WORKSPACE/eloq_test_src eloq_test

cd /home/mono/workspace/eloqsql
cd /home/$current_user/workspace/eloqsql
git submodule sync
git submodule update --init --recursive
pr_branch_name=$(cat .git/resource/metadata.json | jq -r '.[] | select(.name=="head_name") | .value')

cd /home/mono/workspace/eloqsql/storage/eloq
cd /home/$current_user/workspace/eloqsql/storage/eloq
ln -s $WORKSPACE/logservice_src eloq_log_service

cd eloq_log_service
Expand Down Expand Up @@ -134,14 +135,14 @@ sed -i "s/rocksdb_cloud_bucket_prefix.*=.\+/rocksdb_cloud_bucket_prefix=dss-/g"
echo "dss_server.ini"
cat $WORKSPACE/eloqsql_pr/concourse/scripts/dss_server.ini

cd /home/mono/workspace/eloqsql
cd /home/$current_user/workspace/eloqsql

echo "configuring"
if [ ! -d "bld" ]; then mkdir bld; fi
cd bld

if [ ! -f "Makefile" ]; then
cmake -DCMAKE_INSTALL_PREFIX="/home/mono/workspace/eloqsql/install" \
cmake -DCMAKE_INSTALL_PREFIX="/home/$current_user/workspace/eloqsql/install" \
-DPLUGIN_{HANDLERSOCKET,ROCKSDB,ARIA,ARCHIVE,CVS,FEDERATEDX,TOKUDB,MROONGA,OQGRAPH,CONNECT,SPIDER,SPHINX,HEAP,MYISAMMRG}=NO \
-DCMAKE_BUILD_TYPE=Debug \
-DINSTALL_MYSQLTESTDIR="" \
Expand Down Expand Up @@ -172,24 +173,24 @@ echo "installing"
cmake --install . --config Debug

echo "building dss_server"
cd /home/mono/workspace/eloqsql/storage/eloq/store_handler/eloq_data_store_service
cd /home/$current_user/workspace/eloqsql/storage/eloq/store_handler/eloq_data_store_service
mkdir bld && cd bld
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_DATA_STORE=ELOQDSS_ROCKSDB_CLOUD_S3 ../
cmake --build . --config Debug -j8
echo "installing dss_server"
cp dss_server /home/mono/workspace/eloqsql/install/bin/
cp dss_server /home/$current_user/workspace/eloqsql/install/bin/

echo "building log_server"
cd /home/mono/workspace/eloqsql/storage/eloq/eloq_log_service
cd /home/$current_user/workspace/eloqsql/storage/eloq/eloq_log_service
mkdir bld && cd bld
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DUSE_ROCKSDB_LOG_STATE=ON -DWITH_ROCKSDB_CLOUD=S3 ../
cmake --build . --config Debug -j8
echo "installing launch_sv"
cp launch_sv /home/mono/workspace/eloqsql/install/bin/
cp launch_sv /home/$current_user/workspace/eloqsql/install/bin/

echo "build finished"

cd /home/mono/workspace/eloq_test
cd /home/$current_user/workspace/eloq_test
./setup
sed -i "s/eloq_aws_access_key_id.*=.\+/eloq_aws_access_key_id=${ELOQ_AWS_ACCESS_KEY_ID}/g" ./bootstrap_cnf/*_s3.cnf
sed -i "s/eloq_aws_secret_key.*=.\+/eloq_aws_secret_key=${ELOQ_AWS_SECRET_KEY}/g" ./bootstrap_cnf/*_s3.cnf
Expand Down Expand Up @@ -219,9 +220,9 @@ mc rb ${minio_server_alias}/txlog-${bucket_name} --force
set -e

echo "running eloq_test"
# python run_tests.py --dbtype eloqsql --storage eloqdss-rocksdb-cloud-s3 --install_path /home/mono/workspace/eloqsql/install
# python run_tests.py --dbtype eloqsql --storage eloqdss-rocksdb-cloud-s3 --install_path /home/$current_user/workspace/eloqsql/install

cd /home/mono/workspace/eloqsql/bld/mysql-test
cd /home/$current_user/workspace/eloqsql/bld/mysql-test

# Clean up minio buckets
echo "cleaning minio buckets"
Expand Down Expand Up @@ -253,7 +254,7 @@ cat $WORKSPACE/eloqsql_pr/mysql-test/include/eloq_kv_dss.cnf

# Start dss_server
echo "starting dss_server"
nohup /home/mono/workspace/eloqsql/install/bin/dss_server --config=$WORKSPACE/eloqsql_pr/concourse/scripts/dss_server.ini > dss_server.log 2>&1 &
nohup /home/$current_user/workspace/eloqsql/install/bin/dss_server --config=$WORKSPACE/eloqsql_pr/concourse/scripts/dss_server.ini > dss_server.log 2>&1 &
sleep 5

echo "running mono_multi"
Expand Down
Loading