Skip to content

Commit

Permalink
Add working_dir to "run hang analyzer" task
Browse files Browse the repository at this point in the history
  • Loading branch information
jsflax committed May 30, 2024
1 parent 4a8f415 commit 4691492
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
18 changes: 5 additions & 13 deletions evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -509,20 +509,22 @@ functions:
- command: shell.exec
params:
shell: bash
working_dir: realm-core
script: |-
set -o errexit
set -o verbose
TOP_DIR=$(pwd)/realm-core
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 @@ -548,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 4691492

Please sign in to comment.