Skip to content

Commit

Permalink
[tooling] Build a lot less (#191)
Browse files Browse the repository at this point in the history
* Build a lot less

* Add build limiting
  • Loading branch information
BenjaminPelletier authored Sep 11, 2023
1 parent d5168af commit 7cdd957
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 9 deletions.
5 changes: 4 additions & 1 deletion monitoring/atproxy/run_locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ else
fi
cd "${BASEDIR}/../.." || exit 1

monitoring/build.sh || exit 1
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
monitoring/build.sh || exit 1
export DO_NOT_BUILD_MONITORING=true
fi

CLIENT_BASIC_AUTH="local_client:local_client"
PUBLIC_KEY="/var/test-certs/auth2.pem"
Expand Down
1 change: 1 addition & 0 deletions monitoring/mock_uss/run_locally_msgsigning.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
"${SCRIPT_DIR}/../build.sh" || exit 1
export DO_NOT_BUILD_MONITORING=true
fi

AUTH="DummyOAuth(http://host.docker.internal:8085/token,uss1)"
Expand Down
1 change: 1 addition & 0 deletions monitoring/mock_uss/run_locally_test_geoawareness.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
"${SCRIPT_DIR}/../build.sh" || exit 1
export DO_NOT_BUILD_MONITORING=true
fi

PUBLIC_KEY="/var/test-certs/auth2.pem"
Expand Down
5 changes: 4 additions & 1 deletion monitoring/uss_qualifier/bin/generate_rid_test_definition.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ else
fi
cd "${BASEDIR}/../../.." || exit 1

monitoring/build.sh || exit 1
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
monitoring/build.sh || exit 1
export DO_NOT_BUILD_MONITORING=true
fi

CONFIG_LOCATION="monitoring/uss_qualifier/config_run_locally.json"
CONFIG='--config config_run_locally.json'
Expand Down
5 changes: 4 additions & 1 deletion monitoring/uss_qualifier/bin/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ AUTH="${2:-NoAuth()}"

QUALIFIER_OPTIONS="--auth $AUTH --config /config.json --report output/report.json"

"$(pwd)"/monitoring/build.sh
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
"$(pwd)"/monitoring/build.sh
export DO_NOT_BUILD_MONITORING=true
fi

if [ "$CI" == "true" ]; then
docker_args="--add-host host.docker.internal:host-gateway" # Required to reach other containers in Ubuntu (used for Github Actions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ else
fi
cd "${BASEDIR}/../../.." || exit 1

monitoring/build.sh || exit 1
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
monitoring/build.sh || exit 1
export DO_NOT_BUILD_MONITORING=true
fi

# shellcheck disable=SC2086
docker run --name test_documentation_formatter \
Expand Down
5 changes: 4 additions & 1 deletion monitoring/uss_qualifier/scripts/format_test_suite_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ else
fi
cd "${BASEDIR}/../../.." || exit 1

monitoring/build.sh || exit 1
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
monitoring/build.sh || exit 1
export DO_NOT_BUILD_MONITORING=true
fi

# shellcheck disable=SC2086
docker run --name test_suite_docs_formatter \
Expand Down
5 changes: 4 additions & 1 deletion monitoring/uss_qualifier/scripts/run_unit_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ else
fi
cd "${BASEDIR}/../../.." || exit 1

monitoring/build.sh || exit 1
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
monitoring/build.sh || exit 1
export DO_NOT_BUILD_MONITORING=true
fi

# shellcheck disable=SC2086
docker run --name uss_qualifier_unit_test \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ else
fi
cd "${BASEDIR}/../../.." || exit 1

monitoring/build.sh || exit 1
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
monitoring/build.sh || exit 1
export DO_NOT_BUILD_MONITORING=true
fi

# shellcheck disable=SC2086
docker run --name test_definition_validator \
Expand Down
5 changes: 4 additions & 1 deletion monitoring/uss_qualifier/webapp/run_locally.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ else
fi
cd "${BASEDIR}/../../.." || exit 1

monitoring/build.sh || exit 1
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
monitoring/build.sh || exit 1
export DO_NOT_BUILD_MONITORING=true
fi

# Run monitoring/mock_uss/run_locally_ridsp.sh and
# monitoring/mock_uss/run_locally_riddp.sh to produce a mock RID system
Expand Down
5 changes: 4 additions & 1 deletion schemas/manage_type_schemas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ else
fi
cd "${BASEDIR}/.." || exit 1

monitoring/build.sh || exit 1
if [ -z "${DO_NOT_BUILD_MONITORING}" ]; then
monitoring/build.sh || exit 1
export DO_NOT_BUILD_MONITORING=true
fi

action=${1:?The action must be specified as --check or --generate}

Expand Down

0 comments on commit 7cdd957

Please sign in to comment.