Skip to content

Commit 2325b8f

Browse files
authored
Merge branch 'master' into dependabot/github_actions/codecov/codecov-action-4.6.0
2 parents 25a96a3 + 2e1f0ec commit 2325b8f

File tree

221 files changed

+2042
-946
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

221 files changed

+2042
-946
lines changed

.env-devel

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ DYNAMIC_SIDECAR_IMAGE=${DOCKER_REGISTRY:-itisfoundation}/dynamic-sidecar:${DOCKE
104104
DYNAMIC_SIDECAR_LOG_LEVEL=DEBUG
105105
DYNAMIC_SIDECAR_PROMETHEUS_MONITORING_NETWORKS=[]
106106
DYNAMIC_SIDECAR_PROMETHEUS_SERVICE_LABELS={}
107+
DYNAMIC_SIDECAR_API_SAVE_RESTORE_STATE_TIMEOUT=3600
107108
# DIRECTOR_V2 ----
108109

109110
DYNAMIC_SCHEDULER_PROFILING=1
@@ -153,7 +154,7 @@ POSTGRES_PORT=5432
153154
POSTGRES_USER=scu
154155

155156
POSTGRES_READONLY_PASSWORD=readonly
156-
POSTGRES_READONLY_USER=readonly
157+
POSTGRES_READONLY_USER=postgres_readonly
157158

158159

159160
RABBIT_HOST=rabbit
@@ -220,6 +221,13 @@ STORAGE_PROFILING=1
220221

221222
SWARM_STACK_NAME=master-simcore
222223

224+
## VENDOR DEVELOPMENT SERVICES ---
225+
VENDOR_DEV_MANUAL_IMAGE=containous/whoami
226+
VENDOR_DEV_MANUAL_REPLICAS=1
227+
VENDOR_DEV_MANUAL_SUBDOMAIN=manual
228+
229+
## VENDOR DEVELOPMENT SERVICES ---
230+
223231
WB_API_WEBSERVER_HOST=wb-api-server
224232
WB_API_WEBSERVER_PORT=8080
225233

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,3 @@ tests/public-api/osparc_python_wheels/*
181181

182182
# osparc-config repo files
183183
repo.config
184-
185-
# scripts resolved with .env s
186-
services/postgres/scripts/create-readonly-user.sql

.vscode/settings.template.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@
99
"files.associations": {
1010
".*rc": "ini",
1111
".env*": "ini",
12+
"*.logs*": "log",
1213
"**/requirements/*.in": "pip-requirements",
1314
"**/requirements/*.txt": "pip-requirements",
1415
"*logs.txt": "log",
15-
"*.logs*": "log",
1616
"*Makefile": "makefile",
17+
"*sql.*": "sql",
1718
"docker-compose*.yml": "dockercompose",
1819
"Dockerfile*": "dockerfile"
1920
},

Makefile

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ help: ## help on rule's targets
128128

129129

130130
test_python_version: ## Check Python version, throw error if compilation would fail with the installed version
131-
python ./scripts/test_python_version.py
131+
# Checking python version
132+
@.venv/bin/python ./scripts/test_python_version.py
132133

133134

134135
## DOCKER BUILD -------------------------------
@@ -269,6 +270,11 @@ CPU_COUNT = $(shell cat /proc/cpuinfo | grep processor | wc -l )
269270
services/docker-compose.local.yml \
270271
> $@
271272

273+
.stack-vendor-services.yml: .env $(docker-compose-configs)
274+
# Creating config for vendors stack to $@
275+
@scripts/docker/docker-stack-config.bash -e $< \
276+
services/docker-compose-dev-vendors.yml \
277+
> $@
272278

273279
.stack-ops.yml: .env $(docker-compose-configs)
274280
# Creating config for ops stack to $@
@@ -288,7 +294,11 @@ endif
288294

289295

290296

291-
.PHONY: up-devel up-prod up-prod-ci up-version up-latest .deploy-ops
297+
.PHONY: up-devel up-prod up-prod-ci up-version up-latest .deploy-ops .deploy-vendors
298+
299+
.deploy-vendors: .stack-vendor-services.yml
300+
# Deploy stack 'vendors'
301+
docker stack deploy --detach=true --with-registry-auth -c $< vendors
292302

293303
.deploy-ops: .stack-ops.yml
294304
# Deploy stack 'ops'
@@ -323,6 +333,7 @@ printf "$$rows" "Rabbit Dashboard" "http://$(get_my_ip).nip.io:15672" admin admi
323333
printf "$$rows" "Redis" "http://$(get_my_ip).nip.io:18081";\
324334
printf "$$rows" "Storage S3 Minio" "http://$(get_my_ip).nip.io:9001" 12345678 12345678;\
325335
printf "$$rows" "Traefik Dashboard" "http://$(get_my_ip).nip.io:8080/dashboard/";\
336+
printf "$$rows" "Vendor Manual (Fake)" "http://manual.$(get_my_ip).nip.io:9081";\
326337

327338
printf "\n%s\n" "⚠️ if a DNS is not used (as displayed above), the interactive services started via dynamic-sidecar";\
328339
echo "⚠️ will not be shown. The frontend accesses them via the uuid.services.YOUR_IP.nip.io:9081";
@@ -338,6 +349,7 @@ up-devel: .stack-simcore-development.yml .init-swarm $(CLIENT_WEB_OUTPUT) ## Dep
338349
@$(MAKE_C) services/dask-sidecar certificates
339350
# Deploy stack $(SWARM_STACK_NAME) [back-end]
340351
@docker stack deploy --detach=true --with-registry-auth -c $< $(SWARM_STACK_NAME)
352+
@$(MAKE) .deploy-vendors
341353
@$(MAKE) .deploy-ops
342354
@$(_show_endpoints)
343355
@$(MAKE_C) services/static-webserver/client follow-dev-logs
@@ -348,6 +360,7 @@ up-devel-frontend: .stack-simcore-development-frontend.yml .init-swarm ## Every
348360
@$(MAKE_C) services/dask-sidecar certificates
349361
# Deploy stack $(SWARM_STACK_NAME) [back-end]
350362
@docker stack deploy --detach=true --with-registry-auth -c $< $(SWARM_STACK_NAME)
363+
@$(MAKE) .deploy-vendors
351364
@$(MAKE) .deploy-ops
352365
@$(_show_endpoints)
353366
@$(MAKE_C) services/static-webserver/client follow-dev-logs
@@ -358,6 +371,7 @@ ifeq ($(target),)
358371
@$(MAKE_C) services/dask-sidecar certificates
359372
# Deploy stack $(SWARM_STACK_NAME)
360373
@docker stack deploy --detach=true --with-registry-auth -c $< $(SWARM_STACK_NAME)
374+
@$(MAKE) .deploy-vendors
361375
@$(MAKE) .deploy-ops
362376
else
363377
# deploys ONLY $(target) service
@@ -369,6 +383,7 @@ up-version: .stack-simcore-version.yml .init-swarm ## Deploys versioned stack '$
369383
@$(MAKE_C) services/dask-sidecar certificates
370384
# Deploy stack $(SWARM_STACK_NAME)
371385
@docker stack deploy --detach=true --with-registry-auth -c $< $(SWARM_STACK_NAME)
386+
@$(MAKE) .deploy-vendors
372387
@$(MAKE) .deploy-ops
373388
@$(_show_endpoints)
374389

@@ -468,7 +483,7 @@ push-version: tag-version
468483

469484
.venv: .check-uv-installed
470485
@uv venv $@
471-
## upgrading tools to latest version in $(shell python3 --version)
486+
@echo "# upgrading tools to latest version in" && $@/bin/python --version
472487
@uv pip --quiet install --upgrade \
473488
pip~=24.0 \
474489
wheel \
@@ -670,9 +685,9 @@ info-registry: ## info on local registry (if any)
670685

671686
## INFO -------------------------------
672687

673-
.PHONY: info info-images info-swarm info-tools
688+
.PHONY: info info-images info-swarm
674689
info: ## displays setup information
675-
# setup info:
690+
@echo setup info --------------------------------
676691
@echo ' Detected OS : $(IS_LINUX)$(IS_OSX)$(IS_WSL)$(IS_WSL2)$(IS_WIN)'
677692
@echo ' SWARM_STACK_NAME : ${SWARM_STACK_NAME}'
678693
@echo ' DOCKER_REGISTRY : $(DOCKER_REGISTRY)'
@@ -682,19 +697,23 @@ info: ## displays setup information
682697
@echo ' - ULR : ${VCS_URL}'
683698
@echo ' - REF : ${VCS_REF}'
684699
@echo ' - (STATUS)REF_CLIENT : (${VCS_STATUS_CLIENT}) ${VCS_REF_CLIENT}'
685-
@echo ' DIRECTOR_API_VERSION : ${DIRECTOR_API_VERSION}'
686-
@echo ' STORAGE_API_VERSION : ${STORAGE_API_VERSION}'
687-
@echo ' DATCORE_ADAPTER_API_VERSION : ${DATCORE_ADAPTER_API_VERSION}'
688-
@echo ' WEBSERVER_API_VERSION : ${WEBSERVER_API_VERSION}'
689-
# dev tools version
690-
@echo ' make : $(shell make --version 2>&1 | head -n 1)'
691-
@echo ' jq : $(shell jq --version)'
700+
@make --silent info-tools
701+
702+
703+
.PHONY: show-tools
704+
info-tools: ## displays tools versions
705+
@echo dev-tools versions -------------------------
692706
@echo ' awk : $(shell awk -W version 2>&1 | head -n 1)'
693-
@echo ' python : $(shell python3 --version)'
694-
@echo ' node : $(shell node --version 2> /dev/null || echo ERROR nodejs missing)'
695707
@echo ' docker : $(shell docker --version)'
696708
@echo ' docker buildx : $(shell docker buildx version)'
697709
@echo ' docker compose: $(shell docker compose version)'
710+
@echo ' jq : $(shell jq --version)'
711+
@echo ' make : $(shell make --version 2>&1 | head -n 1)'
712+
@echo ' node : $(shell node --version 2> /dev/null || echo ERROR nodejs missing)'
713+
@echo ' python : $(shell python3 --version)'
714+
@echo ' uv : $(shell uv --version 2> /dev/null || echo ERROR uv missing)'
715+
@echo ' ubuntu : $(shell lsb_release --description --short 2> /dev/null | tail || echo ERROR Not an Ubuntu OS )'
716+
698717

699718

700719
define show-meta

api/specs/web-server/_auth.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,21 @@ async def logout(_body: LogoutBody):
155155
"""user logout"""
156156

157157

158+
@router.get(
159+
"/auth:check",
160+
operation_id="check_authentication",
161+
status_code=status.HTTP_204_NO_CONTENT,
162+
responses={
163+
status.HTTP_401_UNAUTHORIZED: {
164+
"model": Envelope[Error],
165+
"description": "unauthorized reset due to invalid token code",
166+
}
167+
},
168+
)
169+
async def check_auth():
170+
"""checks if user is authenticated in the platform"""
171+
172+
158173
@router.post(
159174
"/auth/reset-password",
160175
response_model=Envelope[Log],

packages/aws-library/requirements/_base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ pyyaml==6.0.2
210210
# -c requirements/../../../packages/settings-library/requirements/../../../requirements/constraints.txt
211211
# -c requirements/../../../requirements/constraints.txt
212212
# -r requirements/../../../packages/service-library/requirements/_base.in
213-
redis==5.0.8
213+
redis==5.0.4
214214
# via
215215
# -c requirements/../../../packages/models-library/requirements/../../../requirements/constraints.txt
216216
# -c requirements/../../../packages/service-library/requirements/../../../packages/models-library/requirements/../../../requirements/constraints.txt

packages/aws-library/requirements/_tools.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ isort==5.13.2
2828
# pylint
2929
mccabe==0.7.0
3030
# via pylint
31-
mypy==1.11.2
31+
mypy==1.12.0
3232
# via -r requirements/../../../requirements/devenv.txt
3333
mypy-extensions==1.0.0
3434
# via

packages/aws-library/requirements/ci.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# installs base + tests requirements
1010
--requirement _base.txt
1111
--requirement _test.txt
12+
--requirement _tools.txt
1213

1314
# installs this repo's packages
1415
pytest-simcore @ ../pytest-simcore

packages/dask-task-models-library/requirements/_tools.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ isort==5.13.2
2727
# pylint
2828
mccabe==0.7.0
2929
# via pylint
30-
mypy==1.11.2
30+
mypy==1.12.0
3131
# via -r requirements/../../../requirements/devenv.txt
3232
mypy-extensions==1.0.0
3333
# via

packages/dask-task-models-library/requirements/ci.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
# installs base + tests requirements
1010
--requirement _base.txt
1111
--requirement _test.txt
12+
--requirement _tools.txt
1213

1314
# installs this repo's packages
1415
pytest-simcore @ ../pytest-simcore

0 commit comments

Comments
 (0)