Skip to content

Fix ai_wdl sub-benchmark consistency and error handling#503

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

Fix ai_wdl sub-benchmark consistency and error handling#503
YifanYuan3 wants to merge 1 commit intofacebookresearch:v2-betafrom
YifanYuan3:export-D95510128-to-v2-beta

Conversation

@YifanYuan3
Copy link
Contributor

Summary:
Fixes error handling and path resolution issues across ai_wdl sub-benchmarks (fbgemm, rebatch, type_conversion, chm, deser).

This diff:

  • Fix || exist typos to || exit 1 in install_fbgemm_bench.sh (4 occurrences). Typo causes silent failure when pushd fails.
  • Fix hardcoded $(pwd)-based paths in rebatch and type_conversion install scripts. Replace with dirname/readlink pattern so scripts work when invoked from any directory.
  • Add || exit 1 to pushd in chm and deser install scripts to fail fast if folly directory doesn't exist.

Differential Revision: D95510128

Summary:
Fixes error handling and path resolution issues across ai_wdl sub-benchmarks (fbgemm, rebatch, type_conversion, chm, deser).

This diff:
- Fix `|| exist` typos to `|| exit 1` in install_fbgemm_bench.sh (4 occurrences). Typo causes silent failure when pushd fails.
- Fix hardcoded $(pwd)-based paths in rebatch and type_conversion install scripts. Replace with dirname/readlink pattern so scripts work when invoked from any directory.
- Add `|| exit 1` to pushd in chm and deser install scripts to fail fast if folly directory doesn't exist.

Differential Revision: D95510128
@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 6, 2026
@meta-codesync
Copy link

meta-codesync bot commented Mar 6, 2026

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

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

Fixes error handling and path resolution issues across ai_wdl sub-benchmarks (fbgemm, rebatch, type_conversion, chm, deser).

This diff:
- Fix `|| exist` typos to `|| exit 1` in install_fbgemm_bench.sh (4 occurrences). Typo causes silent failure when pushd fails.
- Fix hardcoded $(pwd)-based paths in rebatch and type_conversion install scripts. Replace with dirname/readlink pattern so scripts work when invoked from any directory.
- Add `|| exit 1` to pushd in chm and deser install scripts to fail fast if folly directory doesn't exist.

Reviewed By: excelle08

Differential Revision: D95510128

fbshipit-source-id: 9239b6a3992563b951de0fa98a2542b28c7ed532
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