mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-15 04:55:56 +00:00

### Description Exposes the endpoint url as an access kwarg when using the s3 filesystem library via the fsspec abstraction. This allows for any non-aws data providers that support the s3 protocol to be used with the s3 connector (i.e. minio) Closes out https://github.com/Unstructured-IO/unstructured/issues/950 --------- Co-authored-by: ryannikolaidis <1208590+ryannikolaidis@users.noreply.github.com> Co-authored-by: rbiseck3 <rbiseck3@users.noreply.github.com>
74 lines
2.1 KiB
Bash
Executable File
74 lines
2.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
cd "$SCRIPT_DIR"/.. || exit 1
|
|
|
|
# NOTE(crag): sets number of tesseract threads to 1 which may help with more reproducible outputs
|
|
export OMP_THREAD_LIMIT=1
|
|
|
|
scripts=(
|
|
'test-ingest-s3.sh'
|
|
'test-ingest-s3-minio.sh'
|
|
'test-ingest-azure.sh'
|
|
'test-ingest-biomed-api.sh'
|
|
'test-ingest-biomed-path.sh'
|
|
## NOTE(yuming): The following test should be put after any tests with --preserve-downloads option
|
|
'test-ingest-pdf-fast-reprocess.sh'
|
|
'test-ingest-box.sh'
|
|
'test-ingest-discord.sh'
|
|
'test-ingest-dropbox.sh'
|
|
'test-ingest-github.sh'
|
|
'test-ingest-gitlab.sh'
|
|
'test-ingest-google-drive.sh'
|
|
'test-ingest-wikipedia.sh'
|
|
'test-ingest-local.sh'
|
|
'test-ingest-slack.sh'
|
|
'test-ingest-against-api.sh'
|
|
'test-ingest-gcs.sh'
|
|
'test-ingest-onedrive.sh'
|
|
'test-ingest-outlook.sh'
|
|
'test-ingest-elasticsearch.sh'
|
|
'test-ingest-confluence-diff.sh'
|
|
'test-ingest-confluence-large.sh'
|
|
'test-ingest-airtable-diff.sh'
|
|
# NOTE(ryan): This test is disabled because it is triggering too many requests to the API
|
|
# 'test-ingest-airtable-large.sh'
|
|
'test-ingest-local-single-file.sh'
|
|
'test-ingest-local-single-file-with-encoding.sh'
|
|
'test-ingest-local-single-file-with-pdf-infer-table-structure.sh'
|
|
'test-ingest-notion.sh'
|
|
'test-ingest-delta-table.sh'
|
|
'test-ingest-salesforce.sh'
|
|
'test-ingest-jira.sh'
|
|
'test-ingest-sharepoint.sh'
|
|
)
|
|
|
|
CURRENT_SCRIPT="none"
|
|
|
|
function print_last_run() {
|
|
if [ "$CURRENT_SCRIPT" != "none" ]; then
|
|
echo "Last ran script: $CURRENT_SCRIPT"
|
|
fi
|
|
}
|
|
|
|
trap print_last_run EXIT
|
|
|
|
for script in "${scripts[@]}"; do
|
|
CURRENT_SCRIPT=$script
|
|
if [[ "$CURRENT_SCRIPT" == "test-ingest-notion.sh" ]]; then
|
|
echo "--------- RUNNING SCRIPT $script --- IGNORING FAILURES"
|
|
set +e
|
|
echo "Running ./test_unstructured_ingest/$script"
|
|
./test_unstructured_ingest/"$script"
|
|
set -e
|
|
echo "--------- FINISHED SCRIPT $script ---------"
|
|
else
|
|
echo "--------- RUNNING SCRIPT $script ---------"
|
|
echo "Running ./test_unstructured_ingest/$script"
|
|
./test_unstructured_ingest/"$script"
|
|
echo "--------- FINISHED SCRIPT $script ---------"
|
|
fi
|
|
done
|