Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️⬆️ Migrating director service to fastapi ⚠️ 🚨 #6657

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
db8880f
drafted requirements
pcrespov Nov 4, 2024
fd64036
upgraded
pcrespov Nov 4, 2024
7f08293
rm
pcrespov Nov 4, 2024
5e7d7a5
setup
pcrespov Nov 4, 2024
e13f226
director api version: 0.1.0 → 1.0.0
pcrespov Nov 4, 2024
add6a76
unreadme
pcrespov Nov 4, 2024
3b10e76
entrpoint/boot
sanderegg Nov 4, 2024
740406a
healthcheck
sanderegg Nov 4, 2024
a0191e4
base routes
sanderegg Nov 4, 2024
768aa23
added meta
sanderegg Nov 4, 2024
6767346
added core
sanderegg Nov 4, 2024
4d5d4aa
modified meta
sanderegg Nov 4, 2024
76187a3
added cli
sanderegg Nov 4, 2024
30ef4ca
replaced main
sanderegg Nov 4, 2024
86e13cc
conftest
pcrespov Nov 4, 2024
6a4bf59
ruffed
pcrespov Nov 4, 2024
83dd0d9
aync tests
pcrespov Nov 4, 2024
f4831a5
test_docker_utils runs
pcrespov Nov 4, 2024
07fa4e5
Merge branch 'is1988/upgrading-director-to-fastapi' of github.com:pcr…
pcrespov Nov 4, 2024
e6fbfba
test_settings
pcrespov Nov 4, 2024
b32c6cd
test_utils
pcrespov Nov 4, 2024
1c40e4b
minor
pcrespov Nov 4, 2024
ebb8ead
test_oas
pcrespov Nov 4, 2024
5ea1a2b
oas is auto-generated now
pcrespov Nov 4, 2024
e79bb34
moved config to settings/constants
sanderegg Nov 4, 2024
394fc8c
Merge branch 'is1988/upgrading-director-to-fastapi' of github.com:pcr…
sanderegg Nov 4, 2024
8a35424
migration
sanderegg Nov 4, 2024
e5769c5
migrated to fastapi
sanderegg Nov 4, 2024
b54c785
app fixture
pcrespov Nov 4, 2024
a1afb33
refactoring test_handlers
pcrespov Nov 4, 2024
ff3f2bd
rm test_handlers -> api
pcrespov Nov 4, 2024
f4c582f
migrated list services
sanderegg Nov 4, 2024
f57d969
migrated services endpoint
sanderegg Nov 4, 2024
e1221aa
Merge branch 'is1988/upgrading-director-to-fastapi' of github.com:pcr…
pcrespov Nov 4, 2024
0f8556f
cli and models
pcrespov Nov 4, 2024
e07ed6b
test healthcheck
pcrespov Nov 4, 2024
7c80aa2
split service extras
pcrespov Nov 4, 2024
11aa54e
split service extras
pcrespov Nov 4, 2024
7ec3d19
migrated service extras endpoint
sanderegg Nov 4, 2024
0f81b25
adds api model
pcrespov Nov 4, 2024
71404e4
Merge branch 'is1988/upgrading-director-to-fastapi' of github.com:pcr…
pcrespov Nov 4, 2024
b1ab0ec
updates service-extras
pcrespov Nov 4, 2024
e66bdd8
import fix
sanderegg Nov 4, 2024
2c039e9
Merge branch 'is1988/upgrading-director-to-fastapi' of github.com:pcr…
sanderegg Nov 4, 2024
62c83bd
migrated running services
sanderegg Nov 4, 2024
b18830a
migrated producer
sanderegg Nov 4, 2024
142953a
setup registry
sanderegg Nov 4, 2024
ff0f132
monitoring progress
sanderegg Nov 4, 2024
95446b9
removed generated code
sanderegg Nov 4, 2024
6b43e88
drafted requirements
pcrespov Nov 4, 2024
8d124c8
upgraded
pcrespov Nov 4, 2024
94162ca
rm
pcrespov Nov 4, 2024
ca381d1
setup
pcrespov Nov 4, 2024
44db6cf
director api version: 0.1.0 → 1.0.0
pcrespov Nov 4, 2024
837bac1
unreadme
pcrespov Nov 4, 2024
88fc379
entrpoint/boot
sanderegg Nov 4, 2024
edb40bc
healthcheck
sanderegg Nov 4, 2024
3e7241c
base routes
sanderegg Nov 4, 2024
f3ffacb
added meta
sanderegg Nov 4, 2024
55591eb
added core
sanderegg Nov 4, 2024
70d183b
modified meta
sanderegg Nov 4, 2024
fd49194
added cli
sanderegg Nov 4, 2024
a55861b
replaced main
sanderegg Nov 4, 2024
63b84d5
moved config to settings/constants
sanderegg Nov 4, 2024
5380ab4
conftest
pcrespov Nov 4, 2024
9682c3b
ruffed
pcrespov Nov 4, 2024
98c6965
aync tests
pcrespov Nov 4, 2024
de680de
test_docker_utils runs
pcrespov Nov 4, 2024
c4a2e94
test_settings
pcrespov Nov 4, 2024
6f72c0f
test_utils
pcrespov Nov 4, 2024
53097ff
minor
pcrespov Nov 4, 2024
39dd2bf
test_oas
pcrespov Nov 4, 2024
9b8b5ac
oas is auto-generated now
pcrespov Nov 4, 2024
9c28b0e
migration
sanderegg Nov 4, 2024
b82a369
migrated to fastapi
sanderegg Nov 4, 2024
d35c594
app fixture
pcrespov Nov 4, 2024
859fef5
refactoring test_handlers
pcrespov Nov 4, 2024
e9c6fd4
rm test_handlers -> api
pcrespov Nov 4, 2024
290d51e
migrated list services
sanderegg Nov 4, 2024
6a3d019
migrated services endpoint
sanderegg Nov 4, 2024
8a6dbec
cli and models
pcrespov Nov 4, 2024
8979952
test healthcheck
pcrespov Nov 4, 2024
1454f10
split service extras
pcrespov Nov 4, 2024
6ae3476
split service extras
pcrespov Nov 4, 2024
34d86f5
migrated service extras endpoint
sanderegg Nov 4, 2024
d3cb993
import fix
sanderegg Nov 4, 2024
d329957
adds api model
pcrespov Nov 4, 2024
2f73644
updates service-extras
pcrespov Nov 4, 2024
843cccb
migrated running services
sanderegg Nov 4, 2024
1ac2876
migrated producer
sanderegg Nov 4, 2024
3bc9134
add get_application_settings
sanderegg Nov 4, 2024
b378463
Merge branch 'is1988/upgrading-director-to-fastapi' of github.com:pcr…
pcrespov Nov 4, 2024
edb2b73
this is a constant
sanderegg Nov 4, 2024
926f892
migrating
sanderegg Nov 4, 2024
bde0e0e
Merge branch 'is1988/upgrading-director-to-fastapi' of github.com:pcr…
sanderegg Nov 4, 2024
315bd23
removed old main
sanderegg Nov 4, 2024
cd66474
removed old main
sanderegg Nov 4, 2024
e7cc973
removed config
sanderegg Nov 4, 2024
f559aac
removed old pylint
sanderegg Nov 4, 2024
65511dc
last one today
sanderegg Nov 4, 2024
d33d94e
missing return types
sanderegg Nov 5, 2024
0076e7f
added instrumetnation basics
sanderegg Nov 5, 2024
611f799
connected instrumentation
sanderegg Nov 5, 2024
2267f18
added client session
sanderegg Nov 5, 2024
a400efe
diverse
sanderegg Nov 5, 2024
cc5662b
producer
sanderegg Nov 5, 2024
7636556
producer
sanderegg Nov 5, 2024
682cb1b
Merge remote-tracking branch 'upstream/master' into is1988/upgrading-…
sanderegg Nov 5, 2024
ed2755d
changed wrong stuff
sanderegg Nov 5, 2024
86a0d4e
tests are starting now
sanderegg Nov 5, 2024
07a3986
fix types
sanderegg Nov 5, 2024
efd9146
cleanup
sanderegg Nov 5, 2024
e239d07
temp
sanderegg Nov 5, 2024
c241ad7
temp
sanderegg Nov 5, 2024
1976f16
types
sanderegg Nov 5, 2024
27a80ab
re-added monitoring
sanderegg Nov 5, 2024
7c5a00e
mypy happy
sanderegg Nov 5, 2024
8048490
Merge remote-tracking branch 'upstream/master' into is1988/upgrading-…
sanderegg Nov 5, 2024
9108036
updated Dockerfile
sanderegg Nov 5, 2024
90d4205
typo
sanderegg Nov 5, 2024
a5b39ef
missing validation of log level
sanderegg Nov 5, 2024
5b8145e
missing debugging port
sanderegg Nov 5, 2024
db90448
pass log_level formatting
sanderegg Nov 5, 2024
51ca92b
storage endpoint is a full endpoint with scheme
sanderegg Nov 5, 2024
bd9b0e6
revert
sanderegg Nov 5, 2024
6499829
LOG_LEVEL instead of log_level
sanderegg Nov 5, 2024
abb9e35
duplicate
sanderegg Nov 5, 2024
b43f5df
ruff
sanderegg Nov 5, 2024
b1a9a11
fix order
sanderegg Nov 5, 2024
24c59aa
fix settings
sanderegg Nov 5, 2024
f43413f
changed director port
sanderegg Nov 5, 2024
f2f3aba
fixed routes and tasks
sanderegg Nov 5, 2024
3748f93
ensure HEAD works
sanderegg Nov 5, 2024
54e6178
also respond with healtcheck on /v0/
sanderegg Nov 5, 2024
eb4c4bd
spelling error
pcrespov Nov 5, 2024
5091270
udpate envs
pcrespov Nov 5, 2024
8f2ae44
some improvements
sanderegg Nov 5, 2024
a8bc7a5
fixes test_settings
pcrespov Nov 5, 2024
03a171a
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 5, 2024
17bbe29
regenerated reqs
sanderegg Nov 5, 2024
9369cb5
replaced home made caching by aiocache
sanderegg Nov 5, 2024
2196f3f
Merge branch 'is1988/upgrading-director-to-fastapi' of github.com:pcr…
sanderegg Nov 5, 2024
1c84f71
mypy happy
sanderegg Nov 5, 2024
23ae345
Merge remote-tracking branch 'upstream/master' into is1988/upgrading-…
sanderegg Nov 5, 2024
9d08c65
fixed test
sanderegg Nov 5, 2024
54a2614
moved tests to unit subfolder
sanderegg Nov 5, 2024
86c3062
test getting greener
sanderegg Nov 5, 2024
e8d64ec
Merge remote-tracking branch 'upstream/master' into is1988/upgrading-…
sanderegg Nov 6, 2024
724117c
fixed unit testing script
sanderegg Nov 6, 2024
04c494a
fixed CI for director-v0
sanderegg Nov 6, 2024
0a2e089
fixed bash script
sanderegg Nov 6, 2024
941cd94
removed fixture
sanderegg Nov 6, 2024
56a0f03
upgraded requirements
sanderegg Nov 6, 2024
9c04de1
fixed test_cli
sanderegg Nov 6, 2024
e087eec
fixing tests
sanderegg Nov 6, 2024
9be31ed
ongoing
sanderegg Nov 6, 2024
bb2ac26
remove wrong usage
sanderegg Nov 6, 2024
b5a953a
Merge remote-tracking branch 'upstream/master' into is1988/upgrading-…
sanderegg Nov 7, 2024
cc1eb85
added aioresponses
sanderegg Nov 7, 2024
f97dfa4
ensure docker_networks has a swarm
sanderegg Nov 7, 2024
e3b3d42
ruff
sanderegg Nov 7, 2024
cd22c36
note
sanderegg Nov 7, 2024
bff77dc
fixed api
sanderegg Nov 7, 2024
edc260e
use middleware
sanderegg Nov 7, 2024
aa22b7d
ensure in sequential workers are properly closed
sanderegg Nov 7, 2024
0e36744
proper exception
sanderegg Nov 7, 2024
d3be678
remove polution of logs
sanderegg Nov 7, 2024
95f07a1
test passes
sanderegg Nov 7, 2024
7836274
more fixtures
sanderegg Nov 7, 2024
b36a228
cleanup
sanderegg Nov 7, 2024
dd642be
cleanup
sanderegg Nov 7, 2024
866eb7c
Merge remote-tracking branch 'upstream/master' into is1988/upgrading-…
sanderegg Nov 7, 2024
1b9a8df
missing registry configuration
sanderegg Nov 7, 2024
5d4dd41
fix api
sanderegg Nov 7, 2024
932af75
fixed syntax
sanderegg Nov 7, 2024
69bee43
ruff
sanderegg Nov 7, 2024
bab906f
missing fixture
sanderegg Nov 7, 2024
22f672f
api tests passing
sanderegg Nov 7, 2024
207d332
fixture adjustments
sanderegg Nov 7, 2024
3d46690
test passing
sanderegg Nov 7, 2024
a11a517
passing tests
sanderegg Nov 7, 2024
4b58480
use docker utils
sanderegg Nov 7, 2024
5de6955
test with no swarm is not necessary
sanderegg Nov 7, 2024
7b7afd4
no need to test fixtures
sanderegg Nov 7, 2024
8bf9f8d
cleanup
sanderegg Nov 7, 2024
307d95b
cleanup
sanderegg Nov 7, 2024
2606d9e
unused
sanderegg Nov 7, 2024
57b5315
chatgpt tests
sanderegg Nov 7, 2024
0457aaa
removed exceptions, replaced by errors
sanderegg Nov 7, 2024
444c4c9
fixed test using monkeypatch
sanderegg Nov 7, 2024
ea84b6b
linter
sanderegg Nov 7, 2024
0500c7e
missing dependency
sanderegg Nov 7, 2024
1128245
missing faker
sanderegg Nov 7, 2024
7b85e9b
correct status code
sanderegg Nov 7, 2024
b318dfe
@GitHK review: _logger
sanderegg Nov 8, 2024
6fe63f5
@GitHK review: more stuff
sanderegg Nov 8, 2024
3d31659
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 8, 2024
1aa3f74
Merge branch 'master' into is1988/upgrading-director-to-fastapi
sanderegg Nov 8, 2024
e96cf49
env tsts
pcrespov Nov 8, 2024
621906c
adds tracing
pcrespov Nov 8, 2024
8c69e30
replaced DEFAULT_MAX_NANO_CPUS by DIRECTOR_DEFAULT_MAX_NANO_CPUS
pcrespov Nov 8, 2024
0428172
envs
pcrespov Nov 8, 2024
fbc1f75
fixes dockercompose env fixture
pcrespov Nov 8, 2024
d0e7a06
doc
pcrespov Nov 8, 2024
9450b1d
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 14, 2024
a501847
@mrnicegyu11 review: updates 3.11
pcrespov Nov 14, 2024
d126098
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 14, 2024
4e39091
missing upgrade
pcrespov Nov 14, 2024
726ba0c
rm envs
pcrespov Nov 15, 2024
10c3157
env vars
pcrespov Nov 15, 2024
f5f457e
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 15, 2024
d70950f
Merge branch 'is1988/upgrading-director-to-fastapi' of github.com:pcr…
pcrespov Nov 15, 2024
80ca437
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 15, 2024
c202c3d
envs
pcrespov Nov 15, 2024
9068e35
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 15, 2024
c8d65b2
Merge branch 'is1988/upgrading-director-to-fastapi' of github.com:pcr…
pcrespov Nov 15, 2024
08a837c
minor cleanup
pcrespov Nov 16, 2024
07192df
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 18, 2024
309e271
disables tracing for integration tests
pcrespov Nov 18, 2024
6d3b23c
fixes fixture
pcrespov Nov 18, 2024
ac28f3f
disable tracing
pcrespov Nov 18, 2024
efb5065
docker-path
pcrespov Nov 18, 2024
136b9be
fixes tests
pcrespov Nov 18, 2024
de5ca38
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 18, 2024
569d936
missing envvar
pcrespov Nov 18, 2024
3a8224e
improves error
pcrespov Nov 18, 2024
fc2d908
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 18, 2024
b8a0ee5
forgot uncomment
pcrespov Nov 18, 2024
1b79b37
Merge branch 'master' into is1988/upgrading-director-to-fastapi
pcrespov Nov 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .env-devel
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,17 @@ DASK_TLS_CA_FILE=/home/scu/.dask/dask-crt.pem
DASK_TLS_CERT=/home/scu/.dask/dask-crt.pem
DASK_TLS_KEY=/home/scu/.dask/dask-key.pem

DIRECTOR_DEFAULT_MAX_MEMORY=2147483648
DIRECTOR_DEFAULT_MAX_NANO_CPUS=1000000000
DIRECTOR_GENERIC_RESOURCE_PLACEMENT_CONSTRAINTS_SUBSTITUTIONS='{}'
DIRECTOR_HOST=director
DIRECTOR_PORT=8080
DIRECTOR_REGISTRY_CACHING_TTL=900
DIRECTOR_LOGLEVEL=INFO
DIRECTOR_MONITORING_ENABLED=True
DIRECTOR_PORT=8000
DIRECTOR_PUBLISHED_HOST_NAME="127.0.0.1:9081"
pcrespov marked this conversation as resolved.
Show resolved Hide resolved
DIRECTOR_REGISTRY_CACHING_TTL=00:15:00
DIRECTOR_REGISTRY_CACHING=True
DIRECTOR_SERVICES_CUSTOM_CONSTRAINTS=null
DIRECTOR_TRACING={}

EFS_USER_ID=8006
Expand Down Expand Up @@ -186,6 +192,7 @@ REDIS_SECURE=false
REDIS_USER=null

REGISTRY_AUTH=True
REGISTRY_PATH=""
REGISTRY_PW=adminadminadmin
REGISTRY_SSL=True
REGISTRY_URL=registry.osparc-master.speag.com
Expand Down
33 changes: 26 additions & 7 deletions .github/workflows/ci-testing-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ on:
- all

env:
DEFAULT_MAX_NANO_CPUS: 10000000
DEFAULT_MAX_MEMORY: 268435456
# NOTE: 'COLUMNS' is a shell env var that represents the width (number of columns)
# of the terminal or command-line interface in characters.
COLUMNS: 120

concurrency:
Expand Down Expand Up @@ -189,6 +189,8 @@ jobs:
- 'packages/**'
- 'services/director/**'
- 'services/docker-compose*'
- 'scripts/mypy/*'
- 'mypy.ini'
director-v2:
- 'packages/**'
- 'services/director-v2/**'
Expand Down Expand Up @@ -912,11 +914,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# KEEP 3.6 Development of this service is frozen
# KEEP ubuntu 20.04, else no python 3.6
python: [3.6]
os: [ubuntu-20.04]
docker_buildx: [v0.10.4]
python: ["3.11"]
os: [ubuntu-22.04]
fail-fast: false
steps:
- uses: actions/checkout@v4
Expand All @@ -929,12 +928,27 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.4.x"
enable-cache: false
cache-dependency-glob: "**/director/requirements/ci.txt"
- name: show system version
run: ./ci/helpers/show_system_versions.bash
- name: install
run: ./ci/github/unit-testing/director.bash install
- name: typecheck
run: ./ci/github/unit-testing/director.bash typecheck
- name: test
if: ${{ !cancelled() }}
run: ./ci/github/unit-testing/director.bash test
- name: upload failed tests logs
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: ${{ github.job }}_docker_logs
path: ./services/director/test_failures
- uses: codecov/[email protected]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Expand Down Expand Up @@ -2132,6 +2146,11 @@ jobs:
python: ["3.11"]
os: [ubuntu-22.04]
fail-fast: false
env:
# NOTE: DIRECTOR_DEFAULT_MAX_* used for integration-tests that include `director` service
DIRECTOR_DEFAULT_MAX_MEMORY: 268435456
DIRECTOR_DEFAULT_MAX_NANO_CPUS: 10000000
DIRECTOR_TRACING: null
steps:
- uses: actions/checkout@v4
- name: setup docker buildx
Expand Down
41 changes: 13 additions & 28 deletions ci/github/unit-testing/director.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,29 @@ set -o pipefail # don't hide errors within pipes
IFS=$'\n\t'

install() {
# Replaces 'bash ci/helpers/ensure_python_pip.bash'

echo "INFO:" "$(python --version)" "@" "$(command -v python)"

# installs pip if not in place
python -m ensurepip

echo "INFO:" "$(pip --version)" "@" "$(command -v pip)"
# NOTE: pip<22.0 for python 3.6
pip3 install --upgrade \
pip~=21.0 \
wheel \
setuptools
python3 -m venv .venv
make devenv
# shellcheck source=/dev/null
source .venv/bin/activate
pushd services/director
pip3 install -r requirements/ci.txt
make install-ci
popd
uv pip list
}

test() {
# shellcheck source=/dev/null
source .venv/bin/activate
pushd services/director
pytest \
--color=yes \
--cov-append \
--cov-config=.coveragerc \
--cov-report=term-missing \
--cov-report=xml \
--cov=simcore_service_director \
--durations=10 \
--keep-docker-up \
--log-date-format="%Y-%m-%d %H:%M:%S" \
--log-format="%(asctime)s %(levelname)s %(message)s" \
--verbose \
tests/
make test-ci-unit
popd
}

typecheck() {
# shellcheck source=/dev/null
source .venv/bin/activate
uv pip install mypy
pushd services/director
make mypy
popd
}

Expand Down
2 changes: 1 addition & 1 deletion packages/aws-library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def read_reqs(reqs_path: Path) -> set[str]:
"version": Path(CURRENT_DIR / "VERSION").read_text().strip(),
"author": "Sylvain Anderegg (sanderegg)",
"description": "Core service library for AWS APIs",
"python_requires": "~=3.10",
"python_requires": "~=3.11",
"classifiers": [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
Expand Down
2 changes: 1 addition & 1 deletion packages/dask-task-models-library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def read_reqs(reqs_path: Path) -> set[str]:
"version": Path(CURRENT_DIR / "VERSION").read_text().strip(),
"author": "Sylvain Anderegg (sanderegg)",
"description": "Core service library for simcore pydantic dask task models",
"python_requires": "~=3.10",
"python_requires": "~=3.11",
"classifiers": [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
Expand Down
2 changes: 1 addition & 1 deletion packages/models-library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def read_reqs(reqs_path: Path) -> set[str]:
"version": Path(CURRENT_DIR / "VERSION").read_text().strip(),
"author": "Sylvain Anderegg (sanderegg)",
"description": "Core service library for simcore pydantic models",
"python_requires": "~=3.10",
"python_requires": "~=3.11",
"classifiers": [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from ..services_metadata_published import ServiceMetaDataPublished


class ServiceDataGet(ServiceMetaDataPublished):
...
1 change: 1 addition & 0 deletions packages/notifications-library/requirements/_test.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#
--constraint _base.txt

aiodocker
coverage
docker
faker
Expand Down
28 changes: 28 additions & 0 deletions packages/notifications-library/requirements/_test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
aiodocker==0.23.0
# via -r requirements/_test.in
aiohappyeyeballs==2.4.3
# via aiohttp
aiohttp==3.10.10
# via
# -c requirements/../../../requirements/constraints.txt
# aiodocker
aiosignal==1.3.1
# via aiohttp
attrs==24.2.0
# via
# -c requirements/_base.txt
# aiohttp
certifi==2024.8.30
# via
# -c requirements/../../../requirements/constraints.txt
Expand All @@ -12,6 +26,10 @@ docker==7.1.0
# via -r requirements/_test.in
faker==29.0.0
# via -r requirements/_test.in
frozenlist==1.5.0
# via
# aiohttp
# aiosignal
greenlet==3.1.1
# via
# -c requirements/_base.txt
Expand All @@ -22,8 +40,14 @@ idna==3.10
# via
# -c requirements/_base.txt
# requests
# yarl
iniconfig==2.0.0
# via pytest
multidict==6.1.0
# via
# -c requirements/_base.txt
# aiohttp
# yarl
mypy==1.12.0
# via sqlalchemy
mypy-extensions==1.0.0
Expand Down Expand Up @@ -101,3 +125,7 @@ urllib3==2.2.3
# -c requirements/../../../requirements/constraints.txt
# docker
# requests
yarl==1.12.1
# via
# -c requirements/_base.txt
# aiohttp
2 changes: 1 addition & 1 deletion packages/notifications-library/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def read_reqs(reqs_path: Path) -> set[str]:
"version": Path(CURRENT_DIR / "VERSION").read_text().strip(),
"author": "Pedro Crespo-Valero (pcrespov)",
"description": "simcore library for user notifications e.g. emails, sms, etc",
"python_requires": "~=3.10",
"python_requires": "~=3.11",
"classifiers": [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
Expand Down
2 changes: 1 addition & 1 deletion packages/pytest-simcore/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"description": "pytest plugin with fixtures and test helpers for osparc-simcore repo modules",
"py_modules": ["pytest_simcore"],
# WARNING: this is used in frozen services as well !!!!
"python_requires": ">=3.6",
"python_requires": "~=3.11",
"install_requires": ["pytest>=3.5.0"],
"extras_require": {
"all": [
Expand Down
12 changes: 12 additions & 0 deletions packages/pytest-simcore/src/pytest_simcore/docker.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# pylint:disable=protected-access
# pylint:disable=redefined-outer-name
# pylint:disable=too-many-arguments
# pylint:disable=unused-argument
# pylint:disable=unused-variable

import asyncio
import contextlib
from collections.abc import AsyncIterator, Callable
Expand All @@ -7,6 +13,12 @@
import pytest


@pytest.fixture
async def async_docker_client() -> AsyncIterator[aiodocker.Docker]:
async with aiodocker.Docker() as docker_client:
yield docker_client


@contextlib.asynccontextmanager
async def _pause_container(
async_docker_client: aiodocker.Docker, container_name: str
Expand Down
Loading
Loading