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

verify_release: Build from git sources only #1947

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

jku
Copy link
Member

@jku jku commented Apr 8, 2022

Make a new (local) git clone to ensure uncommitted files do not affect
the build.

Signed-off-by: Jussi Kukkonen [email protected]


Fixes #1942

verify_release has the fate of every build script in history of build scripts: it ends up handling more edge cases than originally planned 😬 We probably should be more strict about only including only very specific files in the source release manifest... but currently extra files in the source tree may end up in the source release. This should not be a problem with #1946 as it builds from a clean git clone, but it may be a problem for verify_release that may be run from a dirty directory.

Avoid issue in verify_release by building from a clean git clone. A local clone like this will have the same checked out ref as the original repo so the build result should be 100% same.

@jku jku requested a review from lukpueh April 8, 2022 07:43
@coveralls
Copy link

coveralls commented Apr 8, 2022

Pull Request Test Coverage Report for Build 2115553619

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.326%

Totals Coverage Status
Change from base Build 2113914346: 0.0%
Covered Lines: 1187
Relevant Lines: 1203

💛 - Coveralls

verify_release Outdated Show resolved Hide resolved
@jku jku force-pushed the verify-release-build-isolation branch from 88a7fa9 to 692fa2b Compare April 8, 2022 13:50
Make a new (local) git clone to build from. This ensures uncommitted
files do not affect the build.

Signed-off-by: Jussi Kukkonen <[email protected]>
@jku jku force-pushed the verify-release-build-isolation branch from 692fa2b to 62580ab Compare April 8, 2022 13:54
@jku
Copy link
Member Author

jku commented Apr 8, 2022

Addressed own review comment in the force-pushes

Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

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

Cool idea to just clone the local repo! 👍

@jku jku merged commit 8a7243f into theupdateframework:develop Apr 11, 2022
@jku jku deleted the verify-release-build-isolation branch December 30, 2024 09:12
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.

verify_release assumes clean source dir
3 participants