Skip to content

Commit fd62ccf

Browse files
authored
💣 Remove osparc-gateway-server and clusters endpoints (#6881)
1 parent f9f2148 commit fd62ccf

File tree

165 files changed

+4400
-13978
lines changed

Some content is hidden

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

165 files changed

+4400
-13978
lines changed

.codecov.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,6 @@ component_management:
9494
- component_id: invitations
9595
paths:
9696
- services/invitations/**
97-
- component_id: osparc_gateway_server
98-
paths:
99-
- services/osparc-gateway-server/**
10097
- component_id: payments
10198
paths:
10299
- services/payments/**

.env-devel

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ WB_API_WEBSERVER_PORT=8080
259259
WB_GC_ACTIVITY=null
260260
WB_GC_ANNOUNCEMENTS=0
261261
WB_GC_CATALOG=null
262-
WB_GC_CLUSTERS=0
263262
WB_GC_DB_LISTENER=0
264263
WB_GC_DIAGNOSTICS=null
265264
WB_GC_EMAIL=null
@@ -292,7 +291,6 @@ WB_GC_WALLETS=0
292291
WB_DB_EL_ACTIVITY=null
293292
WB_DB_EL_ANNOUNCEMENTS=0
294293
WB_DB_EL_CATALOG=null
295-
WB_DB_EL_CLUSTERS=0
296294
WB_DB_EL_DB_LISTENER=1
297295
WB_DB_EL_DIAGNOSTICS=null
298296
WB_DB_EL_EMAIL=null
@@ -359,7 +357,6 @@ TWILIO_COUNTRY_CODES_W_ALPHANUMERIC_SID_SUPPORT=["41"]
359357
WEBSERVER_ACTIVITY=null
360358
WEBSERVER_ANNOUNCEMENTS=1
361359
WEBSERVER_CATALOG={}
362-
WEBSERVER_CLUSTERS=0
363360
WEBSERVER_CREDIT_COMPUTATION_ENABLED=1
364361
WEBSERVER_DB_LISTENER=0
365362
WEBSERVER_DEV_FEATURES_ENABLED=0

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Makefile @pcrespov @sanderegg
3333
/services/efs-guardian/ @matusdrobuliak66
3434
/services/invitations/ @pcrespov
3535
/services/migration/ @pcrespov
36-
/services/osparc-gateway-server/ @sanderegg
3736
/services/payments/ @pcrespov @matusdrobuliak66
3837
/services/resource-usage-tracker/ @matusdrobuliak66
3938
/services/static-webserver/ @GitHK

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

Lines changed: 0 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ jobs:
7575
efs-guardian: ${{ steps.filter.outputs.efs-guardian }}
7676
invitations: ${{ steps.filter.outputs.invitations }}
7777
migration: ${{ steps.filter.outputs.migration }}
78-
osparc-gateway-server: ${{ steps.filter.outputs.osparc-gateway-server }}
7978
payments: ${{ steps.filter.outputs.payments }}
8079
dynamic-scheduler: ${{ steps.filter.outputs.dynamic-scheduler }}
8180
resource-usage-tracker: ${{ steps.filter.outputs.resource-usage-tracker }}
@@ -222,12 +221,6 @@ jobs:
222221
- 'packages/**'
223222
- 'services/migration/**'
224223
- 'services/docker-compose*'
225-
osparc-gateway-server:
226-
- 'packages/**'
227-
- 'services/osparc-gateway-server/**'
228-
- 'services/docker-compose*'
229-
- 'scripts/mypy/*'
230-
- 'mypy.ini'
231224
payments:
232225
- 'packages/**'
233226
- 'services/payments/**'
@@ -1161,64 +1154,6 @@ jobs:
11611154
with:
11621155
token: ${{ secrets.CODECOV_TOKEN }}
11631156

1164-
unit-test-osparc-gateway-server:
1165-
needs: changes
1166-
if: ${{ needs.changes.outputs.osparc-gateway-server == 'true' || github.event_name == 'push' }}
1167-
timeout-minutes: 18 # if this timeout gets too small, then split the tests
1168-
name: "[unit] osparc-gateway-server"
1169-
runs-on: ${{ matrix.os }}
1170-
strategy:
1171-
matrix:
1172-
python: ["3.11"]
1173-
os: [ubuntu-22.04]
1174-
fail-fast: false
1175-
steps:
1176-
- uses: actions/checkout@v4
1177-
- name: setup docker buildx
1178-
id: buildx
1179-
uses: docker/setup-buildx-action@v3
1180-
with:
1181-
driver: docker-container
1182-
- name: setup python environment
1183-
uses: actions/setup-python@v5
1184-
with:
1185-
python-version: ${{ matrix.python }}
1186-
- name: install uv
1187-
uses: astral-sh/setup-uv@v4
1188-
with:
1189-
version: "0.4.x"
1190-
enable-cache: false
1191-
cache-dependency-glob: "**/osparc-gateway-server/requirements/ci.txt"
1192-
- name: show system version
1193-
run: ./ci/helpers/show_system_versions.bash
1194-
- name: install
1195-
run: |
1196-
make devenv
1197-
source .venv/bin/activate && \
1198-
pushd services/osparc-gateway-server && \
1199-
make install-ci
1200-
- name: typecheck
1201-
run: |
1202-
source .venv/bin/activate && \
1203-
pushd services/osparc-gateway-server && \
1204-
make mypy
1205-
- name: test
1206-
if: ${{ !cancelled() }}
1207-
run: |
1208-
source .venv/bin/activate && \
1209-
pushd services/osparc-gateway-server && \
1210-
make test-ci-unit
1211-
- uses: codecov/[email protected]
1212-
env:
1213-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
1214-
with:
1215-
flags: unittests #optional
1216-
- name: Upload test results to Codecov
1217-
if: ${{ !cancelled() }}
1218-
uses: codecov/test-results-action@v1
1219-
with:
1220-
token: ${{ secrets.CODECOV_TOKEN }}
1221-
12221157
unit-test-payments:
12231158
needs: changes
12241159
if: ${{ needs.changes.outputs.payments == 'true' || github.event_name == 'push' }}
@@ -1965,7 +1900,6 @@ jobs:
19651900
unit-test-models-library,
19661901
unit-test-common-library,
19671902
unit-test-notifications-library,
1968-
unit-test-osparc-gateway-server,
19691903
unit-test-payments,
19701904
unit-test-dynamic-scheduler,
19711905
unit-test-postgres-database,
@@ -2317,84 +2251,6 @@ jobs:
23172251
with:
23182252
flags: integrationtests #optional
23192253

2320-
integration-test-osparc-gateway-server:
2321-
needs: [changes, build-test-images]
2322-
if: ${{ needs.changes.outputs.anything-py == 'true' || needs.changes.outputs.osparc-gateway-server == 'true' || github.event_name == 'push' }}
2323-
timeout-minutes: 30 # if this timeout gets too small, then split the tests
2324-
name: "[int] osparc-gateway-server"
2325-
runs-on: ${{ matrix.os }}
2326-
strategy:
2327-
matrix:
2328-
python: ["3.11"]
2329-
os: [ubuntu-22.04]
2330-
fail-fast: false
2331-
steps:
2332-
- uses: actions/checkout@v4
2333-
- name: setup docker buildx
2334-
id: buildx
2335-
uses: docker/setup-buildx-action@v3
2336-
with:
2337-
driver: docker-container
2338-
2339-
- name: setup python environment
2340-
uses: actions/setup-python@v5
2341-
with:
2342-
python-version: ${{ matrix.python }}
2343-
- name: expose github runtime for buildx
2344-
uses: crazy-max/ghaction-github-runtime@v3
2345-
# FIXME: Workaround for https://github.com/actions/download-artifact/issues/249
2346-
- name: download docker images with retry
2347-
uses: Wandalen/wretry.action@master
2348-
with:
2349-
action: actions/download-artifact@v4
2350-
with: |
2351-
name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}
2352-
path: /${{ runner.temp }}/build
2353-
attempt_limit: 5
2354-
attempt_delay: 1000
2355-
- name: load docker images
2356-
run: make load-images local-src=/${{ runner.temp }}/build
2357-
- name: install uv
2358-
uses: astral-sh/setup-uv@v4
2359-
with:
2360-
version: "0.4.x"
2361-
enable-cache: false
2362-
cache-dependency-glob: "**/osparc-gateway-server/requirements/ci.txt"
2363-
- name: show system version
2364-
run: ./ci/helpers/show_system_versions.bash
2365-
- name: install
2366-
run: |
2367-
make devenv && \
2368-
source .venv/bin/activate && \
2369-
pushd services/osparc-gateway-server && \
2370-
make install-ci
2371-
- name: integration-test
2372-
run: |
2373-
source .venv/bin/activate && \
2374-
pushd services/osparc-gateway-server && \
2375-
make test-ci-integration
2376-
- name: system-test
2377-
run: |
2378-
source .venv/bin/activate && \
2379-
pushd services/osparc-gateway-server && \
2380-
make test-system
2381-
- name: upload failed tests logs
2382-
if: ${{ !cancelled() }}
2383-
uses: actions/upload-artifact@v4
2384-
with:
2385-
name: ${{ github.job }}_docker_logs
2386-
path: ./services/director-v2/test_failures
2387-
- name: cleanup
2388-
if: ${{ !cancelled() }}
2389-
run: |
2390-
pushd services/osparc-gateway-server && \
2391-
make down
2392-
- uses: codecov/[email protected]
2393-
env:
2394-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2395-
with:
2396-
flags: integrationtests #optional
2397-
23982254
integration-test-simcore-sdk:
23992255
needs: [changes, build-test-images]
24002256
if: ${{ needs.changes.outputs.anything-py == 'true' || needs.changes.outputs.simcore-sdk == 'true' || github.event_name == 'push' }}
@@ -2466,7 +2322,6 @@ jobs:
24662322
integration-test-director-v2-01,
24672323
integration-test-director-v2-02,
24682324
integration-test-dynamic-sidecar,
2469-
integration-test-osparc-gateway-server,
24702325
integration-test-simcore-sdk,
24712326
integration-test-webserver-01,
24722327
integration-test-webserver-02,

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ SERVICES_NAMES_TO_BUILD := \
4444
efs-guardian \
4545
invitations \
4646
migration \
47-
osparc-gateway-server \
4847
payments \
4948
resource-usage-tracker \
5049
dynamic-scheduler \

api/specs/web-server/_cluster.py

Lines changed: 0 additions & 104 deletions
This file was deleted.

api/specs/web-server/_computations.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
from fastapi import APIRouter, status
2+
from models_library.api_schemas_directorv2.comp_tasks import ComputationGet
23
from models_library.api_schemas_webserver.computations import ComputationStart
34
from models_library.generics import Envelope
45
from models_library.projects import ProjectID
56
from simcore_service_webserver._meta import API_VTAG
6-
from simcore_service_webserver.director_v2._handlers import (
7-
ComputationTaskGet,
8-
_ComputationStarted,
9-
)
7+
from simcore_service_webserver.director_v2._handlers import _ComputationStarted
108

119
router = APIRouter(
1210
prefix=f"/{API_VTAG}",
@@ -19,7 +17,7 @@
1917

2018
@router.get(
2119
"/computations/{project_id}",
22-
response_model=Envelope[ComputationTaskGet],
20+
response_model=Envelope[ComputationGet],
2321
)
2422
async def get_computation(project_id: ProjectID):
2523
...

api/specs/web-server/openapi.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"_announcements",
3232
"_catalog",
3333
"_catalog_tags", # MUST BE after _catalog
34-
"_cluster",
3534
"_computations",
3635
"_exporter",
3736
"_folders",

0 commit comments

Comments
 (0)