Skip to content

Commit

Permalink
[GR-19134] [GR-19374] Fix small CI issues.
Browse files Browse the repository at this point in the history
PullRequest: graal/4839
  • Loading branch information
olpaw committed Nov 8, 2019
2 parents 99be154 + b33d6d7 commit 8f8db93
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions substratevm/ci_includes/gate.hocon
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ builds += [
}
${labsjdk-ee-11} ${svm-common-linux-gate} ${linux-deploy} {
name: "gate-svm-build-ee-11"
environment : {
MAVEN_REPO_LOCAL : "$BUILD_DIR/.m2"
}
run: [
${svm-cmd-gate} ["build,helloworld,test,relocations,maven"]
]
}
${oraclejdk8} ${svm-common-linux-gate} ${eclipse} ${jdt} ${linux-deploy} {
name: "gate-svm-style-fullbuild"
environment : {
MAVEN_REPO_LOCAL : "$BUILD_DIR/.m2"
}
run: [
${svm-cmd-gate} ["style,fullbuild,helloworld,test,svmjunit,maven"]
]
Expand All @@ -48,6 +54,7 @@ builds += [
name: "gate-svm-windows-basics"
environment: {
PATH : "$MVN_HOME;$PATH" # workaround until GR-10735 is resolved
MAVEN_REPO_LOCAL : "$BUILD_DIR\.m2"
}
run: [
${svm-cmd-gate} ["build,helloworld,svmjunit,maven"]
Expand Down
10 changes: 6 additions & 4 deletions substratevm/mx.substratevm/mx_substratevm.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from __future__ import print_function

import os
import time
import re
import tempfile
from contextlib import contextmanager
Expand Down Expand Up @@ -415,7 +416,11 @@ def native_image_func(args, **kwargs):
yield native_image_func
finally:
if exists(native_image_cmd) and has_server:
def timestr():
return time.strftime('%d %b %Y %H:%M:%S') + ' - '
mx.log(timestr() + 'Shutting down image build servers for ' + native_image_cmd)
_native_image(['--server-shutdown'])
mx.log(timestr() + 'Shutting down completed')

native_image_context.hosted_assertions = ['-J-ea', '-J-esa']
_native_unittest_features = '--features=com.oracle.svm.test.ImageInfoTest$TestFeature,com.oracle.svm.test.ServiceLoaderTest$TestFeature'
Expand Down Expand Up @@ -1277,10 +1282,7 @@ def maven_plugin_test(args):
# Build native image with native-image-maven-plugin
env = os.environ.copy()
maven_opts = env.get('MAVEN_OPTS', '').split()
if svm_java8():
# Workaround Java 8 issue https://bugs.openjdk.java.net/browse/JDK-8145260
maven_opts.append('-Dsun.zip.disableMemoryMapping=true')
else:
if not svm_java8():
# On Java 9+ without native-image executable the plugin needs access to jdk.internal.module
maven_opts.append('-XX:+UnlockExperimentalVMOptions')
maven_opts.append('-XX:+EnableJVMCI')
Expand Down

0 comments on commit 8f8db93

Please sign in to comment.