Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
ci
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Iris
ci
Compare revisions
16c8b6107119db3448b6828d3d2757888f2b2376 to 8324acefba3ffef86b4c5eca3c961ce69dc4dd02
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
iris/ci
Select target project
No results found
8324acefba3ffef86b4c5eca3c961ce69dc4dd02
Select Git revision
Swap
Target
iris/ci
Select target project
iris/ci
msammler/ci
snyke7/ci
3 results
16c8b6107119db3448b6828d3d2757888f2b2376
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (4)
Revert "allow configuring build target"
· 8ec855ae
Ralf Jung
authored
6 years ago
This reverts commit
16c8b610
. We don't need this any more.
8ec855ae
collect timing information using perf
· 8693ed7d
Ralf Jung
authored
6 years ago
8693ed7d
use /usr/bin/time to collect runtime and memory
· ca13b311
Ralf Jung
authored
6 years ago
ca13b311
add pretty header for build time information
· 8324acef
Ralf Jung
authored
6 years ago
8324acef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
buildjob
+11
-8
11 additions, 8 deletions
buildjob
perf
+8
-0
8 additions, 0 deletions
perf
with
19 additions
and
8 deletions
buildjob
View file @
8324acef
...
...
@@ -26,17 +26,16 @@ set -o pipefail
.
ci/prepare-opam.sh
$OPAM_PINS
# deliberately not quoted
env
| egrep
'^(CI_BUILD_REF|CI_RUNNER)'
>
build-env.txt
# maybe set some coq flags
if
[[
-n
"
$MANGLE_NAMES
"
]]
;
then
export
COQEXTRAFLAGS
=
"
$COQEXTRAFLAGS
-mangle-names mangled_"
fi
if
[[
-n
"
$TIMING_PROJECT
"
]]
;
then
export
TIMECMD
=
ci/perf
fi
# Build
BUILD_TARGET
=
${
BUILD_TARGET
:-
all
}
echo_color
"
$BOLDGREEN
"
"[buildjob] Perfoming build (target:
$BUILD_TARGET
)"
time
make
$BUILD_TARGET
--output-sync
--no-print-directory
-k
-j
$CPU_CORES
TIMED
=
y 2>&1 |
tee
build-log.txt
echo_color
"
$BOLDGREEN
"
"[buildjob] Build time summary"
cat
build-log.txt | egrep
"(real|user): [0-9]"
|
tee
build-time.txt
echo_color
"
$BOLDGREEN
"
"[buildjob] Perfoming build"
time
make
--output-sync
--no-print-directory
-k
-j
$CPU_CORES
2>&1
# maybe check for axioms
if
[[
-z
"
$AXIOMS_IGNORE
"
]]
;
then
...
...
@@ -48,8 +47,12 @@ fi
# maybe submit timing information
if
[[
-n
"
$TIMING_PROJECT
"
&&
-n
"
$TIMING_CONF
"
]]
;
then
echo_color
"
$BOLDGREEN
"
"[buildjob] Submitting timing information to coq-speed"
# collect all information into one file
echo_color
"
$BOLDGREEN
"
"[buildjob] Build performance information"
find
-name
"*.v.perf"
-print0
| xargs
-0
cat
>
build-times.txt
cat
build-times.txt
# check if we have the secret
echo_color
"
$BOLDGREEN
"
"[buildjob] Submitting timing information to coq-speed"
if
[[
-z
"
$TIMING_SECRET
"
]]
;
then
echo_color
"
$BOLDRED
"
"[buildjob] TIMING_SECRET variable is missing"
exit
1
...
...
@@ -62,7 +65,7 @@ if [[ -n "$TIMING_PROJECT" && -n "$TIMING_CONF" ]]; then
-H
"X-Branch:
$CI_COMMIT_REF_NAME
"
\
-H
"X-Config:
$TIMING_CONF
"
\
-H
"X-Date:
$(
git show
$CI_COMMIT_SHA
-s
--pretty
=
%cI
)
"
\
--data-binary
@- < build-time.txt
--data-binary
@- < build-time
s
.txt
fi
# maybe create opam package
...
...
This diff is collapsed.
Click to expand it.
perf
0 → 100755
View file @
8324acef
#!/bin/bash
set
-e
# Wrapper script to use perf as TIMECMD for the build.
VFILE
=
"
${
!#
}
"
LC_ALL
=
C /usr/bin/time
-o
"
$VFILE
.time"
-f
"real: %e, user: %U, sys: %S, mem: %M kB"
--
perf
stat
-o
"
$VFILE
.counters"
-x
';'
-e
instructions,cycles
--
"
$@
"
(
echo
"##
$VFILE
"
&&
(
cat
"
$VFILE
.counters"
| egrep
-v
'^(# .*)?$'
)
&&
cat
"
$VFILE
.time"
&&
echo
)
>
"
$VFILE
.perf"
rm
"
$VFILE
.counters"
"
$VFILE
.time"
This diff is collapsed.
Click to expand it.