Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
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
Container Registry
Model registry
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
41a7ab96
Commit
41a7ab96
authored
4 years ago
by
Nick Mathewson
Browse files
Options
Downloads
Patches
Plain Diff
CI: Turn on stem with 044 and later.
parent
f5b94715
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-4
3 additions, 4 deletions
.gitlab-ci.yml
scripts/ci/ci-driver.sh
+23
-11
23 additions, 11 deletions
scripts/ci/ci-driver.sh
with
26 additions
and
15 deletions
.gitlab-ci.yml
+
3
−
4
View file @
41a7ab96
...
...
@@ -37,6 +37,7 @@ variables:
paths
:
-
artifacts/
# This template
.apt-template
:
&apt-template
|
export LC_ALL=C.UTF-8
echo Etc/UTC > /etc/timezone
...
...
@@ -90,9 +91,7 @@ debian-minimal:
-
./scripts/ci/ci-driver.sh
# TODO: This one just takes too long to finish right now!
# Maybe we need to divide the call to ./src/test/test into a few segments,
# that all end in similar amount of time?
# TODO: This will be faster once we merge #40098 and #40099.
debian-hardened
:
image
:
debian:testing
<<
:
*debian-template
...
...
@@ -128,6 +127,6 @@ debian-integration:
variables
:
CHECK
:
"
no"
CHUTNEY
:
"
yes"
#
STEM: "yes"
-- currently failing on <044.
STEM
:
"
yes"
script
:
-
./scripts/ci/ci-driver.sh
This diff is collapsed.
Click to expand it.
scripts/ci/ci-driver.sh
+
23
−
11
View file @
41a7ab96
...
...
@@ -267,18 +267,26 @@ TOR_VERSION=$(grep -m 1 AC_INIT configure.ac | sed -e 's/.*\[//; s/\].*//;')
# Use variables like these when we need to behave differently depending on
# Tor version. Only create the variables we need.
TOR_VER_AT_LEAST_043
=
no
TOR_VER_AT_LEAST_044
=
no
# These are the currently supported Tor versions; no need to work with anything
# ancient in this script.
case
"
$TOR_VERSION
"
in
0.3.
*
)
TOR_VER_AT_LEAST_043
=
no
TOR_VER_AT_LEAST_044
=
no
;;
0.4.[012].
*
)
TOR_VER_AT_LEAST_043
=
no
TOR_VER_AT_LEAST_044
=
no
;;
0.4.3.
*
)
TOR_VER_AT_LEAST_043
=
yes
TOR_VER_AT_LEAST_044
=
no
;;
*
)
TOR_VER_AT_LEAST_043
=
yes
TOR_VER_AT_LEAST_044
=
yes
;;
esac
...
...
@@ -427,21 +435,25 @@ fi
if
[[
"
${
STEM
}
"
=
"yes"
]]
;
then
start_section
"Stem"
# XXXX This shold probably be part some test-stem make target.
if
runcmd timelimit
-p
-t
520
-s
USR1
-T
30
-S
ABRT
\
python3
"
${
STEM_PATH
}
/run_tests.py"
\
--tor
src/app/tor
\
--integ
--test
control.controller
\
--test
control.base_controller
\
--test
process
\
--log
TRACE
\
--log-file
stem.log
;
then
hooray
"Stem tests have succeeded"
else
if
[[
"
${
TOR_VER_AT_LEAST_044
}
"
=
'yes'
]]
;
then
# XXXX This shold probably be part some test-stem make target.
if
runcmd timelimit
-p
-t
520
-s
USR1
-T
30
-S
ABRT
\
python3
"
${
STEM_PATH
}
/run_tests.py"
\
--tor
src/app/tor
\
--integ
--test
control.controller
\
--test
control.base_controller
\
--test
process
\
--log
TRACE
\
--log-file
stem.log
;
then
hooray
"Stem tests have succeeded"
else
error
"Stem output:"
runcmd
tail
-1000
"
${
STEM_PATH
}
"
/test/data/tor_log
runcmd
grep
-v
"SocketClosed"
stem.log |
tail
-1000
FAILED_TESTS
=
"
${
FAILED_TESTS
}
stem"
fi
else
skipping
"Stem: broken with <= 0.4.3. See bug tor#40077"
fi
end_section
"Stem"
fi
...
...
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