Skip to content

Add self-contained syscall and schbench fbpkg build via buck_genrule#698

Open
ahmadelyoussef wants to merge 2 commits into
facebookresearch:v2-betafrom
ahmadelyoussef:export-D108812394-to-v2-beta
Open

Add self-contained syscall and schbench fbpkg build via buck_genrule#698
ahmadelyoussef wants to merge 2 commits into
facebookresearch:v2-betafrom
ahmadelyoussef:export-D108812394-to-v2-beta

Conversation

@ahmadelyoussef

Copy link
Copy Markdown
Contributor

Summary:
Pre-build syscall and schbench at fbpkg build time so the package runs
without benchpress install.

Syscall: custom genrule build (same two-stage pattern as feedsim/health_check).
Downloads gflags from Manifold, compiles syscall.cpp with static gflags linkage.

Schbench: uses existing //third-party/schbench:schbench cpp_binary target
directly via fbpkg.copy(). No custom build scripts or Manifold deps needed since
the source is already in fbsource.

Key changes:

  • fb_scripts/builder/syscall/: build.sh, download_deps.sh,
    upload_deps_to_manifold.sh for syscall genrule build
  • BUCK: syscall genrules (deps_download, x86 build, arm64 build) +
    schbench via fbpkg.copy from //third-party/schbench:schbench
  • benchmarks_system.yml: added install_markers for prebuild detection

Reviewed By: excelle08

Differential Revision: D108812394

…kresearch#697)

Summary:

Add self-contained HealthCheck fbpkg build via buck_genrule to enable pre-built HealthCheck binaries in the cea.chips.benchpress.oss_prebuild fbpkg. The HealthCheck benchmark will now be pre-built at fbpkg build time for both x86_64 and aarch64 architectures, eliminating the need to run benchpress install on target machines.

Reviewed By: excelle08

Differential Revision: D108812377
Summary:
Pre-build syscall and schbench at fbpkg build time so the package runs
without `benchpress install`.

**Syscall**: custom genrule build (same two-stage pattern as feedsim/health_check).
Downloads gflags from Manifold, compiles syscall.cpp with static gflags linkage.

**Schbench**: uses existing `//third-party/schbench:schbench` cpp_binary target
directly via fbpkg.copy(). No custom build scripts or Manifold deps needed since
the source is already in fbsource.

Key changes:
- `fb_scripts/builder/syscall/`: build.sh, download_deps.sh,
  upload_deps_to_manifold.sh for syscall genrule build
- BUCK: syscall genrules (deps_download, x86 build, arm64 build) +
  schbench via fbpkg.copy from //third-party/schbench:schbench
- `benchmarks_system.yml`: added install_markers for prebuild detection

Reviewed By: excelle08

Differential Revision: D108812394
@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 Jun 29, 2026
@meta-codesync

meta-codesync Bot commented Jun 29, 2026

Copy link
Copy Markdown

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

ahmadelyoussef added a commit to ahmadelyoussef/DCPerf that referenced this pull request Jun 29, 2026
…acebookresearch#698)

Summary:

Pre-build syscall and schbench at fbpkg build time so the package runs
without `benchpress install`.

**Syscall**: custom genrule build (same two-stage pattern as feedsim/health_check).
Downloads gflags from Manifold, compiles syscall.cpp with static gflags linkage.

**Schbench**: uses existing `//third-party/schbench:schbench` cpp_binary target
directly via fbpkg.copy(). No custom build scripts or Manifold deps needed since
the source is already in fbsource.

Key changes:
- `fb_scripts/builder/syscall/`: build.sh, download_deps.sh,
  upload_deps_to_manifold.sh for syscall genrule build
- BUCK: syscall genrules (deps_download, x86 build, arm64 build) +
  schbench via fbpkg.copy from //third-party/schbench:schbench
- `benchmarks_system.yml`: added install_markers for prebuild detection

Reviewed By: excelle08

Differential Revision: D108812394
ahmadelyoussef added a commit to ahmadelyoussef/DCPerf that referenced this pull request Jun 30, 2026
…acebookresearch#698)

Summary:

Pre-build syscall and schbench at fbpkg build time so the package runs
without `benchpress install`.

**Syscall**: custom genrule build (same two-stage pattern as feedsim/health_check).
Downloads gflags from Manifold, compiles syscall.cpp with static gflags linkage.

**Schbench**: uses existing `//third-party/schbench:schbench` cpp_binary target
directly via fbpkg.copy(). No custom build scripts or Manifold deps needed since
the source is already in fbsource.

Key changes:
- `fb_scripts/builder/syscall/`: build.sh, download_deps.sh,
  upload_deps_to_manifold.sh for syscall genrule build
- BUCK: syscall genrules (deps_download, x86 build, arm64 build) +
  schbench via fbpkg.copy from //third-party/schbench:schbench
- `benchmarks_system.yml`: added install_markers for prebuild detection

Reviewed By: excelle08

Differential Revision: D108812394
meta-codesync Bot pushed a commit that referenced this pull request Jul 2, 2026
…698)

Summary:
Pull Request resolved: #698

Pre-build syscall and schbench at fbpkg build time so the package runs
without `benchpress install`.

**Syscall**: custom genrule build (same two-stage pattern as feedsim/health_check).
Downloads gflags from Manifold, compiles syscall.cpp with static gflags linkage.

**Schbench**: uses existing `//third-party/schbench:schbench` cpp_binary target
directly via fbpkg.copy(). No custom build scripts or Manifold deps needed since
the source is already in fbsource.

Key changes:
- `fb_scripts/builder/syscall/`: build.sh, download_deps.sh,
  upload_deps_to_manifold.sh for syscall genrule build
- BUCK: syscall genrules (deps_download, x86 build, arm64 build) +
  schbench via fbpkg.copy from //third-party/schbench:schbench
- `benchmarks_system.yml`: added install_markers for prebuild detection

Reviewed By: excelle08

Differential Revision: D108812394

fbshipit-source-id: 34e327277d441e39599ed19740a8684b9ab890e4
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. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant