Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QueryR
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Julien Lopez
QueryR
Commits
a28e1349
Commit
a28e1349
authored
9 years ago
by
Mick Jordan
Browse files
Options
Downloads
Patches
Plain Diff
add keep alive thread
parent
98e0eb8a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ci.hocon
+2
-2
2 additions, 2 deletions
ci.hocon
com.oracle.truffle.r.test.cran/r/install.cran.packages.R
+2
-3
2 additions, 3 deletions
com.oracle.truffle.r.test.cran/r/install.cran.packages.R
mx.fastr/mx_fastr.py
+18
-0
18 additions, 0 deletions
mx.fastr/mx_fastr.py
with
22 additions
and
5 deletions
ci.hocon
+
2
−
2
View file @
a28e1349
...
...
@@ -59,8 +59,8 @@ pkgtest: ${common} ${java8Downloads} {
}
builds
=
[
${
gateTest
}
{
capabilities
:
[
linux
,
amd
64
,
gate
],
name
:
"gate-test-linux-amd64"
}
${
gateStyle
}
{
capabilities
:
[
linux
,
amd
64
,
gate
],
name
:
"gate-style-linux-amd64"
}
#
${gateTest} {capabilities : [linux, amd64, gate], name: "gate-test-linux-amd64"}
#
${gateStyle} {capabilities : [linux, amd64, gate], name: "gate-style-linux-amd64"}
# ${gateTest} {capabilities : [linux, sparcv9, gate], name: "gate-test-linux-sparcv9"}
${
pkgtest
}
{
capabilities
:
[
linux
,
amd
64
,
gate
],
name
:
"pkgtest-test-linux-amd64"
}
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
com.oracle.truffle.r.test.cran/r/install.cran.packages.R
+
2
−
3
View file @
a28e1349
...
...
@@ -457,11 +457,10 @@ do.it <- function() {
cat
(
"BEGIN package installation\n"
)
install.pkgs
(
test.pkgnames
,
blacklist
)
cat
(
"END package installation\n"
)
if
(
print.ok.installs
)
{
for
(
pkgname.i
in
names
(
install.status
))
{
if
(
install.status
[
pkgname.i
])
{
cat
(
pkgname.i
,
"\n"
)
}
cat
(
paste0
(
pkgname.i
,
":"
),
ifelse
(
install.status
[
pkgname.i
],
"OK"
,
"FAILED"
),
"\n"
)
}
}
}
...
...
This diff is collapsed.
Click to expand it.
mx.fastr/mx_fastr.py
+
18
−
0
View file @
a28e1349
...
...
@@ -28,6 +28,8 @@ import mx_gate
import
mx_fastr_pkgtest
import
os
import
shutil
from
threading
import
Thread
import
time
'''
This is the launchpad for all the functions available for building/running/testing/analyzing
...
...
@@ -314,11 +316,27 @@ def _test_harness_body(args, vmArgs):
def
__call__
(
self
,
data
):
self
.
data
+=
data
class
KeepAlive
(
Thread
):
def
__init__
(
self
):
Thread
.
__init__
(
self
)
self
.
setDaemon
(
True
)
self
.
running
=
True
def
run
(
self
):
while
self
.
running
:
time
.
sleep
(
30
);
print
"
keepalive
"
out
=
OutputCapture
()
if
args
.
capture_output
else
None
t
=
KeepAlive
()
if
args
.
capture_output
else
None
if
t
:
t
.
start
();
rc
=
_installpkgs
(
stacktrace_args
+
install_args
,
out
=
out
,
err
=
out
)
if
args
.
capture_output
:
print
out
.
data
t
.
running
=
False
t
.
join
()
shutil
.
rmtree
(
install_tmp
,
ignore_errors
=
True
)
return
rc
...
...
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