Skip to content

Commit

Permalink
Add working_dir to run hang analyzer evergreen task; add correct …
Browse files Browse the repository at this point in the history
…preconditions
  • Loading branch information
jsflax committed May 30, 2024
1 parent 40f49a7 commit 7772af2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
15 changes: 3 additions & 12 deletions evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -515,15 +515,16 @@ functions:
set -o verbose
TOP_DIR=$(pwd)
HANG_ANALYZER_PATH=$TOP_DIR/evergreen/hang_analyzer
REQUIREMENTS_PATH=$HANG_ANALYZER_PATH/requirements.txt
if [[ ! -d $TOP_DIR || ! -d $REQUIREMENTS_PATH ]]; then
if [[ ! -d $TOP_DIR || ! -f $REQUIREMENTS_PATH ]]; then
echo "No source directory exists. Not running hang analyzer"
exit 1
fi
mkdir realm-core/hang_analyzer_workdir; cd realm-core/hang_analyzer_workdir
mkdir hang_analyzer_workdir; cd hang_analyzer_workdir
${python3|python3} -m venv venv
# venv creates its Scripts/activate file with CLRF endings, which
Expand All @@ -549,16 +550,6 @@ functions:
echo "python set to $(which $python)"
echo "Upgrading pip to 21.0.1"
# ref: https://github.com/grpc/grpc/issues/25082#issuecomment-778392661
if [ "$(uname -m)" = "arm64" ] && [ "$(uname)" == "Darwin" ]; then
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
fi
python -m pip --disable-pip-version-check install "pip==21.0.1" "wheel==0.37.0" || exit 1
if [ "Windows_NT" = "$OS" ]; then
REQUIREMENTS_PATH=$(cygpath -w $REQUIREMENTS_PATH)
fi
Expand Down
1 change: 1 addition & 0 deletions evergreen/hang_analyzer/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pypiwin32==223; sys_platform == "win32" and python_version > "3"
pywin32==301; sys_platform == "win32" and python_version > "3"
distro == 1.5.0
setuptools == 70.0.0

0 comments on commit 7772af2

Please sign in to comment.