Skip to content

fix(oss): update prelude to support OSS folly build with buck2#1196

Open
ben-- wants to merge 12 commits intofacebook:mainfrom
ben--:oss-folly
Open

fix(oss): update prelude to support OSS folly build with buck2#1196
ben-- wants to merge 12 commits intofacebook:mainfrom
ben--:oss-folly

Conversation

@ben--
Copy link
Contributor

@ben-- ben-- commented Jan 7, 2026

This PR updates several parts of the prelude so that buck2 properly supports an OSS folly build.

The resulting version of buck2 is demonstrated working in folly #2542 which is a non-landable version of folly #2541 that shows the working builds.

@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 Jan 7, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Jan 7, 2026

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this in D90281806. (Because this pull request was imported automatically, there will not be any future comments.)

@ben--
Copy link
Contributor Author

ben-- commented Jan 12, 2026

Not sure if the internal build has hung or if it is just taking its time. But, if there are issues, I'm happy to work on them if they can be shared here.

Prior to this change, the code was assuming not artifacts directory
existed and a `mkdir` command was failing.  It wouldn't fail on GitHub,
it would only fail if the same container was used twice (as would be
more common on a developer workstation).

This change just recursively removes that directory, so there isn't any
risk of artifacts getting intermingled.
NB: The test failures seem centered around concurrency, suggesting that
    there may be a shared root cause. Perhaps something in docker or
    Apple's x86_64 Rosetta emulation?

This change disables code that can't compile or run reliably in OSS
builds.

"Unreliable" code was determined using the do/build script which
leverages nektos act to run the GitHub workflows locally.

The code was (largely) disabled using `#[cfg(fbcode_build)]` except for
areas where a oss/non-oss switch was required.
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant