Skip to content

Fix feedsim install script idempotency and version mismatches#512

Open
YifanYuan3 wants to merge 1 commit intofacebookresearch:v2-betafrom
YifanYuan3:export-D95510167-to-v2-beta
Open

Fix feedsim install script idempotency and version mismatches#512
YifanYuan3 wants to merge 1 commit intofacebookresearch:v2-betafrom
YifanYuan3:export-D95510167-to-v2-beta

Conversation

@YifanYuan3
Copy link
Contributor

Summary:
Fixes issues that cause feedsim install scripts to fail on re-runs and waste time reinstalling dependencies that are already present.

This diff:

  • Fix libevent version mismatch: 3 scripts check for libevent-2.1.11-stable but download 2.1.12, causing unnecessary reinstallation every run. Update checks to match downloaded version.
  • Add idempotency guards around fast_float clone (fails on re-run if directory exists).
  • Add idempotency guards around submodule clone loop (match aarch64 script pattern).
  • Remove dead aarch64 LibTorch URL branches from x86-only scripts (unreachable code).
  • Remove commented-out trap handlers and dead cleanup() functions.
  • Fix BP_CC/BP_CXX to use ${BP_CC:-gcc} instead of hardcoded override (respect env vars).

Differential Revision: D95510167

Summary:
Fixes issues that cause feedsim install scripts to fail on re-runs and waste time reinstalling dependencies that are already present.

This diff:
- Fix libevent version mismatch: 3 scripts check for `libevent-2.1.11-stable` but download `2.1.12`, causing unnecessary reinstallation every run. Update checks to match downloaded version.
- Add idempotency guards around fast_float clone (fails on re-run if directory exists).
- Add idempotency guards around submodule clone loop (match aarch64 script pattern).
- Remove dead aarch64 LibTorch URL branches from x86-only scripts (unreachable code).
- Remove commented-out trap handlers and dead cleanup() functions.
- Fix BP_CC/BP_CXX to use `${BP_CC:-gcc}` instead of hardcoded override (respect env vars).

Differential Revision: D95510167
@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 Mar 10, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 10, 2026

@YifanYuan3 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95510167.

meta-codesync bot pushed a commit that referenced this pull request Mar 10, 2026
Summary:
Pull Request resolved: #512

Fixes issues that cause feedsim install scripts to fail on re-runs and waste time reinstalling dependencies that are already present.

This diff:
- Fix libevent version mismatch: 3 scripts check for `libevent-2.1.11-stable` but download `2.1.12`, causing unnecessary reinstallation every run. Update checks to match downloaded version.
- Add idempotency guards around fast_float clone (fails on re-run if directory exists).
- Add idempotency guards around submodule clone loop (match aarch64 script pattern).
- Remove dead aarch64 LibTorch URL branches from x86-only scripts (unreachable code).
- Remove commented-out trap handlers and dead cleanup() functions.
- Fix BP_CC/BP_CXX to use `${BP_CC:-gcc}` instead of hardcoded override (respect env vars).

Reviewed By: excelle08

Differential Revision: D95510167

fbshipit-source-id: 66941434890c975b70b39660d2a7d24fe72a0dfa
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. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant