Skip to content

Commit 8faa685

Browse files
committed
[GR-24501] [GR-231590] Move ICU4J library to truffle and update imports.
PullRequest: graalpython/2050
2 parents b5a1636 + e16919b commit 8faa685

File tree

51 files changed

+458
-523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+458
-523
lines changed

ci.jsonnet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "overlay": "636dfe647a5695b226500dd04f42819723ae1a33" }
1+
{ "overlay": "414fc7a3344c7ec2832a03f4023c3687e50cd274" }

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/engine/SharedEngineMultithreadingBenchmarkTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@
4949

5050
import org.graalvm.polyglot.Engine;
5151
import org.graalvm.polyglot.Source;
52+
import org.junit.Ignore;
5253
import org.junit.Test;
5354

5455
import com.oracle.graal.python.test.PythonTests;
5556

5657
public class SharedEngineMultithreadingBenchmarkTest extends SharedEngineMultithreadingTestBase {
58+
@Ignore
5759
@Test
5860
public void testRichardsInParallelInMultipleContexts() throws Throwable {
5961
try (Engine engine = Engine.newBuilder().build()) {

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/engine/SharedEngineMultithreadingImportsTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@
4646

4747
import org.graalvm.polyglot.Engine;
4848
import org.junit.Assert;
49+
import org.junit.Ignore;
4950
import org.junit.Test;
5051

5152
public class SharedEngineMultithreadingImportsTest extends SharedEngineMultithreadingTestBase {
5253
private static final int RUNS_COUNT = RUNS_COUNT_FACTOR;
5354

55+
@Ignore
5456
@Test
5557
public void testImportsInParallel() throws InterruptedException, ExecutionException {
5658
ExecutorService executorService = createExecutorService();

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/engine/SharedEngineMultithreadingShapeTransitionsTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@
5151
import org.graalvm.polyglot.Source;
5252
import org.graalvm.polyglot.Value;
5353
import org.junit.Assert;
54+
import org.junit.Ignore;
5455
import org.junit.Test;
5556

5657
public class SharedEngineMultithreadingShapeTransitionsTest extends SharedEngineMultithreadingTestBase {
5758
private static final int RUNS_COUNT = RUNS_COUNT_FACTOR;
5859
private static final int PROPERTIES_COUNT = 20;
5960
private static final int SHARED_PREFIX_COUNT = PROPERTIES_COUNT - 10;
6061

62+
@Ignore
6163
@Test
6264
public void testShapeTransitionsInParallel() throws InterruptedException, ExecutionException {
6365
ExecutorService executorService = createExecutorService();

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/engine/SharedEngineMultithreadingSimpleLambdaTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@
4747
import org.graalvm.polyglot.Source;
4848
import org.graalvm.polyglot.Value;
4949
import org.junit.Assert;
50+
import org.junit.Ignore;
5051
import org.junit.Test;
5152

5253
public class SharedEngineMultithreadingSimpleLambdaTest extends SharedEngineMultithreadingTestBase {
5354
private static final int RUNS_COUNT = 2 * RUNS_COUNT_FACTOR;
5455

56+
@Ignore
5557
@Test
5658
public void testLambdaInParallelCtxCreatedInMainThread() throws InterruptedException, ExecutionException {
5759
ExecutorService executorService = createExecutorService();
@@ -83,6 +85,7 @@ public void testLambdaInParallelCtxCreatedInMainThread() throws InterruptedExcep
8385
}
8486
}
8587

88+
@Ignore
8689
@Test
8790
public void testLambdaInParallelCtxCreatedInWorkerThread() throws InterruptedException, ExecutionException {
8891
ExecutorService executorService = createExecutorService();
@@ -109,6 +112,7 @@ public void testLambdaInParallelCtxCreatedInWorkerThread() throws InterruptedExc
109112
}
110113
}
111114

115+
@Ignore
112116
@Test
113117
public void testLambdaInParallelSharedContexts() throws InterruptedException, ExecutionException {
114118
ExecutorService executorService = createExecutorService();

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/parser/BasicTests.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public void assert04() throws Exception {
129129
}
130130

131131
@Test
132+
@SuppressWarnings("deprecation") // new Frame API
132133
public void inline01() throws Exception {
133134
FrameDescriptor fd = new FrameDescriptor(44);
134135
fd.addFrameSlot("a");

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/parser/ParserTreePrinter.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@
8080
import com.oracle.graal.python.parser.GeneratorInfo;
8181
import com.oracle.graal.python.runtime.ExecutionContext;
8282
import com.oracle.truffle.api.frame.FrameDescriptor;
83-
import com.oracle.truffle.api.frame.FrameSlot;
8483
import com.oracle.truffle.api.nodes.Node;
8584
import com.oracle.truffle.api.nodes.NodeVisitor;
8685
import com.oracle.truffle.api.nodes.RootNode;
@@ -483,6 +482,7 @@ private void addSignature(Signature signature) {
483482
level--;
484483
}
485484

485+
@SuppressWarnings("deprecation") // new Frame API
486486
private void addFrameDescriptor(FrameDescriptor fd) {
487487
indent(level);
488488
sb.append("FrameDescriptor: ");
@@ -535,12 +535,13 @@ private void add(String[] array) {
535535
}
536536
}
537537

538-
private void add(FrameSlot[] slots) {
538+
@SuppressWarnings("deprecation") // new Frame API
539+
private void add(com.oracle.truffle.api.frame.FrameSlot[] slots) {
539540
if (slots == null || slots.length == 0) {
540541
sb.append("None");
541542
} else {
542543
boolean first = true;
543-
for (FrameSlot slot : slots) {
544+
for (com.oracle.truffle.api.frame.FrameSlot slot : slots) {
544545
if (!first) {
545546
sb.append(", ");
546547
} else {
@@ -551,7 +552,8 @@ private void add(FrameSlot[] slots) {
551552
}
552553
}
553554

554-
private void add(FrameSlot slot) {
555+
@SuppressWarnings("deprecation") // new Frame API
556+
private void add(com.oracle.truffle.api.frame.FrameSlot slot) {
555557
if (printTmpSlots) {
556558
sb.append(slot.toString());
557559
} else {

graalpython/com.oracle.graal.python.test/src/com/oracle/graal/python/test/parser/SSTSerializationTests.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
import com.oracle.graal.python.runtime.PythonCodeSerializer;
6262
import com.oracle.graal.python.runtime.PythonParser;
6363
import com.oracle.truffle.api.TruffleFile;
64-
import com.oracle.truffle.api.frame.FrameSlot;
6564
import com.oracle.truffle.api.nodes.RootNode;
6665
import com.oracle.truffle.api.source.Source;
6766

@@ -1347,13 +1346,14 @@ private static void printSet(StringBuilder sb, Set<String> set) {
13471346
}
13481347
}
13491348

1350-
private static void printFrameSlots(StringBuilder sb, FrameSlot[] slots) {
1349+
@SuppressWarnings("deprecation") // new Frame API
1350+
private static void printFrameSlots(StringBuilder sb, com.oracle.truffle.api.frame.FrameSlot[] slots) {
13511351
if (slots.length == 0) {
13521352
sb.append("Empty");
13531353
} else {
13541354
sb.append("[");
13551355
boolean first = true;
1356-
for (FrameSlot slot : slots) {
1356+
for (com.oracle.truffle.api.frame.FrameSlot slot : slots) {
13571357
if (first) {
13581358
sb.append(slot.getIdentifier());
13591359
first = false;
@@ -1366,6 +1366,7 @@ private static void printFrameSlots(StringBuilder sb, FrameSlot[] slots) {
13661366

13671367
// here we can not use the ScopeInfo.debugPrint(), because we need exclude the temporary
13681368
// variables.
1369+
@SuppressWarnings("deprecation") // new Frame API
13691370
private static void printScope(ScopeInfo scope, StringBuilder sb, int indent) {
13701371
indent(sb, indent);
13711372
sb.append("Scope: ").append(scope.getScopeId()).append("\n");

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_builtin.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
*graalpython.lib-python.3.test.test_builtin.BuiltinTest.test_vars
5757
*graalpython.lib-python.3.test.test_builtin.BuiltinTest.test_zip
5858
*graalpython.lib-python.3.test.test_builtin.BuiltinTest.test_zip_bad_iterable
59+
*graalpython.lib-python.3.test.test_builtin.BuiltinTest.test_zip_pickle
5960
*graalpython.lib-python.3.test.test_builtin.PtyTests.test_input_no_stdout_fileno
6061
*graalpython.lib-python.3.test.test_builtin.PtyTests.test_input_tty
6162
*graalpython.lib-python.3.test.test_builtin.PtyTests.test_input_tty_non_ascii

graalpython/com.oracle.graal.python.test/src/tests/unittest_tags/test_compileall.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_include_on_stdin
3131
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_invalid_arg_produces_message
3232
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_legacy_paths
33+
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_multiple_dirs
3334
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_multiple_runs
3435
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_no_args_compiles_path
3536
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_no_args_respects_force_flag
@@ -38,6 +39,7 @@
3839
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_pyc_invalidation_mode
3940
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_quiet
4041
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_recursion_control
42+
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_recursion_limit
4143
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_regexp
4244
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_silent
4345
*graalpython.lib-python.3.test.test_compileall.CommmandLineTestsWithSourceEpoch.test_workers_available_cores

0 commit comments

Comments
 (0)