Skip to content

Commit 1caab15

Browse files
authored
Merge branch 'master' into enh/licensed-items-from-backend
2 parents 2144add + 1dcd369 commit 1caab15

File tree

25 files changed

+1095
-258
lines changed

25 files changed

+1095
-258
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ jobs:
3131
enable-cache: false
3232
- name: checkout source branch
3333
uses: actions/checkout@v4
34-
- name: Regenerate specs and check
34+
- name: Generate openapi specs
3535
run: |
3636
make devenv
3737
source .venv/bin/activate
3838
make openapi-specs
39+
- name: Check openapi specs are up to date
40+
run: |
3941
if ! ./ci/github/helpers/openapi-specs-diff.bash diff \
40-
https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/refs/heads/${{ github.event.pull_request.head.ref }} \
42+
https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.after }} \
4143
.; then \
4244
echo "::error:: OAS are not up to date. Run 'make openapi-specs' to update them"; exit 1; \
4345
fi
@@ -57,7 +59,7 @@ jobs:
5759
- name: check api-server backwards compatibility
5860
run: |
5961
./scripts/openapi-diff.bash breaking --fail-on ERR\
60-
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/refs/heads/${{ github.event.pull_request.base.ref }}/services/api-server/openapi.json \
62+
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/${{ github.event.after }}/services/api-server/openapi.json \
6163
/specs/services/api-server/openapi.json
6264
6365
all-oas-breaking:
@@ -76,5 +78,5 @@ jobs:
7678
- name: Check openapi-specs backwards compatibility
7779
run: |
7880
./ci/github/helpers/openapi-specs-diff.bash breaking \
79-
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/refs/heads/${{ github.event.pull_request.base.ref }} \
81+
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/${{ github.event.after }} \
8082
.

packages/service-integration/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@ This is the o2sparc's service integration library or ``ooil`` in short
55

66

77
SEE how is it used in Makefiles in https://github.com/ITISFoundation/cookiecutter-osparc-service
8+
9+
10+
#### What is the .osparc folder and its content?
11+
'osparc config' is a set of stardard file forms (yaml) that the user fills provides in order to describe how her service works and integrates with osparc. It may contain:
12+
- config files are stored under '.osparc/' folder in the root repo folder (analogous to other configs like .github, .vscode, etc)
13+
- configs are parsed and validated into pydantic models
14+
- models can be serialized/deserialized into label annotations on images. This way, the config is attached to the service during it's entire lifetime.
15+
- config should provide enough information about that context to allow building an image and running a container on a single command call.

packages/service-integration/src/service_integration/cli/_compose_spec.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ def create_compose(
192192
if file_path.exists():
193193
configs_kwargs_map[config_name][arg_name] = file_path
194194

195+
# warn about subfolders without metadata.yml
196+
for subdir in filter(lambda p: p.is_dir(), basedir.rglob("*")):
197+
if not (subdir / "metadata.yml").exists():
198+
relative_subdir = subdir.relative_to(basedir)
199+
rich.print(
200+
f"[warning] Subfolder '{relative_subdir}' does not contain a 'metadata.yml' file. Skipping."
201+
)
202+
195203
if not configs_kwargs_map:
196204
rich.print(f"[warning] No config files were found in '{config_path}'")
197205

0 commit comments

Comments
 (0)