-
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
[BUG] Investigate/remove use of empty docker-export/build.gradle file #8112
Comments
I've spent a few hours digging into this. Some notes so far:
|
It appears the inability to repro initially was because the gradle daemon does some sort of caching. By running |
Here's where the failing executable is defined. tasks.register(exportTaskName, LoggedExec) {
inputs.file("${parent.projectDir}/build/markers/${buildTaskName}.marker")
executable 'docker'
outputs.file(tarFile)
args "save",
"-o",
tarFile,
"opensearch:test"
dependsOn(parent.path + ":" + buildTaskName)
onlyIf { Architecture.current() == architecture && !OperatingSystem.current().isWindows()}
} |
After testing this many different ways, my conclusions:
It seems the directory's existence is required. The code eventually calls
This doesn't explain why there were initially problems without |
@kartg @dbwiddis Closing this one , we do have an explanation for reasons why we need pre-created folders, see please #11136 (review) |
Describe the bug
This is a follow up to the PR #4723, which aimed to remove all unnecessary empty
build.gradle
files. The original change resulted in a failing Gradle check:I was able to repro this locally:
Reverting the removal of the
distribution/docker/docker-export/build.gradle
allowed Gradle check to succeed, even though the file is empty. The PR was merged, but the root-cause for why this file is is required is still unclear. This issue tracks the investigation work to resolve this and potentially remove this empty file.To Reproduce
Steps to reproduce the behavior:
main
branch and run./gradlew clean
./gradlew :distribution:docker:docker-export:exportDockerImage
and validate that this succeedsrm distribution/docker/docker-export/build.gradle
./gradlew :distribution:docker:docker-export:exportDockerImage
and observe that it now failsExpected behavior
./gradlew :distribution:docker:docker-export:exportDockerImage
should pass even with the empty file removedPlugins
N/A
Screenshots
N/A
Host/Environment (please complete the following information):
My local development environnment is MacOS Monterey 12.6.6
Additional context
N/A
The text was updated successfully, but these errors were encountered: