-
Notifications
You must be signed in to change notification settings - Fork 134
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
[YUNIKORN-2874] Fix reproducible builds when a release is generated #914
Conversation
Ensure that the parent directory (containing the core and SI) is mounted into the Docker build when generating reproducible builds in release mode.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #914 +/- ##
=======================================
Coverage 68.20% 68.20%
=======================================
Files 70 70
Lines 7621 7621
=======================================
Hits 5198 5198
Misses 2215 2215
Partials 208 208 ☔ View full report in Codecov by Sentry. |
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.
See comment
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.
Is is safer to go one level up from incubator-yunikorn-k8shim directory?
We don't know for sure that a user has the different trees checked out in parallel directories. However, in the tarball build we do -- we check for this by the presence or absence of .gitignore (it won't be present in a tarball build). This way, builds work consistently if only k8shim is checked out, or when using a release tarball. |
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.
+1
What is this PR for?
Ensure that the parent directory (containing the core and SI) is mounted into the Docker build when generating reproducible builds in release mode.
What type of PR is it?
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-2874
How should this be tested?
Verified manually by applying this patch to a release tarball. When .gitignore is not detected, we mount the parent directory into the Docker build environment rather than just the shim dir.
Screenshots (if appropriate)
Questions: