Skip to content
Snippets Groups Projects
Commit 0fad4a04 authored by Виталий Шунков's avatar Виталий Шунков Committed by Dmitry Rodionov
Browse files
parent 97b51c12
No related branches found
No related tags found
1 merge request!1010ci: added tests after patches
Pipeline #41255 failed
...@@ -27,6 +27,9 @@ variables: ...@@ -27,6 +27,9 @@ variables:
GET_SOURCES_ATTEMPTS: 3 GET_SOURCES_ATTEMPTS: 3
NO_CACHE: NO_CACHE:
description: "Do not use cache during build phase" description: "Do not use cache during build phase"
# k8s runner config
KUBERNETES_CPU_REQUEST: 4
KUBERNETES_MEMORY_REQUEST: "4Gi"
# job:rules explained: # job:rules explained:
# #
...@@ -59,7 +62,7 @@ variables: ...@@ -59,7 +62,7 @@ variables:
paths: *build-base-changes-paths paths: *build-base-changes-paths
- &else {} - &else {}
build-base-image: build-base-image:
stage: build-base-image stage: build-base-image
tags: tags:
...@@ -249,6 +252,69 @@ test-linux: ...@@ -249,6 +252,69 @@ test-linux:
reports: reports:
junit: junit_pytest.xml junit: junit_pytest.xml
test-patch-picodata:
extends: .test
tags:
- docker
rules:
- <<: *if-build-base-changes-on-master-branch
variables:
BASE_IMAGE_TAG: ${BASE_IMAGE_TAG}
- <<: *if-build-base-changes-on-dev-branch
variables:
BASE_IMAGE_TAG: ${CI_COMMIT_SHA}
- <<: *else
variables:
BASE_IMAGE_TAG: ${BASE_IMAGE_LATEST}
variables:
GIT_DEPTH: 1
GIT_SUBMODULE_STRATEGY: recursive
image:
name: ${BASE_IMAGE}:${BASE_IMAGE_LATEST}
pull_policy: always
script:
- PIPENV_VENV_IN_PROJECT=1 PIP_NO_CACHE_DIR=true python3.10 -m pipenv install --deploy
- ./tools/prepare_source_tree_for_stat_analysis.py svace
- ./tools/prepare_source_tree_for_stat_analysis.py gamayun
- cargo build --locked --release --features dynamic_build
- cargo build -p testplug --release
- cargo build -p gostech-audit-log
- cargo build -p gostech-metrics
- cp ./target/release/libtestplug.so ./test/testplug/.
- cargo test --locked --release --features dynamic_build
- cargo build --features webui,error_injection --locked --release --features dynamic_build
- >
BUILD_PROFILE=release pipenv run pytest -vv
--color=yes
--numprocesses auto
--junitxml=junit_pytest.xml
--with-webui
test-patch-tarantool:
extends: .test
tags:
- docker
rules:
- <<: *if-build-base-changes-on-master-branch
variables:
BASE_IMAGE_TAG: ${BASE_IMAGE_TAG}
- <<: *if-build-base-changes-on-dev-branch
variables:
BASE_IMAGE_TAG: ${CI_COMMIT_SHA}
- <<: *else
variables:
BASE_IMAGE_TAG: ${BASE_IMAGE_LATEST}
variables:
GIT_DEPTH: 1
GIT_SUBMODULE_STRATEGY: recursive
image:
name: ${BASE_IMAGE}:${BASE_IMAGE_LATEST}
pull_policy: always
script:
- pushd tarantool-sys/ && make -f .test.mk test-release; popd
test-mac-m1: test-mac-m1:
extends: .test extends: .test
tags: tags:
......
FROM ubuntu:22.04 FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN set -e; \ RUN set -e; \
apt update -y && \ apt update -y && \
apt install -y \ apt install -y \
build-essential \ build-essential \
git unzip wget curl\ git unzip wget curl tzdata \
libtool autoconf cmake make \ libtool autoconf cmake make \
python3 \ python3 \
python3-yaml \ python3-yaml \
...@@ -51,3 +53,6 @@ RUN set -e; \ ...@@ -51,3 +53,6 @@ RUN set -e; \
cd /bin; \ cd /bin; \
curl -L -o glauth https://github.com/glauth/glauth/releases/download/v2.3.0/glauth-linux-amd64; \ curl -L -o glauth https://github.com/glauth/glauth/releases/download/v2.3.0/glauth-linux-amd64; \
chmod +x glauth; chmod +x glauth;
# Timezone
RUN ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime
...@@ -25,6 +25,7 @@ DEBUG = os.getenv("DEBUG") ...@@ -25,6 +25,7 @@ DEBUG = os.getenv("DEBUG")
DEAD_LIST = [ DEAD_LIST = [
# from 6b2a88b551e6940089cf248d88b050b65ab67262 # from 6b2a88b551e6940089cf248d88b050b65ab67262
"tarantool-sys/vendor/icu4c-71_1/source/python/icutools/databuilder/renderers/common_exec.py", "tarantool-sys/vendor/icu4c-71_1/source/python/icutools/databuilder/renderers/common_exec.py",
# static build doesn't work without this file. We build dynamically, so it's fine
"tarantool-sys/third_party/nghttp2/script/fetch-ocsp-response", "tarantool-sys/third_party/nghttp2/script/fetch-ocsp-response",
"tarantool-sys/vendor/openssl-1.1.1q/fuzz/helper.py", "tarantool-sys/vendor/openssl-1.1.1q/fuzz/helper.py",
"tarantool-sys/third_party/zstd/.circleci/images/primary/Dockerfile", "tarantool-sys/third_party/zstd/.circleci/images/primary/Dockerfile",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment