Skip to content

Commit 9fed27e

Browse files
authored
Merge branch 'master' into pr-osparc-redirect-more-dv2-calls-via-dynamic-scheduler
2 parents 03ffa79 + 95d208b commit 9fed27e

File tree

298 files changed

+7967
-2824
lines changed

Some content is hidden

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

298 files changed

+7967
-2824
lines changed

.codecov.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ flag_management:
1010
statuses:
1111
- type: project
1212
target: auto
13-
threshold: 1%
13+
threshold: 2%
1414
- type: patch
1515
target: auto
16-
threshold: 1%
16+
threshold: 2%
1717

1818

1919
component_management:
@@ -22,7 +22,7 @@ component_management:
2222
statuses:
2323
- type: project
2424
target: auto
25-
threshold: 1%
25+
threshold: 2%
2626
branches:
2727
- "!master"
2828
individual_components:
@@ -116,12 +116,12 @@ coverage:
116116
project:
117117
default:
118118
informational: true
119-
threshold: 1%
119+
threshold: 2%
120120

121121
patch:
122122
default:
123123
informational: true
124-
threshold: 1%
124+
threshold: 2%
125125

126126
comment:
127127
layout: "header,diff,flags,components,footer"

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ jobs:
772772
if: ${{ !cancelled() }}
773773
run: ./ci/github/unit-testing/catalog.bash test
774774
- name: upload failed tests logs
775-
if: ${{ !cancelled() }}
775+
if: ${{ failure() }}
776776
uses: actions/upload-artifact@v4
777777
with:
778778
name: ${{ github.job }}_docker_logs
@@ -879,7 +879,7 @@ jobs:
879879
if: ${{ !cancelled() }}
880880
run: ./ci/github/unit-testing/datcore-adapter.bash test
881881
- name: upload failed tests logs
882-
if: ${{ !cancelled() }}
882+
if: ${{ failure() }}
883883
uses: actions/upload-artifact@v4
884884
with:
885885
name: ${{ github.job }}_docker_logs
@@ -930,7 +930,7 @@ jobs:
930930
if: ${{ !cancelled() }}
931931
run: ./ci/github/unit-testing/director.bash test
932932
- name: upload failed tests logs
933-
if: ${{ !cancelled() }}
933+
if: ${{ failure() }}
934934
uses: actions/upload-artifact@v4
935935
with:
936936
name: ${{ github.job }}_docker_logs
@@ -981,7 +981,7 @@ jobs:
981981
if: ${{ !cancelled() }}
982982
run: ./ci/github/unit-testing/director-v2.bash test
983983
- name: upload failed tests logs
984-
if: ${{ !cancelled() }}
984+
if: ${{ failure() }}
985985
uses: actions/upload-artifact@v4
986986
with:
987987
name: ${{ github.job }}_docker_logs
@@ -1910,7 +1910,7 @@ jobs:
19101910
- name: test
19111911
run: ./ci/github/integration-testing/webserver.bash test 01
19121912
- name: upload failed tests logs
1913-
if: ${{ !cancelled() }}
1913+
if: ${{ failure() }}
19141914
uses: actions/upload-artifact@v4
19151915
with:
19161916
name: ${{ github.job }}_docker_logs
@@ -1974,7 +1974,7 @@ jobs:
19741974
- name: test
19751975
run: ./ci/github/integration-testing/webserver.bash test 02
19761976
- name: upload failed tests logs
1977-
if: ${{ !cancelled() }}
1977+
if: ${{ failure() }}
19781978
uses: actions/upload-artifact@v4
19791979
with:
19801980
name: ${{ github.job }}_docker_logs
@@ -2038,7 +2038,7 @@ jobs:
20382038
- name: test
20392039
run: ./ci/github/integration-testing/director-v2.bash test 01
20402040
- name: upload failed tests logs
2041-
if: ${{ !cancelled() }}
2041+
if: ${{ failure() }}
20422042
uses: actions/upload-artifact@v4
20432043
with:
20442044
name: ${{ github.job }}_docker_logs
@@ -2111,7 +2111,7 @@ jobs:
21112111
- name: test
21122112
run: ./ci/github/integration-testing/director-v2.bash test 02
21132113
- name: upload failed tests logs
2114-
if: ${{ !cancelled() }}
2114+
if: ${{ failure() }}
21152115
uses: actions/upload-artifact@v4
21162116
with:
21172117
name: ${{ github.job }}_docker_logs
@@ -2177,7 +2177,7 @@ jobs:
21772177
- name: test
21782178
run: ./ci/github/integration-testing/dynamic-sidecar.bash test 01
21792179
- name: upload failed tests logs
2180-
if: ${{ !cancelled() }}
2180+
if: ${{ failure() }}
21812181
uses: actions/upload-artifact@v4
21822182
with:
21832183
name: ${{ github.job }}_docker_logs
@@ -2241,7 +2241,7 @@ jobs:
22412241
- name: test
22422242
run: ./ci/github/integration-testing/simcore-sdk.bash test
22432243
- name: upload failed tests logs
2244-
if: ${{ !cancelled() }}
2244+
if: ${{ failure() }}
22452245
uses: actions/upload-artifact@v4
22462246
with:
22472247
name: ${{ github.job }}_docker_logs
@@ -2330,7 +2330,7 @@ jobs:
23302330
- name: test
23312331
run: ./ci/github/system-testing/public-api.bash test
23322332
- name: upload failed tests logs
2333-
if: ${{ !cancelled() }}
2333+
if: ${{ failure() }}
23342334
uses: actions/upload-artifact@v4
23352335
with:
23362336
name: ${{ github.job }}_docker_logs
@@ -2395,7 +2395,7 @@ jobs:
23952395
name: ${{ github.job }}_services_settings_schemas
23962396
path: ./services/**/settings-schema.json
23972397
- name: upload failed tests logs
2398-
if: ${{ !cancelled() }}
2398+
if: ${{ failure() }}
23992399
uses: actions/upload-artifact@v4
24002400
with:
24012401
name: ${{ github.job }}_docker_logs

api/specs/web-server/_catalog_licensed_items.py renamed to api/specs/web-server/_licensed_items.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
from models_library.generics import Envelope
1515
from models_library.rest_error import EnvelopedError
1616
from simcore_service_webserver._meta import API_VTAG
17-
from simcore_service_webserver.catalog.licenses._exceptions_handlers import (
18-
_TO_HTTP_ERROR_MAP,
19-
)
20-
from simcore_service_webserver.catalog.licenses._models import (
17+
from simcore_service_webserver.licenses._exceptions_handlers import _TO_HTTP_ERROR_MAP
18+
from simcore_service_webserver.licenses._models import (
2119
LicensedItemsBodyParams,
2220
LicensedItemsListQueryParams,
2321
LicensedItemsPathParams,
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
""" Helper script to generate OAS automatically
2+
"""
3+
4+
# pylint: disable=redefined-outer-name
5+
# pylint: disable=unused-argument
6+
# pylint: disable=unused-variable
7+
# pylint: disable=too-many-arguments
8+
9+
from typing import Annotated
10+
11+
from _common import as_query
12+
from fastapi import APIRouter, Depends
13+
from models_library.api_schemas_webserver.licensed_items_purchases import (
14+
LicensedItemPurchaseGet,
15+
)
16+
from models_library.generics import Envelope
17+
from models_library.rest_error import EnvelopedError
18+
from models_library.rest_pagination import Page
19+
from simcore_service_webserver._meta import API_VTAG
20+
from simcore_service_webserver.licenses._exceptions_handlers import _TO_HTTP_ERROR_MAP
21+
from simcore_service_webserver.licenses._models import (
22+
LicensedItemsPurchasesListQueryParams,
23+
LicensedItemsPurchasesPathParams,
24+
)
25+
from simcore_service_webserver.wallets._handlers import WalletsPathParams
26+
27+
router = APIRouter(
28+
prefix=f"/{API_VTAG}",
29+
tags=[
30+
"licenses",
31+
],
32+
responses={
33+
i.status_code: {"model": EnvelopedError} for i in _TO_HTTP_ERROR_MAP.values()
34+
},
35+
)
36+
37+
38+
@router.get(
39+
"/wallets/{wallet_id}/licensed-items-purchases",
40+
response_model=Page[LicensedItemPurchaseGet],
41+
tags=["wallets"],
42+
)
43+
async def list_wallet_licensed_items_purchases(
44+
_path: Annotated[WalletsPathParams, Depends()],
45+
_query: Annotated[as_query(LicensedItemsPurchasesListQueryParams), Depends()],
46+
):
47+
...
48+
49+
50+
@router.get(
51+
"/licensed-items-purchases/{licensed_item_purchase_id}",
52+
response_model=Envelope[LicensedItemPurchaseGet],
53+
)
54+
async def get_licensed_item_purchase(
55+
_path: Annotated[LicensedItemsPurchasesPathParams, Depends()],
56+
):
57+
...

api/specs/web-server/_projects_nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
ServiceResourcesDict,
2222
)
2323
from models_library.generics import Envelope
24+
from models_library.groups import GroupID
2425
from models_library.projects import ProjectID
2526
from models_library.projects_nodes_io import NodeID
26-
from models_library.users import GroupID
2727
from simcore_service_webserver._meta import API_VTAG
2828
from simcore_service_webserver.projects._crud_handlers import ProjectPathParams
2929
from simcore_service_webserver.projects._nodes_handlers import (

api/specs/web-server/_wallets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
WalletPaymentInitiated,
2828
)
2929
from models_library.generics import Envelope
30+
from models_library.groups import GroupID
3031
from models_library.rest_pagination import Page, PageQueryParameters
31-
from models_library.users import GroupID
3232
from models_library.wallets import WalletID
3333
from simcore_service_webserver._meta import API_VTAG
3434
from simcore_service_webserver.wallets._groups_api import WalletGroupGet

api/specs/web-server/openapi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@
3232
"_announcements",
3333
"_catalog",
3434
"_catalog_tags", # MUST BE after _catalog
35-
"_catalog_licensed_items",
3635
"_computations",
3736
"_exporter",
3837
"_folders",
3938
"_long_running_tasks",
39+
"_licensed_items",
40+
"_licensed_items_purchases",
4041
"_metamodeling",
4142
"_nih_sparc",
4243
"_nih_sparc_redirections",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ async def launch_instances(
181181
)
182182
instance_ids = [i["InstanceId"] for i in instances["Instances"]]
183183
_logger.info(
184-
"New instances launched: %s, waiting for them to start now...",
184+
"%s New instances launched: %s, waiting for them to start now...",
185+
len(instance_ids),
185186
instance_ids,
186187
)
187188

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import enum
2+
3+
4+
class GroupType(enum.Enum):
5+
"""
6+
standard: standard group, e.g. any group that is not a primary group or special group such as the everyone group
7+
primary: primary group, e.g. the primary group is the user own defined group that typically only contain the user (same as in linux)
8+
everyone: the only group for all users
9+
"""
10+
11+
STANDARD = "standard"
12+
PRIMARY = "primary"
13+
EVERYONE = "everyone"

packages/models-library/src/models_library/api_schemas_catalog/service_access_rights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from pydantic import BaseModel
22

3+
from ..groups import GroupID
34
from ..services import ServiceKey, ServiceVersion
4-
from ..users import GroupID
55

66

77
class ServiceAccessRightsGet(BaseModel):

0 commit comments

Comments
 (0)