Skip to content

Commit 09cb3dd

Browse files
Merge branch 'master' into is8102/add-search-api-in-storage
2 parents ffb9c5c + d0d210d commit 09cb3dd

File tree

595 files changed

+22063
-7341
lines changed

Some content is hidden

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

595 files changed

+22063
-7341
lines changed

.env-devel

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ AGENT_VOLUMES_CLEANUP_S3_REGION=us-east-1
1919
AGENT_VOLUMES_CLEANUP_S3_SECRET_KEY=12345678
2020
AGENT_TRACING={}
2121

22+
API_SERVER_CELERY_CONCURRENCY=50
2223
API_SERVER_DEV_FEATURES_ENABLED=0
2324
API_SERVER_LOGLEVEL=INFO
2425
API_SERVER_PROFILING=1
@@ -53,6 +54,7 @@ CELERY_RESULT_EXPIRES=P7D
5354

5455
CLUSTERS_KEEPER_COMPUTATIONAL_BACKEND_DEFAULT_CLUSTER_AUTH='{"type":"tls","tls_ca_file":"/home/scu/.dask/dask-crt.pem","tls_client_cert":"/home/scu/.dask/dask-crt.pem","tls_client_key":"/home/scu/.dask/dask-key.pem"}'
5556
CLUSTERS_KEEPER_COMPUTATIONAL_BACKEND_DOCKER_IMAGE_TAG=master-github-latest
57+
CLUSTERS_KEEPER_DASK_NPROCS=1
5658
CLUSTERS_KEEPER_DASK_NTHREADS=0
5759
CLUSTERS_KEEPER_DASK_WORKER_SATURATION=inf
5860
CLUSTERS_KEEPER_EC2_ACCESS=null
@@ -129,6 +131,7 @@ DYNAMIC_SIDECAR_PROMETHEUS_MONITORING_NETWORKS=[]
129131
DYNAMIC_SIDECAR_PROMETHEUS_SERVICE_LABELS={}
130132
DYNAMIC_SIDECAR_API_SAVE_RESTORE_STATE_TIMEOUT=01:00:00
131133
DIRECTOR_V2_TRACING={}
134+
DIRECTOR_V2_DYNAMIC_SCHEDULER_ENABLED=1
132135

133136
# DYNAMIC_SCHEDULER ----
134137
DYNAMIC_SCHEDULER_LOGLEVEL=INFO
@@ -141,6 +144,7 @@ DYNAMIC_SCHEDULER_UI_STORAGE_SECRET=adminadmin
141144
FUNCTION_SERVICES_AUTHORS='{"UN": {"name": "Unknown", "email": "[email protected]", "affiliation": "unknown"}}'
142145

143146
WEBSERVER_LICENSES={}
147+
WEBSERVER_FOGBUGZ={}
144148
LICENSES_ITIS_VIP_SYNCER_ENABLED=false
145149
LICENSES_ITIS_VIP_SYNCER_PERIODICITY=1D00:00:00
146150
LICENSES_ITIS_VIP_API_URL=https://replace-with-itis-api/{category}
@@ -190,13 +194,14 @@ PAYMENTS_USERNAME=admin
190194
PAYMENTS_TRACING={}
191195

192196
POSTGRES_DB=simcoredb
193-
POSTGRES_ENDPOINT=postgres:5432
194197
POSTGRES_HOST=postgres
195198
POSTGRES_PASSWORD=adminadmin
196199
POSTGRES_PORT=5432
197200
POSTGRES_USER=scu
198-
POSTGRES_MINSIZE=2 # see https://github.com/ITISFoundation/osparc-simcore/pull/8199
201+
POSTGRES_MINSIZE=1
199202
POSTGRES_MAXSIZE=50
203+
POSTGRES_MAX_POOLSIZE=10
204+
POSTGRES_MAX_OVERFLOW=20
200205
POSTGRES_READONLY_PASSWORD=readonly
201206
POSTGRES_READONLY_USER=postgres_readonly
202207

.github/prompts/update-user-messages.prompt.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
mode: 'edit'
33
description: 'Update user messages'
4+
model: Claude Sonnet 3.5
45
---
56

67
This prompt guide is for updating user-facing messages in ${file} or ${selection}
@@ -43,7 +44,17 @@ When modifying user messages, follow **as close as possible** these rules:
4344
user_message("Unable to load project.", _version=1)
4445
```
4546

46-
3. **Message Style**: Follow **strictly** the guidelines in `${workspaceFolder}/docs/user-messages-guidelines.md`
47+
3. **Message Style**: Follow **STRICTLY ALL 10 GUIDELINES** in `${workspaceFolder}/docs/user-messages-guidelines.md`:
48+
- Be Clear and Concise
49+
- Provide Specific and Actionable Information
50+
- Avoid Technical Jargon
51+
- Use a Polite and Non-Blaming Tone
52+
- Avoid Negative Words and Phrases
53+
- Place Messages Appropriately
54+
- Use Inline Validation When Possible
55+
- Avoid Using All-Caps and Excessive Punctuation
56+
- **Use Humor Sparingly** - Avoid casual phrases like "Oops!", "Whoops!", or overly informal language
57+
- Offer Alternative Solutions or Support
4758

4859
4. **Preserve Context**: Ensure the modified message conveys the same meaning and context as the original.
4960

@@ -56,8 +67,10 @@ When modifying user messages, follow **as close as possible** these rules:
5667
# After
5768
user_message("Your session has expired. Please log in again.", _version=3)
5869
```
70+
5971
6. **Replace 'Study' by 'Project'**: If the message contains the word 'Study', replace it with 'Project' to align with our terminology.
6072

73+
7. **Professional Tone**: Maintain a professional, helpful tone. Avoid humor, casual expressions, or overly informal language that might not be appropriate for all users or situations.
6174

6275
## Examples
6376

@@ -91,4 +104,14 @@ return HttpErrorInfo(status.HTTP_404_NOT_FOUND, user_message("User not found.",
91104
return HttpErrorInfo(status.HTTP_404_NOT_FOUND, user_message("The requested user could not be found.", _version=2))
92105
```
93106

94-
Remember: The goal is to improve clarity and helpfulness for end-users while maintaining accurate versioning for tracking changes.
107+
### Example 4: Removing Humor (Guideline 9)
108+
109+
```python
110+
# Before
111+
user_message("Oops! Something went wrong, but we've noted it down and we'll sort it out ASAP. Thanks for your patience!")
112+
113+
# After
114+
user_message("Something went wrong on our end. We've been notified and will resolve this issue as soon as possible. Thank you for your patience.", _version=1)
115+
```
116+
117+
Remember: The goal is to improve clarity and helpfulness for end-users while maintaining accurate versioning for tracking changes. **Always check that your updated messages comply with ALL 10 guidelines, especially avoiding humor and maintaining a professional tone.**

.github/workflows/ci-pact-master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
PACT_BROKER_PASSWORD: ${{ secrets.PACT_BROKER_PASSWORD }}
2323
steps:
2424
- name: setup python environment
25-
uses: actions/setup-python@v5
25+
uses: actions/setup-python@v6
2626
with:
2727
python-version: "3.11"
2828
- name: install uv

.github/workflows/ci-testing-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ jobs:
861861
with:
862862
driver: docker-container
863863
- name: setup python environment
864-
uses: actions/setup-python@v5
864+
uses: actions/setup-python@v6
865865
with:
866866
python-version: ${{ matrix.python }}
867867
- name: install uv
@@ -1057,7 +1057,7 @@ jobs:
10571057
unit-test-dynamic-sidecar:
10581058
needs: changes
10591059
if: ${{ needs.changes.outputs.dynamic-sidecar == 'true' || github.event_name == 'push' || github.event.inputs.force_all_builds == 'true' }}
1060-
timeout-minutes: 18 # if this timeout gets too small, then split the tests
1060+
timeout-minutes: 19 # if this timeout gets too small, then split the tests
10611061
name: "[unit] dynamic-sidecar"
10621062
runs-on: ${{ matrix.os }}
10631063
strategy:
@@ -1851,7 +1851,7 @@ jobs:
18511851
with:
18521852
python-version: ${{ matrix.python }}
18531853
cache-dependency-glob: "**/e2e/requirements/requirements.txt"
1854-
- uses: actions/setup-node@v4.4.0
1854+
- uses: actions/setup-node@v5.0.0
18551855
with:
18561856
node-version: ${{ matrix.node }}
18571857
cache: "npm"

.github/workflows/ci-testing-pull-request.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: setup python environment
38-
uses: actions/setup-python@v5
38+
uses: actions/setup-python@v6
3939
with:
4040
python-version: "3.11"
4141
- name: install uv
@@ -65,7 +65,7 @@ jobs:
6565
runs-on: ubuntu-latest
6666
steps:
6767
- name: setup python environment
68-
uses: actions/setup-python@v5
68+
uses: actions/setup-python@v6
6969
with:
7070
python-version: "3.11"
7171
- name: checkout
@@ -93,7 +93,7 @@ jobs:
9393
runs-on: ubuntu-latest
9494
steps:
9595
- name: setup python environment
96-
uses: actions/setup-python@v5
96+
uses: actions/setup-python@v6
9797
with:
9898
python-version: "3.11"
9999
- name: checkout

api/specs/web-server/_functions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
FunctionGroupPathParams,
2424
)
2525
from simcore_service_webserver.functions._controller._functions_rest_schemas import (
26+
FunctionDeleteQueryParams,
2627
FunctionGetQueryParams,
2728
FunctionPathParams,
2829
FunctionsListQueryParams,
@@ -80,6 +81,7 @@ async def update_function(
8081
)
8182
async def delete_function(
8283
_path: Annotated[FunctionPathParams, Depends()],
84+
_query: Annotated[as_query(FunctionDeleteQueryParams), Depends()],
8385
): ...
8486

8587

api/specs/web-server/_nih_sparc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from fastapi import APIRouter
99
from models_library.generics import Envelope
1010
from simcore_service_webserver._meta import API_VTAG
11-
from simcore_service_webserver.studies_dispatcher._rest_handlers import (
11+
from simcore_service_webserver.studies_dispatcher._controller.rest.nih_schemas import (
1212
ServiceGet,
1313
Viewer,
1414
)

api/specs/web-server/_nih_sparc_redirections.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
""" Helper script to generate OAS automatically NIH-sparc portal API section
2-
"""
1+
"""Helper script to generate OAS automatically NIH-sparc portal API section"""
32

43
# pylint: disable=protected-access
54
# pylint: disable=redefined-outer-name
@@ -11,7 +10,7 @@
1110
from fastapi import APIRouter, status
1211
from fastapi.responses import RedirectResponse
1312
from models_library.projects import ProjectID
14-
from models_library.services import ServiceKey, ServiceKeyVersion
13+
from models_library.services_types import ServiceKey, ServiceVersion
1514
from pydantic import HttpUrl, PositiveInt
1615

1716
router = APIRouter(
@@ -31,7 +30,7 @@
3130
async def get_redirection_to_viewer(
3231
file_type: str,
3332
viewer_key: ServiceKey,
34-
viewer_version: ServiceKeyVersion,
33+
viewer_version: ServiceVersion,
3534
file_size: PositiveInt,
3635
download_link: HttpUrl,
3736
file_name: str | None = "unknown",

packages/aws-library/requirements/_base.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ jmespath==1.0.1
118118
# aiobotocore
119119
# boto3
120120
# botocore
121+
jsonref==1.1.0
122+
# via
123+
# -r requirements/../../../packages/models-library/requirements/_base.in
124+
# -r requirements/../../../packages/service-library/requirements/../../../packages/models-library/requirements/_base.in
121125
jsonschema==4.23.0
122126
# via
123127
# -r requirements/../../../packages/models-library/requirements/_base.in

packages/aws-library/src/aws_library/ec2/__init__.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
from ._client import SimcoreEC2API
2-
from ._errors import EC2AccessError, EC2NotConnectedError, EC2RuntimeError
2+
from ._errors import (
3+
EC2AccessError,
4+
EC2InsufficientCapacityError,
5+
EC2NotConnectedError,
6+
EC2RuntimeError,
7+
)
38
from ._models import (
49
AWS_TAG_KEY_MAX_LENGTH,
510
AWS_TAG_KEY_MIN_LENGTH,
@@ -16,22 +21,22 @@
1621
)
1722

1823
__all__: tuple[str, ...] = (
19-
"AWSTagKey",
20-
"AWSTagValue",
21-
"AWS_TAG_KEY_MIN_LENGTH",
2224
"AWS_TAG_KEY_MAX_LENGTH",
23-
"AWS_TAG_VALUE_MIN_LENGTH",
25+
"AWS_TAG_KEY_MIN_LENGTH",
2426
"AWS_TAG_VALUE_MAX_LENGTH",
27+
"AWS_TAG_VALUE_MIN_LENGTH",
28+
"AWSTagKey",
29+
"AWSTagValue",
2530
"EC2AccessError",
2631
"EC2InstanceBootSpecific",
2732
"EC2InstanceConfig",
2833
"EC2InstanceData",
2934
"EC2InstanceType",
35+
"EC2InsufficientCapacityError",
3036
"EC2NotConnectedError",
3137
"EC2RuntimeError",
3238
"EC2Tags",
3339
"Resources",
3440
"SimcoreEC2API",
3541
)
36-
3742
# nopycln: file

0 commit comments

Comments
 (0)