-
Notifications
You must be signed in to change notification settings - Fork 964
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into add-dynamic-to-database-for-metadata-2.2
- Loading branch information
Showing
72 changed files
with
3,348 additions
and
1,116 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
3.11.7 | ||
3.11.8 |
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
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
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
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 |
---|---|---|
@@ -1,10 +1,42 @@ | ||
#!/bin/bash | ||
set -ex | ||
set -e | ||
|
||
# Click requires us to ensure we have a well configured environment to run | ||
# our click commands. So we'll set our environment to ensure our locale is | ||
# correct. | ||
export LC_ALL="${ENCODING:-en_US.UTF-8}" | ||
export LANG="${ENCODING:-en_US.UTF-8}" | ||
|
||
COMMAND_ARGS="$@" | ||
|
||
# Test the postgres connection | ||
while [ $# -gt 0 ]; do | ||
case $1 in | ||
"--postgresql-host") POSTGRES_HOST="$2" | ||
esac | ||
shift | ||
done | ||
|
||
# Test the postgres connection | ||
ATTEMPTS=0 | ||
until [ $ATTEMPTS -eq 5 ] || pg_isready -t 10 -h $POSTGRES_HOST; do | ||
>&2 echo "Postgres is unavailable, sleeping" | ||
sleep $(( ATTEMPTS++ )) | ||
done | ||
|
||
if [ $ATTEMPTS -eq 5 ]; then | ||
>&2 echo "Postgres is unavailable, exiting" | ||
exit 1 | ||
fi | ||
|
||
# Print all the following commands | ||
set -x | ||
|
||
# Create any dist directories to silence whitenoise warnings. | ||
mkdir -p warehouse/warehouse/admin/static/dist/ | ||
mkdir -p warehouse/warehouse/static/dist/ | ||
mkdir -p warehouse/admin/static/dist/ | ||
mkdir -p warehouse/static/dist/ | ||
|
||
python -m coverage run -m pytest --strict-markers "$@" | ||
# Actually run our tests. | ||
python -m coverage run -m pytest --strict-markers $COMMAND_ARGS | ||
python -m coverage html --show-contexts | ||
python -m coverage report -m --fail-under 100 |
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
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
gunicorn==21.2.0 | ||
ddtrace==2.5.2 | ||
ddtrace==2.6.3 |
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.