Skip to content

Commit ae3618c

Browse files
authored
Merge pull request #3688 from SwissDataScienceCenter/release/v2.9.1
chore: release v2.9.1
2 parents af89ce6 + fafec5a commit ae3618c

File tree

5 files changed

+34
-4
lines changed

5 files changed

+34
-4
lines changed

CHANGES.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,17 @@
1818
Changes
1919
=======
2020

21+
`2.9.1 <https://github.com/SwissDataScienceCenter/renku-python/compare/v2.9.0...v2.9.1>`__ (2024-01-18)
22+
-------------------------------------------------------------------------------------------------------
23+
24+
Bug Fixes
25+
~~~~~~~~~
26+
27+
- **svc:** fix migration not working with old template metadata
28+
(`#3687 <https://github.com/SwissDataScienceCenter/renku-python/issues/3687>`__)
29+
(`398ec2e <https://github.com/SwissDataScienceCenter/renku-python/commit/398ec2ef35ec296aa55f3cdd568e35eaa360cd89>`__)
30+
31+
2132
`2.9.0 <https://github.com/SwissDataScienceCenter/renku-python/compare/v2.8.2...v2.9.0>`__ (2024-01-17)
2233
-------------------------------------------------------------------------------------------------------
2334

helm-chart/renku-core/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ appVersion: "1.0"
33
description: A Helm chart for Kubernetes
44
name: renku-core
55
icon: https://avatars0.githubusercontent.com/u/53332360?s=400&u=a4311d22842343604ef61a8c8a1e5793209a67e9&v=4
6-
version: 2.9.0
6+
version: 2.9.1

helm-chart/renku-core/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ global:
88
versions:
99
latest:
1010
image:
11-
tag: v2.9.0
11+
tag: v2.9.1

renku/core/migration/migrate.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,12 @@ def migrate_project(
142142
except Exception as e:
143143
raise TemplateUpdateError("Couldn't update from template.") from e
144144

145-
if not skip_docker_update:
145+
if (
146+
not skip_docker_update
147+
and project
148+
and hasattr(project, "template_metadata")
149+
and isinstance(project.template_metadata, ProjectTemplateMetadata)
150+
):
146151
try:
147152
docker_updated, _, _ = update_dockerfile()
148153
except DockerfileUpdateError:

renku/ui/service/controllers/cache_migrate_project.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,27 @@ def execute_migration(
3030
project_path, force_template_update, skip_template_update, skip_docker_update, skip_migrations, commit_message
3131
):
3232
"""Execute project migrations."""
33-
from renku.command.migrate import migrate_project_command
33+
from renku.command.migrate import (
34+
AUTOMATED_TEMPLATE_UPDATE_SUPPORTED,
35+
DOCKERFILE_UPDATE_POSSIBLE,
36+
TEMPLATE_UPDATE_POSSIBLE,
37+
check_project,
38+
migrate_project_command,
39+
)
3440

3541
worker_log.debug(f"migrating {project_path}")
3642

3743
communicator = ServiceCallback()
3844

3945
with renku_project_context(project_path):
46+
status = check_project().build().execute().output
47+
48+
template_update_possible = status & TEMPLATE_UPDATE_POSSIBLE and status & AUTOMATED_TEMPLATE_UPDATE_SUPPORTED
49+
docker_update_possible = status & DOCKERFILE_UPDATE_POSSIBLE
50+
51+
skip_docker_update = skip_docker_update or not docker_update_possible
52+
skip_template_update = skip_template_update or not template_update_possible
53+
4054
result = (
4155
migrate_project_command()
4256
.with_commit(message=commit_message)

0 commit comments

Comments
 (0)