Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing while building testng version 7.7.1 using ./gradlew build #3114

Open
shivsrivastava opened this issue Apr 21, 2024 · 3 comments
Open

Comments

@shivsrivastava
Copy link

Package artifact id: testng

source code url: https://github.com/testng-team/testng/tree/7.7.1

Issue Description: Failing while building testng version 7.7.1 using ./gradlew build

JDK Version: 17

Build CMD: ./gradlew build

MVN Version: NA

Gradle version - 8.1.2

Error Log:

2024-04-21T11:51:29.195+0530 [INFO] [org.gradle.api.Project] Closing Git repo: C:\code\Code-Latest\testng7.7.1\code\testng.git
2024-04-21T11:51:29.201+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-04-21T11:51:29.201+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2024-04-21T11:51:29.201+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-04-21T11:51:29.201+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2024-04-21T11:51:29.202+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':testng-core:test'.
2024-04-21T11:51:29.202+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > There were failing tests. See the report at: file:///C:/code/Code-Latest/testng7.7.1/code/testng/testng-core/build/reports/tests/test/index.html
2024-04-21T11:51:29.202+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]

attachement: build log attached (jdk 17)

OS: windows 10

failed_jdk_17.txt

@krmahadevan
Copy link
Member

@shivsrivastava - There are some test failures. I know that there are some flaky tests which I have been fixing in the due course of time.

Can you try again using JDK11 (instead of JDK17)

@shivsrivastava
Copy link
Author

@shivsrivastava - There are some test failures. I know that there are some flaky tests which I have been fixing in the due course of time.

Can you try again using JDK11 (instead of JDK17)

I have tested on jdk-11 too but I am still getting failure with below exception.

2024-04-23T14:06:41.393+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2024-04-23T14:06:41.393+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-04-23T14:06:41.393+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2024-04-23T14:06:41.393+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':testng-core:test'.
2024-04-23T14:06:41.394+0530 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > There were failing tests. See the report at: file:///C:/code/Code-Latest/testng7.7.1/code/testng/testng-core/build/reports/tests/test/index.html
failed_jdk_11.txt

I have attached logs for reference. Please help.

@krmahadevan
Copy link
Member

@shivsrivastava - couple of things.

  • Can you please run the build without debug being enabled? Its a lot of verbose logs.
  • Have you opened file:///C:/code/Code-Latest/testng7.7.1/code/testng/testng-core/build/reports/tests/test/index.html to see what tests are failing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants