-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Don't run EmptyDirTaskTests in a Docker container #3792
Conversation
Signed-off-by: Daniel Widdis <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Signed-off-by: Daniel Widdis <[email protected]>
Gradle Check (Jenkins) Run Completed with:
|
@dbwiddis Precommit failed
|
Signed-off-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis <[email protected]>
The perils of editing on my home machine where I hadn't suppressed save actions and it went crazy. All fixed now. |
Gradle Check (Jenkins) Run Completed with:
|
Gradle Check (Jenkins) Run Completed with:
|
Codecov Report
@@ Coverage Diff @@
## main #3792 +/- ##
=======================================
Coverage ? 70.57%
Complexity ? 56709
=======================================
Files ? 4557
Lines ? 272681
Branches ? 40038
=======================================
Hits ? 192456
Misses ? 63971
Partials ? 16254 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the changes
Hi @reta, let me know if I need to make any changes here! |
LGTM, I don't know better way to detect if JVM is running in Docker or not ... |
* Don't run EmptyDirTaskTests in a Docker container Signed-off-by: Daniel Widdis <[email protected]> * Catch possible exceptions Signed-off-by: Daniel Widdis <[email protected]> * Fix newlines with spotless Signed-off-by: Daniel Widdis <[email protected]> * Add comments explaining test incompatibilities Signed-off-by: Daniel Widdis <[email protected]> * IDE incorrectly removed needed imports Signed-off-by: Daniel Widdis <[email protected]> * Manual edit missed a duplicate Signed-off-by: Daniel Widdis <[email protected]> (cherry picked from commit c526b0c)
* Don't run EmptyDirTaskTests in a Docker container Signed-off-by: Daniel Widdis <[email protected]> * Catch possible exceptions Signed-off-by: Daniel Widdis <[email protected]> * Fix newlines with spotless Signed-off-by: Daniel Widdis <[email protected]> * Add comments explaining test incompatibilities Signed-off-by: Daniel Widdis <[email protected]> * IDE incorrectly removed needed imports Signed-off-by: Daniel Widdis <[email protected]> * Manual edit missed a duplicate Signed-off-by: Daniel Widdis <[email protected]> (cherry picked from commit c526b0c) Co-authored-by: Daniel Widdis <[email protected]>
Signed-off-by: Daniel Widdis [email protected]
Description
Docker doesn't provide the permissions to test EmptyDirTask. Similar to the Windows OS, the test should not run if it detects that environment.
The primary/reliable/consistent test of whether in a Docker container is the presence of a
.dockerenv
file in the root directory. There was mention in 2016 that this could in theory be removed in the future but it's still present 6 years later and other proposed alternatives are not consistently valid in 2022. I added two potential backup tests.Issues Resolved
Fixes #3674
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.