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

[BUG] testCreateEmptyDirNoPermissions when running gradle check in docker container #3674

Closed
peterzhuamazon opened this issue Jun 23, 2022 · 2 comments · Fixed by #3792
Closed
Assignees
Labels
bug Something isn't working Build Libraries & Interfaces good first issue Good for newcomers

Comments

@peterzhuamazon
Copy link
Member

Just grab a centos7 docker container like this one:
https://hub.docker.com/r/opensearchstaging/ci-runner/tags?page=1&ordering=last_updated&name=ci-runner-centos7-gradle-check-v1

Export these envvar:
JAVA11_HOME="/opt/java/openjdk-11
JAVA17_HOME="/opt/java/openjdk-17"
JAVA8_HOME="/opt/java/openjdk-8"
JAVA_HOME="/opt/java/openjdk-17"

Check out main or 2.0 branch, run ./gradlew check --no-daemon --no-scan.

The error log is like this:

> Task :build-tools:test FAILED

org.opensearch.gradle.EmptyDirTaskTests > testCreateEmptyDirNoPermissions FAILED
    java.lang.AssertionError at EmptyDirTaskTests.java:81

org.opensearch.gradle.EmptyDirTaskTests > testCreateEmptyDirNoPermissions FAILED
    java.lang.AssertionError at EmptyDirTaskTests.java:81

org.opensearch.gradle.EmptyDirTaskTests > testCreateEmptyDirNoPermissions FAILED
    java.lang.AssertionError at EmptyDirTaskTests.java:81

Related to this:
https://github.com/opensearch-project/OpenSearch/blob/main/buildSrc/src/test/java/org/opensearch/gradle/EmptyDirTaskTests.java#L90-L92

Thanks.

@peterzhuamazon peterzhuamazon added bug Something isn't working untriaged labels Jun 23, 2022
@owaiskazi19
Copy link
Member

owaiskazi19 commented Jun 23, 2022

Looks like we can restrict this test for docker. Just like did here for Windows. @reta since you have worked on something similar for docker here. WDYT?

@peterzhuamazon
Copy link
Member Author

We unblock this temporarily by not using container, but ec2 instance directly to run gradle check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Build Libraries & Interfaces good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants