Skip to content

verify_release: Build from git sources only - #1947

Merged
jku merged 1 commit into
theupdateframework:developfrom
jku:verify-release-build-isolation
Apr 11, 2022
Merged

verify_release: Build from git sources only#1947
jku merged 1 commit into
theupdateframework:developfrom
jku:verify-release-build-isolation

Conversation

@jku

@jkujku commented Apr 8, 2022

Copy link
Copy Markdown
Member

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

Signed-off-by: Jussi Kukkonen jkukkonen@vmware.com


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 lukpuehApril 8, 2022 07:43
@coveralls

coveralls commented Apr 8, 2022

Copy link
Copy Markdown

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%

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

💛 - Coveralls

Comment threadverify_release Outdated
@jku
jkuforce-pushed the verify-release-build-isolation branch from 88a7fa9 to 692fa2bCompareApril 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 <jkukkonen@vmware.com>
@jku
jkuforce-pushed the verify-release-build-isolation branch from 692fa2b to 62580abCompareApril 8, 2022 13:54
@jku

jku commented Apr 8, 2022

Copy link
Copy Markdown
MemberAuthor

Addressed own review comment in the force-pushes

@lukpuehlukpueh left a comment

Copy link
Copy Markdown
Member

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:developApr 11, 2022
@jku
jku deleted the verify-release-build-isolation branch December 30, 2024 09:12
Sign up for freeto 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

@jku@coveralls@lukpueh