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

Build is failing for guava #7519

Closed
2 tasks done
deepeshpatel3434 opened this issue Nov 19, 2024 · 3 comments
Closed
2 tasks done

Build is failing for guava #7519

deepeshpatel3434 opened this issue Nov 19, 2024 · 3 comments
Labels
type=defect Bug, not working as expected

Comments

@deepeshpatel3434
Copy link

Guava Version

Build Failure for guava v33.2.0

Description


I am attempting to build guava v33.2.0 using Maven but encountered issues during the build process. Below are the steps I followed and the errors encountered.

Results :

Failed tests:
testCreateParentDirectories_noPermission(com.google.common.io.MoreFilesTest): expected java.io.IOException to be thrown, but nothing was thrown

Tests run: 857833, Failures: 1, Errors: 0, Skipped: 519

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Guava Maven Parent 33.2.0-jre:
[INFO]
[INFO] Guava Maven Parent ................................. SUCCESS [01:18 min]
[INFO] Guava: Google Core Libraries for Java .............. SUCCESS [05:51 min]
[INFO] Guava BOM .......................................... SUCCESS [ 29.484 s]
[INFO] Guava Testing Library .............................. SUCCESS [02:48 min]
[INFO] Guava Unit Tests ................................... FAILURE [11:07 min]
[INFO] Guava GWT compatible libs .......................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24:44 min
[INFO] Finished at: 2024-11-19T10:03:20Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project guava-tests : There are test failures.
[ERROR]
[ERROR] Please refer to /root/guava/guava-tests/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems,

Please find detailed log in [attachment]([url](logs guava .txt
))

Example

build is failing with below mention info
[INFO] Guava Unit Tests ................................... FAILURE [11:07 min]

Expected Behavior

build is failing with below mention info
[INFO] Guava Unit Tests ................................... FAILURE [11:07 min]

Actual Behavior

Build should succeed.

Packages

No response

Platforms

No response

Checklist

  • I agree to follow the code of conduct.

  • I can reproduce the bug with the latest version of Guava available.

@deepeshpatel3434 deepeshpatel3434 added the type=defect Bug, not working as expected label Nov 19, 2024
@cpovirk
Copy link
Member

cpovirk commented Nov 19, 2024

Are you by chance running the tests as the root user?

#7328

@deepeshpatel3434
Copy link
Author

yes i was using root user for build

@cpovirk
Copy link
Member

cpovirk commented Nov 19, 2024

Ok, thanks.

I'll close this as a duplicate of #7328. If you want to send a PR to skip the test when running as root, you can. But I'd recommend against running tests (or doing much else) as root as the better solution.

@cpovirk cpovirk closed this as completed Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type=defect Bug, not working as expected
Projects
None yet
Development

No branches or pull requests

2 participants