Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue 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
felixmoebius
libc
Commits
911b5440
Commit
911b5440
authored
4 years ago
by
Yuki Okushi
Browse files
Options
Downloads
Patches
Plain Diff
Retry N times on s390x CI to avoid timeout failure
parent
d5066c5c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ci/run.sh
+34
-6
34 additions, 6 deletions
ci/run.sh
with
34 additions
and
6 deletions
ci/run.sh
+
34
−
6
View file @
911b5440
...
...
@@ -82,17 +82,45 @@ if [ "$QEMU" != "" ]; then
exec
egrep
"^(PASSED)|(test result: ok)"
"
${
CARGO_TARGET_DIR
}
/out.log"
fi
# FIXME: x86_64-unknown-linux-gnux32 fail to compile without --release
# FIXME: x86_64-unknown-linux-gnux32 fail
s
to compile without --release
# See https://github.com/rust-lang/rust/issues/59220
opt
=
if
[
"
$TARGET
"
=
"x86_64-unknown-linux-gnux32"
]
;
then
opt
=
"--release"
fi
cargo
test
$opt
--no-default-features
--manifest-path
libc-test/Cargo.toml
\
--target
"
${
TARGET
}
"
if
[
"
$TARGET
"
=
"s390x-unknown-linux-gnu"
]
;
then
# FIXME: s390x-unknown-linux-gnu often fails to test due to timeout,
# so we retry this N times.
N
=
5
n
=
0
passed
=
0
until
[
$n
-ge
$N
]
do
if
[
"
$passed
"
=
"0"
]
;
then
if
cargo
test
--no-default-features
--manifest-path
libc-test/Cargo.toml
--target
"
${
TARGET
}
"
;
then
passed
=
$((
passed+1
))
continue
fi
elif
[
"
$passed
"
=
"1"
]
;
then
if
cargo
test
$opt
--manifest-path
libc-test/Cargo.toml
--target
"
${
TARGET
}
"
;
then
passed
=
$((
passed+1
))
continue
fi
elif
[
"
$passed
"
=
"2"
]
;
then
if
cargo
test
$opt
--features
extra_traits
--manifest-path
libc-test/Cargo.toml
--target
"
${
TARGET
}
"
;
then
break
fi
fi
n
=
$((
n+1
))
sleep
1
done
else
cargo
test
$opt
--no-default-features
--manifest-path
libc-test/Cargo.toml
\
--target
"
${
TARGET
}
"
cargo
test
$opt
--manifest-path
libc-test/Cargo.toml
--target
"
${
TARGET
}
"
cargo
test
$opt
--manifest-path
libc-test/Cargo.toml
--target
"
${
TARGET
}
"
cargo
test
$opt
--features
extra_traits
--manifest-path
libc-test/Cargo.toml
\
--target
"
${
TARGET
}
"
cargo
test
$opt
--features
extra_traits
--manifest-path
libc-test/Cargo.toml
\
--target
"
${
TARGET
}
"
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