-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI workflow for feedsim installation (#77)
Summary: Pull Request resolved: #77 Reviewed By: excelle08 Differential Revision: D69635382 Pulled By: q10 fbshipit-source-id: deeb110533c42f43ff1ff635cfc6dc9c5fa20077
- Loading branch information
1 parent
6d63822
commit 4dc3b5e
Showing
7 changed files
with
194 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.