Skip to content

Commit 76fdcf4

Browse files
committed
need at least 12g ram from native image builds in gradle and maven plugin tests
1 parent 62fe613 commit 76fdcf4

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

graalpython/com.oracle.graal.python.test/src/tests/standalone/test_gradle_plugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ def generate_app(self, target_dir):
107107
assert gradle_java_home, "in order to run standalone gradle tests, the 'GRADLE_JAVA_HOME' env var has to be set to a jdk <= 22"
108108
util.replace_in_file(os.path.join(target_dir, "gradle.properties"), "{GRADLE_JAVA_HOME}", gradle_java_home.replace("\\", "\\\\"))
109109

110+
meta_inf_native_image_dir = os.path.join(target_dir, "src", "main", "resources", "META-INF", "native-image")
111+
os.makedirs(meta_inf_native_image_dir, exist_ok=True)
112+
shutil.copy(os.path.join(os.path.dirname(__file__), "native-image.properties"), os.path.join(meta_inf_native_image_dir, "native-image.properties"))
113+
110114
def check_filelist(self, target_dir, log):
111115
fl_path = os.path.join(target_dir, "build", "resources", "main", util.VFS_PREFIX, "fileslist.txt")
112116
with open(fl_path) as f:

graalpython/com.oracle.graal.python.test/src/tests/standalone/test_maven_plugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def generate_app(self, tmpdir, target_dir, target_name, pom_template=None):
7474
shutil.copytree(os.path.join(mvnw_dir, ".mvn"), os.path.join(target_dir, ".mvn"))
7575
util.override_maven_properties_file(target_dir)
7676

77+
meta_inf_native_image_dir = os.path.join(target_dir, "src", "main", "resources", "META-INF", "native-image")
78+
os.makedirs(meta_inf_native_image_dir, exist_ok=True)
79+
shutil.copy(os.path.join(os.path.dirname(__file__), "native-image.properties"), os.path.join(meta_inf_native_image_dir, "native-image.properties"))
80+
7781
@unittest.skipUnless(util.is_maven_plugin_test_enabled, "ENABLE_MAVEN_PLUGIN_UNITTESTS is not true")
7882
def test_generated_app(self):
7983
with util.TemporaryTestDirectory() as tmpdir:

0 commit comments

Comments
 (0)