build: skip biomed ingest tests 90% of time due to ftp connectivity (#467)

This commit is contained in:
cragwolfe 2023-04-11 11:27:38 -07:00 committed by GitHub
parent 7b44bcd6e0
commit ba4dadaa98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -3,6 +3,13 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR"/.. || exit 1
if [[ "$CI" == "true" ]]; then
if [ "$(( RANDOM % 10))" -lt 1 ] ; then
echo "Skipping ingest 90% of biomed tests to avoid occaisonal ftp issue."
exit 0
fi
fi
if [[ "$(find test_unstructured_ingest/expected-structured-output/biomed-ingest-output-api/ -type f -size +10k | wc -l)" != 2 ]]; then
echo "The test fixtures in test_unstructured_ingest/expected-structured-output/biomed-ingest-output-api/ look suspicious. At least one of the files is too small."
echo "Did you overwrite test fixtures with bad outputs?"

View File

@ -3,6 +3,13 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
cd "$SCRIPT_DIR"/.. || exit 1
if [[ "$CI" == "true" ]]; then
if [ "$(( RANDOM % 10))" -lt 1 ] ; then
echo "Skipping ingest 90% of biomed tests to avoid the occaisonal ftp issue."
exit 0
fi
fi
if [[ "$(find test_unstructured_ingest/expected-structured-output/biomed-ingest-output-path/ -type f -size +10k | wc -l)" != 1 ]]; then
echo "The test fixtures in test_unstructured_ingest/expected-structured-output/biomed-ingest-output-path/ look suspicious. At least one of the files is too small."
echo "Did you overwrite test fixtures with bad outputs?"