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

[disabled] Remove unused files from the release #21

Merged
merged 1 commit into from Oct 27, 2020

Conversation

pietroalbini
Copy link
Member

Our releases currently include a bunch of "internal" files that are not useful for our downstream users but that happen to be stored in the artifacts bucket, such as CPU graphs, the build-manifest component, and similar. This PR implements purging them before shipping the release, by only retaining the files mentioned in the manifest, the files generated by build-manifest or the files matching a pattern explicitly allowed by promote-release.

This feature only works on rustc branches that include rust-lang/rust#78196, and is currently disabled. To enable it the PROMOTE_RELEASE_WIP_PRUNE_UNUSED_FILES environment variable needs to be set. My current plan is to merge this, run a dev release with this feature enable, compare the result with the prod release, and then either fix the bugs or enable the feature by default (removing the flag).

r? @Mark-Simulacrum

Copy link
Member

@Mark-Simulacrum Mark-Simulacrum left a comment

Choose a reason for hiding this comment

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

r=me, but left a concern

src/main.rs Show resolved Hide resolved
@pietroalbini pietroalbini merged commit 2596d9e into master Oct 27, 2020
@pietroalbini pietroalbini deleted the prune-unused-files branch October 27, 2020 18:10
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.

None yet

2 participants