You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2021/06/27 15:06:45 UTC

[Bug 65400] New: Exception in building JMeter (buildSrc:autostyleKotlinGradleCheck)

https://bz.apache.org/bugzilla/show_bug.cgi?id=65400

            Bug ID: 65400
           Summary: Exception in building JMeter
                    (buildSrc:autostyleKotlinGradleCheck)
           Product: JMeter
           Version: 5.4.1
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: kumardharm2007@gmail.com
  Target Milestone: JMETER_5.5

Created attachment 37911
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37911&action=edit
Build fail full log

Getting Build Failed with exception while building using `./gradlew build`

> Task :buildSrc:batchtest:autostyleKotlinCheck FAILEDdetachedConfiguration8
> Task :buildSrc:autostyleKotlinGradleCheck FAILED
<-------------> 5% CONFIGURING [4m 9s]
<-------------> 5% CONFIGURING [4m 12s]
<-------------> 5% CONFIGURING [4m 15s]st:compileKotlin
<-------------> 5% CONFIGURING [4m 18s]
<-------------> 5% CONFIGURING [4m 21s]
checksum-dependency elapsed time: 69989ms, configurations processed: 14
    SHA-512 computation time: 3ms (goes in parallel, it might exceed wall-clock
time), files processed: 1, processed: 0MiB, skipped: 265MiB
    PGP signature resolution time: 40623ms (wall-clock), resolution requests:
9, signatures resolved: 70
    PGP key resolution time: 6163ms (wall-clock), resolution requests: 9,
download time: 22708ms (goes in parallel, it might exceed wall-clock time),
keys downloaded: 20
        PGP signature verification time: 5430ms (goes in parallel, it might
exceed wall-clock time), files processed: 91, processed: 167MiB, skipped: 98MiB
<-------------> 5% CONFIGURING [4m 23s]
> I
FAILURE: Build completed with 2 failures.



1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':buildSrc:batchtest:autostyleKotlinCheck'.
> The following files have format violations:
   
subprojects\batchtest\src\main\kotlin\org\apache\jmeter\buildtools\batchtest\BatchTest.kt
      @@ -1,213 +1,213 @@
      -/*\n
      - * Licensed to the Apache Software Foundation (ASF) under one or more\n
      - * contributor license agreements.  See the NOTICE file distributed
with\n
      - * this work for additional information regarding copyright ownership.\n
      - * The ASF licenses this file to You under the Apache License, Version
2.0\n
      - * (the "License"); you may not use this file except in compliance
with\n
      - * the License.  You may obtain a copy of the License at\n
      - *\n
      - *   http://www.apache.org/licenses/LICENSE-2.0\n
      - *\n
      - * Unless required by applicable law or agreed to in writing, software\n
      - * distributed under the License is distributed on an "AS IS" BASIS,\n
      - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.\n
      - * See the License for the specific language governing permissions and\n
      - * limitations under the License.\n
      - *\n
      - */\n
      -\n
      -package org.apache.jmeter.buildtools.batchtest\n
      -\n
      -import org.eclipse.jgit.diff.DiffAlgorithm\n
      -import org.eclipse.jgit.diff.DiffFormatter\n
      -import org.eclipse.jgit.diff.RawText\n
      -import org.eclipse.jgit.diff.RawTextComparator\n
      -import org.eclipse.jgit.util.io.AutoCRLFInputStream\n
      -import org.gradle.api.GradleException\n
      -import org.gradle.api.model.ObjectFactory\n
      -import org.gradle.api.tasks.Input\n
      -import org.gradle.api.tasks.InputDirectory\n
      -import org.gradle.api.tasks.InputFile\n
      -import org.gradle.api.tasks.InputFiles\n
      -import org.gradle.api.tasks.Internal\n
      -import org.gradle.api.tasks.JavaExec\n
      -import org.gradle.kotlin.dsl.property\n
      -import java.io.File\n
      -import java.net.InetAddress\n
      -import javax.inject.Inject\n
      -\n
      -open class BatchTest @Inject constructor(objects: ObjectFactory) :
JavaExec() {\n
      -    companion object {\n
      -        const val BATCH_TESTS_GROUP_NAME = "Batch test"\n
      -    }\n
      -\n
      -    @Input\n
      -    val ignoreErrorLogs =
objects.property<Boolean>().convention(false)\n
      -\n
      -    @Input\n
      -    val testName = objects.property<String>()\n
    ... (378 more lines that didn't fit)
  Violations also present in:
   
subprojects\batchtest\src\main\kotlin\org\apache\jmeter\buildtools\batchtest\BatchtestPlugin.kt
   
subprojects\batchtest\src\main\kotlin\org\apache\jmeter\buildtools\batchtest\BatchTestServer.kt
   
subprojects\batchtest\src\main\kotlin\org\apache\jmeter\buildtools\batchtest\WriterExtensions.kt
  You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10
-PminLinesPerFile=4 to see more violations
  Run './gradlew autostyleApply' to fix the violations.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':buildSrc:autostyleKotlinGradleCheck'.
> The following files have format violations:
    build.gradle.kts
      @@ -1,77 +1,77 @@
      -/*\n
      - * Licensed to the Apache Software Foundation (ASF) under one or more\n
      - * contributor license agreements.  See the NOTICE file distributed
with\n
      - * this work for additional information regarding copyright ownership.\n
      - * The ASF licenses this file to You under the Apache License, Version
2.0\n
      - * (the "License"); you may not use this file except in compliance
with\n
      - * the License.  You may obtain a copy of the License at\n
      - *\n
      - *   http://www.apache.org/licenses/LICENSE-2.0\n
      - *\n
      - * Unless required by applicable law or agreed to in writing, software\n
      - * distributed under the License is distributed on an "AS IS" BASIS,\n
      - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.\n
      - * See the License for the specific language governing permissions and\n
      - * limitations under the License.\n
      - *\n
      - */\n
      -\n
      -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile\n
      -\n
      -plugins {\n
      -    java\n
      -    `kotlin-dsl` apply false\n
      -    id("com.github.autostyle")\n
      -}\n
      -\n
      -repositories {\n
      -    jcenter()\n
      -    gradlePluginPortal()\n
      -}\n
      -\n
      -allprojects {\n
      -    repositories {\n
      -        jcenter()\n
      -        gradlePluginPortal()\n
      -    }\n
      -    applyKotlinProjectConventions()\n
      -}\n
      -\n
      -fun Project.applyKotlinProjectConventions() {\n
      -    apply(plugin = "org.gradle.kotlin.kotlin-dsl")\n
      -\n
      -    plugins.withType<KotlinDslPlugin> {\n
      -        configure<KotlinDslPluginOptions> {\n
      -            experimentalWarning.set(false)\n
      -        }\n
      -    }\n
      -\n
    ... (106 more lines that didn't fit)
  Violations also present in:
    settings.gradle.kts
  You might want to adjust -PmaxCheckMessageLines=50 -PmaxFilesToList=10
-PminLinesPerFile=4 to see more violations
  Run './gradlew autostyleApply' to fix the violations.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.
==============================================================================

* Get more help at https://help.gradle.org

BUILD FAILED in 4m 49s
<-------------> 0% WAITING

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 65400] Exception in building JMeter (buildSrc:autostyleKotlinGradleCheck)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65400

--- Comment #3 from Felix Schumacher <fe...@internetallee.de> ---
Good to know. Thanks for the info

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 65400] Exception in building JMeter (buildSrc:autostyleKotlinGradleCheck)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65400

Felix Schumacher <fe...@internetallee.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 OS|                            |All

--- Comment #1 from Felix Schumacher <fe...@internetallee.de> ---
I think this is probably better handled on the dev mailing list.

I guess, that you started from a bundled src zip/tgz package that has not the
correct line endings for your OS. But I can't say for sure, as there are too
few information in this report.

Please describe in clear small repeatable steps, what you did.

PS. The zip and tar.gz files differ in their handling of line endings. The zip
file has CR/LF endings, while the tar.gz has LF only. (Well, it should have, at
least to my understanding :) )

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 65400] Exception in building JMeter (buildSrc:autostyleKotlinGradleCheck)

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65400

Dharmjeet Kumar <ku...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|---                         |WORKSFORME

--- Comment #2 from Dharmjeet Kumar <ku...@gmail.com> ---
@Felix 

I was trying to build the jmeter source on window machine. After chnaging my
Git Configuration for line handling  i am able to build from source.

$ git config --list | grep autocrlf
core.autocrlf=input
core.autocrlf=true


Steps to reproduce
1. Fork and Clonee repo from jmeter official github
2. Run ./gradlew build -Djava.awt.headless=true


We can close the bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.