Skip to content

feat: allow expressions for TestElement.enabled property #3003

feat: allow expressions for TestElement.enabled property

feat: allow expressions for TestElement.enabled property #3003

Triggered via pull request July 22, 2025 14:02
Status Failure
Total duration 17m 11s
Artifacts

main.yml

on: pull_request
Matrix Preparation
8s
Matrix Preparation
Error Prone (JDK 17)
5m 14s
Error Prone (JDK 17)
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 1 warning, and 4 notices
17, oracle, windows, UTC, tr_TR
The process 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' failed with exit code 1
21, liberica, windows, Pacific/Chatham, de_DE
Execution failed for task ':src:functions:autostyleKotlinCheck'. > The following files have format violations: src\test\kotlin\org\apache\jmeter\control\EnabledWithVariablesTest.kt @@ -1,61 +1,61 @@ -/*\r\n - * Licensed to the Apache Software Foundation (ASF) under one or more\r\n - * contributor license agreements. See the NOTICE file distributed with\r\n - * this work for additional information regarding copyright ownership.\r\n - * The ASF licenses this file to you under the Apache License, Version 2.0\r\n - * (the "License"); you may not use this file except in compliance with\r\n - * the License. You may obtain a copy of the License at\r\n - *\r\n - * http://www.apache.org/licenses/LICENSE-2.0\r\n - *\r\n - * Unless required by applicable law or agreed to in writing, software\r\n - * distributed under the License is distributed on an "AS IS" BASIS,\r\n - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n - * See the License for the specific language governing permissions and\r\n - * limitations under the License.\r\n - */\r\n -\r\n -package org.apache.jmeter.control\r\n -\r\n -import org.apache.jmeter.junit.JMeterTestCase\r\n -import org.apache.jmeter.sampler.DebugSampler\r\n -import org.apache.jmeter.test.assertions.executePlanAndCollectEvents\r\n -import org.apache.jmeter.threads.ThreadGroup\r\n -import org.apache.jmeter.treebuilder.TreeBuilder\r\n -import org.junit.jupiter.api.Assertions\r\n -import org.junit.jupiter.api.Test\r\n -import kotlin.time.Duration.Companion.seconds\r\n -\r\n -class EnabledWithVariablesTest: JMeterTestCase() {\r\n - fun TreeBuilder.oneThread(loops: Int, body: ThreadGroup.() -> Unit) {\r\n - ThreadGroup::class {\r\n - numThreads = 1\r\n - rampUp = 0\r\n - setSamplerController(\r\n - LoopController().apply {\r\n - this.loops = loops\r\n - }\r\n - )\r\n - body()\r\n - }\r\n - }\r\n -\r\n - @test\r\n - fun `sampler with conditional enable function`() {\r\n - val events = executePlanAndCollectEvents(5.seconds) {\r\n - oneThread(loops = 4) {\r\n - DebugSampler::class {\r\n - name = "Conditionally enabled: \${__jm____idx}"\r\n ... (74 more lines that didn't fit) You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
21, liberica, windows, Pacific/Chatham, de_DE: task ':src:functions:autostyleKotlinCheck'#L0
Execution failed for task ':src:functions:autostyleKotlinCheck': See 'What went wrong' below
21, liberica, windows, Pacific/Chatham, de_DE: src\functions\src\test\kotlin\org\apache\jmeter\control\EnabledWithVariablesTest.kt#L1
Replace 61 lines 1..61 with /* * 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. */ package org.apache.jmeter.control import org.apache.jmeter.junit.JMeterTestCase ...41 more lines
17, liberica, macos, UTC, tr_TR
Execution failed for task ':src:functions:autostyleKotlinCheck'. > The following files have format violations: src/test/kotlin/org/apache/jmeter/control/EnabledWithVariablesTest.kt @@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test import kotlin.time.Duration.Companion.seconds -class·EnabledWithVariablesTest:·JMeterTestCase()·{␊ +class·EnabledWithVariablesTest·:·JMeterTestCase()·{␊ fun TreeBuilder.oneThread(loops: Int, body: ThreadGroup.() -> Unit) { ThreadGroup::class { numThreads = 1 You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
17, liberica, macos, UTC, tr_TR: task ':src:functions:autostyleKotlinCheck'#L0
Execution failed for task ':src:functions:autostyleKotlinCheck': See 'What went wrong' below
17, liberica, macos, UTC, tr_TR: src/functions/src/test/kotlin/org/apache/jmeter/control/EnabledWithVariablesTest.kt#L29
Replace 1 line 29..29 with class EnabledWithVariablesTest : JMeterTestCase() {
21, corretto, same hashcode, macos, Pacific/Chatham, tr_TR, stress JIT
Execution failed for task ':src:functions:autostyleKotlinCheck'. > The following files have format violations: src/test/kotlin/org/apache/jmeter/control/EnabledWithVariablesTest.kt @@ -26,7 +26,7 @@ import org.junit.jupiter.api.Test import kotlin.time.Duration.Companion.seconds -class·EnabledWithVariablesTest:·JMeterTestCase()·{␊ +class·EnabledWithVariablesTest·:·JMeterTestCase()·{␊ fun TreeBuilder.oneThread(loops: Int, body: ThreadGroup.() -> Unit) { ThreadGroup::class { numThreads = 1 You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 to see more violations Run './gradlew autostyleApply' to fix the violations.
21, corretto, same hashcode, macos, Pacific/Chatham, tr_TR, stress JIT: task ':src:functions:autostyleKotlinCheck'#L0
Execution failed for task ':src:functions:autostyleKotlinCheck': See 'What went wrong' below
17, oracle, windows, UTC, tr_TR
Checksum not available for: https://download.oracle.com/java/17/latest/jdk-17_windows-x64_bin.zip
17, liberica, macos, UTC, tr_TR
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
17, liberica, macos, UTC, tr_TR
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
21, corretto, same hashcode, macos, Pacific/Chatham, tr_TR, stress JIT
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520
21, corretto, same hashcode, macos, Pacific/Chatham, tr_TR, stress JIT
The macos-latest label will migrate to macOS 15 beginning August 4, 2025. For more information see https://github.com/actions/runner-images/issues/12520