Skip to content

rust: disable uploading incremental compilation build artifacts - #1474

Closed
davidbarsky wants to merge 1 commit into
facebook:mainfrom
davidbarsky:push-uxzvuqxrkqop
Closed

rust: disable uploading incremental compilation build artifacts#1474
davidbarsky wants to merge 1 commit into
facebook:mainfrom
davidbarsky:push-uxzvuqxrkqop

Conversation

@davidbarsky

Copy link
Copy Markdown
Contributor

I enabled incremental compilation with Rust and noticed that incremental compilation artifacts were being uploading, negating (and worse, regressing!) build times due to cache uploads. I then went down a rabbit hole, which... well, you can see in the comment I wrote.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 25, 2026
@meta-codesync

meta-codesync Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

This pull request has been imported. If you are a Meta employee, you can view this in D117392553. (Because this pull request was imported automatically, there will not be any future comments.)

@8Keep 8Keep left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

meta-codesync Bot pushed a commit to facebook/buck2-prelude that referenced this pull request Aug 25, 2026
Summary:
I enabled incremental compilation with Rust and noticed that incremental compilation artifacts were being uploading, negating (and worse, regressing!) build times due to cache uploads. I then went down a rabbit hole, which... well, you can see in the comment I wrote.

X-link: facebook/buck2#1474

Reviewed By: capickett, 8Keep

Differential Revision: D117392553

fbshipit-source-id: 02e9272a62f1ccbe46f1a17e788f3c0ae12b6ec0
@meta-codesync meta-codesync Bot closed this in d1fc5f2 Aug 25, 2026
@meta-codesync

meta-codesync Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

This pull request has been merged in d1fc5f2.

@meta-codesync meta-codesync Bot added the Merged label Aug 25, 2026
@8Keep

8Keep commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

We don't run into this internally because we don't upload any artifacts from user builds, only trunk builds. We consider user builds unsafe to upload because someone could modify outputs before uploading, we can't trust users. User artifacts are uploaded as part of running them on RE, because other users will only get those artifacts if they have the exact same inputs (inputs is part of the key for the remote action). So, user builds populate caches only through remote actions, and trusted CI machines are the only ones who can upload local only actions.

PR makes sense, just wanted to clarify why we do not hit this internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants