GoogleCloudPlatform / appengine-plugins

A client Java library to manage App Engine Java applications for any project that performs App Engine Java application management. For example, the Maven, Gradle and Eclipse App Engine plugins, custom user tools, etc.
Apache License 2.0
36 stars 25 forks source link

FilePermissionTest fails on release_build.sh #925

Closed lqiu96 closed 1 year ago

lqiu96 commented 1 year ago

Logs:

[ERROR] Tests run: 8, Failures: 1, Errors: 0, Skipped: 1, Time elapsed: 0.009 s <<< FAILURE! - in com.google.cloud.tools.io.FilePermissionsTest
[ERROR] testDirectoryCannotBeCreatedDueToUnwritableParent(com.google.cloud.tools.io.FilePermissionsTest)  Time elapsed: 0.006 s  <<< FAILURE!
java.lang.AssertionError: Can create directory in non-writable parent
    at com.google.cloud.tools.io.FilePermissionsTest.testDirectoryCannotBeCreatedDueToUnwritableParent(FilePermissionsTest.java:102)

It fails on the release_build.sh script, but passes in the CIs. Not sure why...

lqiu96 commented 1 year ago

I see there is code inside the CI script about not running the PermissionsTest: https://github.com/GoogleCloudPlatform/appengine-plugins-core/blob/2d173bcdf7130e3b98764f99f6997f5c82a3305b/kokoro/continuous.sh#L17-L24

Might need to copy that cover for the release script.