Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Merge requests
!188
Add benchmarks to CI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add benchmarks to CI
bgallois/duniter-v2s:add_benchmarks_ci
into
master
Overview
5
Commits
4
Pipelines
22
Changes
7
Merged
Benjamin Gallois
requested to merge
bgallois/duniter-v2s:add_benchmarks_ci
into
master
1 year ago
Overview
2
Commits
4
Pipelines
22
Changes
7
Expand
1
0
Merge request reports
Compare
master
version 10
0f4cd6b3
1 year ago
version 9
d082a150
1 year ago
version 8
171c219f
1 year ago
version 7
00779a3b
1 year ago
version 6
0c3046f0
1 year ago
version 5
cc1425e8
1 year ago
version 4
6b22e7fd
1 year ago
version 3
12cc52fa
1 year ago
version 2
9eeba398
1 year ago
version 1
b8d3fb2e
1 year ago
master (base)
and
latest version
latest version
6533430d
4 commits,
1 year ago
version 10
0f4cd6b3
3 commits,
1 year ago
version 9
d082a150
2 commits,
1 year ago
version 8
171c219f
2 commits,
1 year ago
version 7
00779a3b
2 commits,
1 year ago
version 6
0c3046f0
2 commits,
1 year ago
version 5
cc1425e8
4 commits,
1 year ago
version 4
6b22e7fd
2 commits,
1 year ago
version 3
12cc52fa
1 commit,
1 year ago
version 2
9eeba398
1 commit,
1 year ago
version 1
b8d3fb2e
1 commit,
1 year ago
7 files
+
57
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
docker/Dockerfile
+
12
−
1
Options
@@ -33,6 +33,11 @@ RUN if [ "$debug" = 0 ]; then \
echo
"TARGET_FOLDER=debug"
>>
/root/dynenv
;
\
fi
ARG
benchmarks=0
RUN if
[
"
$benchmarks
"
!=
0
]
;
then
\
echo
"BENCH_OPTIONS=--features
\
runtime-benchmarks"
>>
/root/dynenv
;
\
fi
# Configure cross-build environment if need be
RUN
set
-x
&&
\
if
[
"
$TARGETPLATFORM
"
!=
"
$BUILDPLATFORM
"
]
;
then
\
@@ -48,7 +53,7 @@ ARG chain="gdev"
RUN
set
-x
&&
\
cat
/root/dynenv
&&
\
.
/root/dynenv
&&
\
cargo build
--locked
$CARGO_OPTIONS
--no-default-features
--features
$chain
--target
"
$RUST_ARCH_TRIPLET
"
&&
\
cargo build
--locked
$CARGO_OPTIONS
--no-default-features
$BENCH_OPTIONS
--features
$chain
--target
"
$RUST_ARCH_TRIPLET
"
&&
\
mkdir
-p
build
&&
\
mv
target/
$RUST_ARCH_TRIPLET
/
$TARGET_FOLDER
/duniter build/
@@ -56,11 +61,17 @@ RUN set -x && \
ARG
cucumber=0
RUN if
[
"
$cucumber
"
!=
0
]
&&
[
"
$TARGETPLATFORM
"
=
"
$BUILDPLATFORM
"
]
;
then
\
cargo ta
&&
\
cargo
test
--workspace
--exclude
duniter-end2end-tests
--exclude
duniter-live-tests
--features
runtime-benchmarks
\
cd
target/debug/deps/
&&
\
rm
cucumber_tests-
*
.d
&&
\
mv
cucumber_tests
*
../../../build/duniter-cucumber
;
\
fi
# Run runtime benchmarks
RUN if
[
"
$benchmarks
"
!=
0
]
;
then
\
build/duniter benchmark pallet
--chain
dev
--execution
=
wasm
--wasm-execution
=
compiled
--pallet
"*"
--extrinsic
"*"
--steps
2
--repeat
1
;
\
fi
# ------------------------------------------------------------------------------
# Final Stage
# ------------------------------------------------------------------------------
Loading