Skip to content

Commit 68dd55a

Browse files
authored
replace uuid in the ui section as well (#1912)
replace uuid in the ui section as well
1 parent 6ca7ebc commit 68dd55a

File tree

8 files changed

+56
-46
lines changed

8 files changed

+56
-46
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ jobs:
238238
sudo ./ci/github/helpers/setup_docker_compose.bash
239239
./ci/github/helpers/setup_docker_experimental.bash
240240
./ci/github/helpers/setup_docker_buildx.bash
241-
echo ::set-env name=DOCKER_BUILDX::1
241+
echo "DOCKER_BUILDX=1" >> $GITHUB_ENV
242242
- name: setup python environment
243243
uses: actions/[email protected]
244244
with:

ci/github/integration-testing/sidecar.bash

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,28 @@ DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)
88
export DOCKER_IMAGE_TAG
99

1010
install() {
11-
bash ci/helpers/ensure_python_pip.bash
12-
pushd services/sidecar; pip3 install -r requirements/ci.txt; popd;
13-
pip list -v
14-
make pull-version || ( (make pull-cache || true) && make build-x tag-version)
15-
make info-images
11+
bash ci/helpers/ensure_python_pip.bash
12+
pushd services/sidecar
13+
pip3 install -r requirements/ci.txt
14+
popd
15+
pip list -v
16+
make pull-version || ( (make pull-cache || true) && make build-x tag-version)
17+
make info-images
1618
}
1719

1820
test() {
19-
pytest --cov=simcore_service_sidecar --durations=10 --cov-append \
20-
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
21-
-v -m "not travis" services/sidecar/tests/integration
21+
pytest --cov=simcore_service_sidecar --durations=10 --cov-append \
22+
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
23+
-v -m "not travis" services/sidecar/tests/integration --log-level=DEBUG
2224
}
2325

2426
clean_up() {
25-
docker images
26-
make down
27+
docker images
28+
make down
2729
}
2830

2931
# Check if the function exists (bash specific)
30-
if declare -f "$1" > /dev/null
31-
then
32+
if declare -f "$1" >/dev/null; then
3233
# call arguments verbatim
3334
"$@"
3435
else

ci/github/integration-testing/simcore-sdk.bash

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,30 @@ DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)
77
export DOCKER_IMAGE_TAG
88

99
install() {
10-
bash ci/helpers/ensure_python_pip.bash
11-
pushd packages/simcore-sdk; pip3 install -r requirements/ci.txt; popd;
12-
pip list -v
13-
# pull the test images if registry is set up, else build the images
14-
make pull-version || ( (make pull-cache || true) && make build-x tag-version)
15-
make info-images
16-
# pip3 install services/storage/client-sdk/python
10+
bash ci/helpers/ensure_python_pip.bash
11+
pushd packages/simcore-sdk
12+
pip3 install -r requirements/ci.txt
13+
popd
14+
pip list -v
15+
# pull the test images if registry is set up, else build the images
16+
make pull-version || ( (make pull-cache || true) && make build-x tag-version)
17+
make info-images
18+
# pip3 install services/storage/client-sdk/python
1719
}
1820

1921
test() {
20-
pytest --cov=simcore_sdk --durations=10 --cov-append \
21-
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
22-
-v -m "not travis" packages/simcore-sdk/tests/integration
22+
pytest --cov=simcore_sdk --durations=10 --cov-append \
23+
--color=yes --cov-report=term-missing --cov-report=xml --cov-config=.coveragerc \
24+
-v -m "not travis" packages/simcore-sdk/tests/integration --log-level=DEBUG
2325
}
2426

2527
clean_up() {
26-
docker images
27-
make down
28+
docker images
29+
make down
2830
}
2931

3032
# Check if the function exists (bash specific)
31-
if declare -f "$1" > /dev/null
32-
then
33+
if declare -f "$1" >/dev/null; then
3334
# call arguments verbatim
3435
"$@"
3536
else

ci/github/system-testing/environment-setup.bash

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,23 @@ set -euo pipefail
66
IFS=$'\n\t'
77

88
install() {
9-
bash ci/helpers/ensure_python_pip.bash
10-
pushd tests/environment-setup; pip3 install -r requirements/ci.txt; popd
11-
make .env
9+
bash ci/helpers/ensure_python_pip.bash
10+
pushd tests/environment-setup
11+
pip3 install -r requirements/ci.txt
12+
popd
13+
make .env
1214
}
1315

1416
test() {
15-
pytest --color=yes -v tests/environment-setup
17+
pytest --color=yes -v tests/environment-setup --log-level=DEBUG
1618
}
1719

1820
clean_up() {
19-
ls -la tests/environment-setup
21+
ls -la tests/environment-setup
2022
}
2123

2224
# Check if the function exists (bash specific)
23-
if declare -f "$1" > /dev/null
24-
then
25+
if declare -f "$1" >/dev/null; then
2526
# call arguments verbatim
2627
"$@"
2728
else

ci/github/system-testing/swarm-deploy.bash

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,28 @@ DOCKER_IMAGE_TAG=$(exec ci/helpers/build_docker_image_tag.bash)
1414
export DOCKER_IMAGE_TAG
1515

1616
install() {
17-
bash ci/helpers/ensure_python_pip.bash
18-
pushd tests/swarm-deploy; pip3 install -r requirements/ci.txt; popd
19-
make pull-version || ( (make pull-cache || true) && make build-x tag-version)
20-
make .env
21-
pip list -v
22-
make info-images
17+
bash ci/helpers/ensure_python_pip.bash
18+
pushd tests/swarm-deploy
19+
pip3 install -r requirements/ci.txt
20+
popd
21+
make pull-version || ( (make pull-cache || true) && make build-x tag-version)
22+
make .env
23+
pip list -v
24+
make info-images
2325
}
2426

2527
test() {
26-
pytest --color=yes --cov-report=term-missing -v tests/swarm-deploy
28+
pytest --color=yes --cov-report=term-missing -v tests/swarm-deploy --log-level=DEBUG
2729
}
2830

2931
clean_up() {
30-
docker images
31-
make down
32-
make leave
32+
docker images
33+
make down
34+
make leave
3335
}
3436

3537
# Check if the function exists (bash specific)
36-
if declare -f "$1" > /dev/null
37-
then
38+
if declare -f "$1" >/dev/null; then
3839
# call arguments verbatim
3940
"$@"
4041
else

services/web/server/src/simcore_service_webserver/projects/projects_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ def _replace_uuids(node):
5656
return node
5757

5858
project_copy["workbench"] = _replace_uuids(project_copy.get("workbench", {}))
59+
if "ui" in project_copy:
60+
project_copy["ui"]["workbench"] = _replace_uuids(
61+
project_copy["ui"].get("workbench", {})
62+
)
5963
return project_copy, nodes_map
6064

6165

services/web/server/tests/unit/with_dbs/fast/test_access_to_studies.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ def _assert_same_projects(got: Dict, expected: Dict):
190190
"uuid",
191191
"workbench",
192192
"accessRights",
193+
"ui",
193194
]
194195
)
195196
for key in expected.keys():

services/web/server/tests/unit/with_dbs/slow/test_projects.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,7 @@ async def _new_project(
437437
"lastChangeDate",
438438
"accessRights",
439439
"workbench" if from_template else None,
440+
"ui" if from_template else None,
440441
]
441442

442443
for key in new_project.keys():

0 commit comments

Comments
 (0)