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
8b105be1
Commit
8b105be1
authored
7 years ago
by
Florian Angerer
Browse files
Options
Downloads
Plain Diff
[GR-2798] Ignore API version param for package cache.
PullRequest: fastr/1384
parents
e347aae7
76532d81
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
mx.fastr/mx_fastr_pkgs.py
+21
-1
21 additions, 1 deletion
mx.fastr/mx_fastr_pkgs.py
with
21 additions
and
1 deletion
mx.fastr/mx_fastr_pkgs.py
+
21
−
1
View file @
8b105be1
...
...
@@ -168,6 +168,7 @@ _pta_main_class = 'com.oracle.truffle.r.test.packages.analyzer.PTAMain'
def
_pta_project
():
return
'
com.oracle.truffle.r.test.packages.analyzer
'
def
pta
(
args
,
**
kwargs
):
'''
Run analysis for package installation/testing results.
...
...
@@ -176,10 +177,25 @@ def pta(args, **kwargs):
vmArgs
+=
[
_pta_main_class
]
mx
.
run_java
(
vmArgs
+
args
)
def
pkgtest
(
args
):
'''
Package installation/testing.
rc: 0 for success; 1: install fail, 2: test fail, 3: install&test fail
Options:
--quiet Reduce output during testing.
--cache-pkgs dir=DIR Use package cache in directory DIR (will be created if not existing).
Optional parameters:
size=N Maximum number of different API versions in the cache.
--no-install Do not install any packages (can only test installed packages).
--list-versions List packages to be installed/tested without installing/testing them.
--pkg-pattern PATTERN A regular expression to match packages.
Return codes:
0: success
1: install fail
2: test fail
3: install & test fail
'''
test_installed
=
'
--no-install
'
in
args
...
...
@@ -303,6 +319,7 @@ def pkgtest(args):
shutil
.
rmtree
(
fastr_install_tmp
,
ignore_errors
=
True
)
return
rc
def
_set_pkg_cache_api_version
(
arg_list
,
include_dir
):
'''
Looks for argument
'
--cache-pkgs
'
and appends the native API version to the value list of this argument.
...
...
@@ -310,8 +327,11 @@ def _set_pkg_cache_api_version(arg_list, include_dir):
if
"
--cache-pkgs
"
in
arg_list
:
pkg_cache_values_idx
=
arg_list
.
index
(
"
--cache-pkgs
"
)
+
1
if
pkg_cache_values_idx
<
len
(
arg_list
):
if
'
version=
'
in
arg_list
[
pkg_cache_values_idx
]:
mx
.
log
(
"
Ignoring specified API version and using automatically computed one.
"
)
arg_list
[
pkg_cache_values_idx
]
=
arg_list
[
pkg_cache_values_idx
]
+
"
,version={0}
"
.
format
(
computeApiChecksum
(
include_dir
))
class
TestFileStatus
:
'''
Records the status of a test file. status is either
"
OK
"
or
"
FAILED
"
.
...
...
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