Skip to content

Commit

Permalink
Add CI workflow for feedsim installation (#77)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: #77

Reviewed By: excelle08

Differential Revision: D69635382

Pulled By: q10

fbshipit-source-id: deeb110533c42f43ff1ff635cfc6dc9c5fa20077
  • Loading branch information
q10 authored and facebook-github-bot committed Feb 15, 2025
1 parent 6d63822 commit 4dc3b5e
Show file tree
Hide file tree
Showing 7 changed files with 194 additions and 379 deletions.
39 changes: 39 additions & 0 deletions .github/scripts/dcperf_install_feedsim.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.


# shellcheck disable=SC1091,SC2128
. "$( dirname -- "$BASH_SOURCE"; )/utils_base.bash"


################################################################################
# Install FeedSim
################################################################################

install_feedsim () {
local env_name="$1"
if [ "$env_name" == "" ]; then
echo "Usage: ${FUNCNAME[0]} ENV_NAME"
echo "Example(s):"
echo " ${FUNCNAME[0]} build_env"
return 1
else
echo "################################################################################"
echo "# Install FeedSim"
echo "#"
echo "# [$(date --utc +%FT%T.%3NZ)] + ${FUNCNAME[0]} ${*}"
echo "################################################################################"
echo ""
fi

# shellcheck disable=SC2155
local env_prefix=$(env_name_or_prefix "${env_name}")

echo "[INSTALL] Installing FeedSim ..."
(print_exec conda run --no-capture-output ${env_prefix} \
python ./benchpress_cli.py install feedsim_autoscale) || return 1
}
2 changes: 2 additions & 0 deletions .github/scripts/setup_env.bash
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,5 @@
. "$( dirname -- "$BASH_SOURCE"; )/utils_conda.bash"
# shellcheck disable=SC1091,SC2128
. "$( dirname -- "$BASH_SOURCE"; )/dcperf_install_django.bash"
# shellcheck disable=SC1091,SC2128
. "$( dirname -- "$BASH_SOURCE"; )/dcperf_install_feedsim.bash"
Loading

0 comments on commit 4dc3b5e

Please sign in to comment.