Repository navigation
fix(release): refuse build output in the source archive - #65
Merged
Merged
Conversation
#64 excluded convt-source/target from the tarball. Pack now inspects members and fails if Cargo or __pycache__ output is still present, and CI runs that member-list check in under a second. Co-authored-by: Leo <leoisadev1@users.noreply.github.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Linux dry run 37607929480 on
9aa85ffcompared two independent builds: AppImage,.deb,.rpm, linux tar.gz andsource-audit.jsonwere byte-identical. The source tarball was not.compare.pynamed 2943 differing members, every one underconvt-source/target/(target/.rustc_info.json,target/release/.fingerprint/aho-corasick-…,cc,const-oid). Manifests failed only because they record that tarball hash.source.py archive()packs the frozen tree afterlinux-source-scope.pyrunscargo build --releasein that tree (and aftercargo tree/ license-map). Those commands write a hosttarget/next to the sources. The tarball exclude list covered__pycache__and.cachebut nottarget/, so Cargo output shipped as corresponding source and naturally differed between builds.#64 already excludes
<tree>/target. This PR keeps that exclude, then inspects the packed member list and fails immediately if any Cargo or__pycache__output is still present. A source archive should never containtarget/regardless of how it got there.Fixes CNV-44
Evidence
convt-source/target/.rustc_info.json,.fingerprint/aho-corasick-…) are classified as build output;src/target.rsis not.target/and__pycache__drops both and keeps sources.target/contents are byte-identical.target/raisessource archive contains build output (N members): ….Do not cancel Release 37565192300. Eng Convt squash-merges when CI is green and redispatches Build release linux.
Merge Danger
Door: two-way.
Blast radius: Linux source-archive packing (fail-fast if build output leaks). New CI job runs existing
scripts/releaseunit tests plus the member-list guard. Does not change Windows release or published v0.2.0 assets.