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

[YUNIKORN-2874] Fix reproducible builds when a release is generated #914

Closed
wants to merge 3 commits into from

Conversation

craigcondit
Copy link
Contributor

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?

  • - Bug Fix
  • - Improvement
  • - Feature
  • - Documentation
  • - Hot Fix
  • - Refactoring

Todos

  • - Task

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:

  • - The licenses files need update.
  • - There is breaking changes for older versions.
  • - It needs documentation.

Ensure that the parent directory (containing the core and SI) is mounted
into the Docker build when generating reproducible builds in release
mode.
Copy link

codecov bot commented Sep 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.20%. Comparing base (c959d23) to head (7ce468f).
Report is 1 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@pbacsko pbacsko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment

Makefile Outdated Show resolved Hide resolved
@craigcondit craigcondit requested a review from pbacsko September 16, 2024 18:45
Copy link
Contributor

@manirajv06 manirajv06 left a 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?

Makefile Outdated Show resolved Hide resolved
@craigcondit
Copy link
Contributor Author

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.

Copy link
Contributor

@pbacsko pbacsko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@craigcondit craigcondit deleted the YUNIKORN-2874 branch September 17, 2024 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants