This is an automated email from the ASF dual-hosted git repository. chesnay pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push: new f7cc996826f [FLINK-26246][build][tests] Setup JUnit 5 infrastructure for parallel test execution f7cc996826f is described below commit f7cc996826f72f1a9524b5845cb93e5430c1dc59 Author: Chesnay Schepler <ches...@apache.org> AuthorDate: Tue Apr 26 11:52:55 2022 +0200 [FLINK-26246][build][tests] Setup JUnit 5 infrastructure for parallel test execution --- .../junit-platform.properties | 25 ---------------------- .../src/test/resources/junit-platform.properties | 25 ---------------------- pom.xml | 9 ++++++++ 3 files changed, 9 insertions(+), 50 deletions(-) diff --git a/flink-table/flink-sql-parser/src/main/resources/org.apache.flink.sql.parser.utils/junit-platform.properties b/flink-table/flink-sql-parser/src/main/resources/org.apache.flink.sql.parser.utils/junit-platform.properties deleted file mode 100644 index 0b01a273c96..00000000000 --- a/flink-table/flink-sql-parser/src/main/resources/org.apache.flink.sql.parser.utils/junit-platform.properties +++ /dev/null @@ -1,25 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# This configuration makes sure parallel tests are opt-in -# To flag a test class to run parallel, use @Execution(CONCURRENT) -junit.jupiter.execution.parallel.enabled = true -junit.jupiter.execution.parallel.config.strategy = dynamic -junit.jupiter.execution.parallel.mode.default = same_thread -junit.jupiter.execution.parallel.mode.classes.default = same_thread - diff --git a/flink-table/flink-table-planner/src/test/resources/junit-platform.properties b/flink-table/flink-table-planner/src/test/resources/junit-platform.properties deleted file mode 100644 index 0b01a273c96..00000000000 --- a/flink-table/flink-table-planner/src/test/resources/junit-platform.properties +++ /dev/null @@ -1,25 +0,0 @@ -# -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -# This configuration makes sure parallel tests are opt-in -# To flag a test class to run parallel, use @Execution(CONCURRENT) -junit.jupiter.execution.parallel.enabled = true -junit.jupiter.execution.parallel.config.strategy = dynamic -junit.jupiter.execution.parallel.mode.default = same_thread -junit.jupiter.execution.parallel.mode.classes.default = same_thread - diff --git a/pom.xml b/pom.xml index 1245dd5912b..1475f0a4cda 100644 --- a/pom.xml +++ b/pom.xml @@ -1603,6 +1603,15 @@ under the License. <!--suppress MavenModelInspection --> <test.randomization.seed>${test.randomization.seed}</test.randomization.seed> <junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled> + <!-- Enabled the parallel test execution feature. --> + <!-- Tests and test classes can be enabled for concurrent execution using @Execution(ExecutionMode.CONCURRENT). --> + <junit.jupiter.execution.parallel.enabled>true</junit.jupiter.execution.parallel.enabled> + <!-- Tests are by default executed by a single thread; parallel execution is opt-in. --> + <junit.jupiter.execution.parallel.mode.default>same_thread</junit.jupiter.execution.parallel.mode.default> + <!-- Tests suites are by default executed by a single thread; parallel execution is opt-in. --> + <junit.jupiter.execution.parallel.mode.classes.default>same_thread</junit.jupiter.execution.parallel.mode.classes.default> + <!-- automatically adjust parallelism based on available cpu/processor cores--> + <junit.jupiter.execution.parallel.config.strategy>dynamic</junit.jupiter.execution.parallel.config.strategy> </systemPropertyVariables> </configuration> <executions>