-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into is468/trash-api-workspaces
- Loading branch information
Showing
1,393 changed files
with
25,517 additions
and
14,792 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ AUTOSCALING_EC2_ACCESS=null | |
AUTOSCALING_EC2_INSTANCES=null | ||
AUTOSCALING_LOGLEVEL=INFO | ||
AUTOSCALING_NODES_MONITORING=null | ||
AUTOSCALING_POLL_INTERVAL=10 | ||
AUTOSCALING_POLL_INTERVAL="00:00:10" | ||
AUTOSCALING_SSM_ACCESS=null | ||
AUTOSCALING_TRACING={} | ||
|
||
|
@@ -120,13 +120,13 @@ DYNAMIC_SIDECAR_IMAGE=${DOCKER_REGISTRY:-itisfoundation}/dynamic-sidecar:${DOCKE | |
DYNAMIC_SIDECAR_LOG_LEVEL=DEBUG | ||
DYNAMIC_SIDECAR_PROMETHEUS_MONITORING_NETWORKS=[] | ||
DYNAMIC_SIDECAR_PROMETHEUS_SERVICE_LABELS={} | ||
DYNAMIC_SIDECAR_API_SAVE_RESTORE_STATE_TIMEOUT=3600 | ||
DYNAMIC_SIDECAR_API_SAVE_RESTORE_STATE_TIMEOUT=01:00:00 | ||
DIRECTOR_V2_TRACING={} | ||
|
||
# DYNAMIC_SCHEDULER ---- | ||
DYNAMIC_SCHEDULER_LOGLEVEL=DEBUG | ||
DYNAMIC_SCHEDULER_PROFILING=1 | ||
DYNAMIC_SCHEDULER_STOP_SERVICE_TIMEOUT=PT1H | ||
DYNAMIC_SCHEDULER_STOP_SERVICE_TIMEOUT=01:00:00 | ||
DYNAMIC_SCHEDULER_TRACING={} | ||
|
||
FUNCTION_SERVICES_AUTHORS='{"UN": {"name": "Unknown", "email": "[email protected]", "affiliation": "unknown"}}' | ||
|
Validating CODEOWNERS rules …
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 |
---|---|---|
|
@@ -54,6 +54,7 @@ jobs: | |
aws-library: ${{ steps.filter.outputs.aws-library }} | ||
dask-task-models-library: ${{ steps.filter.outputs.dask-task-models-library }} | ||
models-library: ${{ steps.filter.outputs.models-library }} | ||
common-library: ${{ steps.filter.outputs.common-library }} | ||
notifications-library: ${{ steps.filter.outputs.notifications-library }} | ||
postgres-database: ${{ steps.filter.outputs.postgres-database }} | ||
service-integration: ${{ steps.filter.outputs.service-integration }} | ||
|
@@ -110,6 +111,8 @@ jobs: | |
- 'services/docker-compose*' | ||
- 'scripts/mypy/*' | ||
- 'mypy.ini' | ||
common-library: | ||
- 'packages/common-library/**' | ||
notifications-library: | ||
- 'packages/notifications-library/**' | ||
- 'packages/postgres-database/**' | ||
|
@@ -1799,6 +1802,47 @@ jobs: | |
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
unit-test-common-library: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.common-library == 'true' || github.event_name == 'push' }} | ||
timeout-minutes: 18 # if this timeout gets too small, then split the tests | ||
name: "[unit] common-library" | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python: ["3.11"] | ||
os: [ubuntu-22.04] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: setup docker buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
driver: docker-container | ||
- name: setup python environment | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: install uv | ||
uses: yezz123/setup-uv@v4 | ||
- uses: actions/cache@v4 | ||
id: cache-uv | ||
with: | ||
path: ~/.cache/uv | ||
key: ${{ runner.os }}-${{ github.job }}-python-${{ matrix.python }}-uv | ||
- name: show system version | ||
run: ./ci/helpers/show_system_versions.bash | ||
- name: install | ||
run: ./ci/github/unit-testing/common-library.bash install | ||
- name: typecheck | ||
run: ./ci/github/unit-testing/common-library.bash typecheck | ||
- name: test | ||
run: ./ci/github/unit-testing/common-library.bash test | ||
- uses: codecov/[email protected] | ||
with: | ||
flags: unittests #optional | ||
|
||
unit-test-notifications-library: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.notifications-library == 'true' || github.event_name == 'push' }} | ||
|
@@ -1919,6 +1963,7 @@ jobs: | |
unit-test-dynamic-sidecar, | ||
unit-test-efs-guardian, | ||
unit-test-models-library, | ||
unit-test-common-library, | ||
unit-test-notifications-library, | ||
unit-test-osparc-gateway-server, | ||
unit-test-payments, | ||
|
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ | ||
set -o errexit # abort on nonzero exitstatus | ||
set -o nounset # abort on unbound variable | ||
set -o pipefail # don't hide errors within pipes | ||
IFS=$'\n\t' | ||
|
||
install() { | ||
make devenv | ||
# shellcheck source=/dev/null | ||
source .venv/bin/activate | ||
pushd packages/common-library | ||
make install-ci | ||
popd | ||
uv pip list | ||
} | ||
|
||
test() { | ||
# shellcheck source=/dev/null | ||
source .venv/bin/activate | ||
pushd packages/common-library | ||
make tests-ci | ||
popd | ||
} | ||
|
||
typecheck() { | ||
# shellcheck source=/dev/null | ||
source .venv/bin/activate | ||
uv pip install mypy | ||
pushd packages/common-library | ||
make mypy | ||
popd | ||
} | ||
|
||
# Check if the function exists (bash specific) | ||
if declare -f "$1" >/dev/null; then | ||
# call arguments verbatim | ||
"$@" | ||
else | ||
# Show a helpful error | ||
echo "'$1' is not a known function name" >&2 | ||
exit 1 | ||
fi |
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
Oops, something went wrong.