Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Commits
9a2d2114
Commit
9a2d2114
authored
Jul 10, 2024
by
Dmitry Rodionov
Committed by
Виталий Шунков
Jul 19, 2024
Browse files
Options
Downloads
Patches
Plain Diff
ci: separate lint from test, unify CARGO_HOME
Close:
https://git.picodata.io/picodata/picodata/picodata/-/issues/357
parent
2630ace7
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1137
ci: separate lint from test, unify CARGO_HOME
Pipeline
#45751
failed
Jul 19, 2024
Stage: build-base-image
Stage: test
Stage: stress-test
Changes
1
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+42
-10
42 additions, 10 deletions
.gitlab-ci.yml
with
42 additions
and
10 deletions
.gitlab-ci.yml
+
42
−
10
View file @
9a2d2114
...
...
@@ -24,7 +24,7 @@ variables:
BASE_IMAGE
:
${REGISTRY}/picodata-build-base
BASE_IMAGE_LATEST
:
latest
MAIN_BRANCH
:
&main-branch
master
CARGO_HOME
:
/data/shared-storage/picodata
/.cargo
CARGO_HOME
:
$CI_PROJECT_DIR
/.cargo
KANIKO_REGISTRY_MIRROR
:
docker-proxy.binary.picodata.io
FF_USE_FASTZIP
:
"
true"
CACHE_COMPRESSION_LEVEL
:
"
fastest"
...
...
@@ -140,6 +140,13 @@ build-base-image:
matrix
:
-
BUILD_PROFILE
:
[
release
,
dev
]
.pipenv-install
:
&pipenv-install
|
# Pipenv install
ci-log-section start "pipenv-install" Installing pip dependencies ...
PIPENV_VENV_IN_PROJECT=1 PIP_NO_CACHE_DIR=true python3.10 -m pipenv install --deploy
ci-log-section end "pipenv-install"
test-linux
:
extends
:
-
.test
...
...
@@ -159,7 +166,6 @@ test-linux:
pull_policy
:
if-not-present
variables
:
GIT_DEPTH
:
1
CARGO_HOME
:
$CI_PROJECT_DIR/.cargo
cache
:
-
<<
:
*py_cache
-
<<
:
*base_cache
...
...
@@ -189,11 +195,7 @@ test-linux:
-
cargo -V
-
&pipenv-install
|
# Pipenv install
ci-log-section start "pipenv-install" Installing pip dependencies ...
PIPENV_VENV_IN_PROJECT=1 PIP_NO_CACHE_DIR=true python3.10 -m pipenv install --deploy
ci-log-section end "pipenv-install"
-
*pipenv-install
# There are no Rust tests for `webui` feature, it's checked in pytest
-
cargo build --timings --locked --profile=$BUILD_PROFILE
...
...
@@ -211,8 +213,6 @@ test-linux:
--junitxml=junit_pytest.xml
--with-webui
-
make lint
artifacts
:
when
:
always
paths
:
...
...
@@ -221,6 +221,38 @@ test-linux:
reports
:
junit
:
junit_pytest.xml
lint
:
stage
:
test
interruptible
:
true
rules
:
-
<<
:
*if-build-base-changes-on-master-branch
variables
:
BASE_IMAGE_TAG
:
${BASE_IMAGE_LATEST}
-
<<
:
*if-build-base-changes-on-dev-branch
variables
:
BASE_IMAGE_TAG
:
${CI_COMMIT_SHA}
-
<<
:
*else
variables
:
BASE_IMAGE_TAG
:
${BASE_IMAGE_LATEST}
image
:
name
:
${BASE_IMAGE}:${BASE_IMAGE_TAG}
pull_policy
:
if-not-present
variables
:
GIT_DEPTH
:
1
GIT_SUBMODULE_STRATEGY
:
recursive
cache
:
-
<<
:
*py_cache
policy
:
pull
-
<<
:
*base_cache
policy
:
pull
-
<<
:
*base_node
policy
:
pull
script
:
-
*fetch-tags
-
*pipenv-install
-
make lint
-
cd webui && yarn lint
.test-patch-rules
:
&test-patch-rules
rules
:
-
<<
:
*if-build-base-changes-on-master-branch
...
...
@@ -255,7 +287,6 @@ test-patch-picodata:
variables
:
GIT_DEPTH
:
1
GIT_SUBMODULE_STRATEGY
:
recursive
CARGO_HOME
:
$CI_PROJECT_DIR/.cargo
image
:
name
:
${BASE_IMAGE}:${BASE_IMAGE_LATEST}
pull_policy
:
always
...
...
@@ -297,6 +328,7 @@ test-mac-m1:
tags
:
-
mac-dev-m1
script
:
# Gitlab doesnt know about $HOME. If specified in variables it becomes empty
-
export CARGO_HOME=$HOME/.cargo
-
cargo -V
-
cargo build --locked
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment