Skip to content

Commit e4c9eb6

Browse files
authored
Merge pull request #3215 from SwissDataScienceCenter/release/v1.9.3
chore: release v1.9.3
2 parents 4dca1a4 + 04092fb commit e4c9eb6

File tree

6 files changed

+28
-4
lines changed

6 files changed

+28
-4
lines changed

CHANGES.rst

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

21+
`1.9.3 <https://github.com/SwissDataScienceCenter/renku-python/compare/v1.9.2...v1.9.3>`__ (2022-11-17)
22+
-------------------------------------------------------------------------------------------------------
23+
24+
Bug Fixes
25+
~~~~~~~~~
26+
27+
- **core:** fix git url regex matching taking too long
28+
(`#3213 <https://github.com/SwissDataScienceCenter/renku-python/issues/3213>`__)
29+
(`8245ce3 <https://github.com/SwissDataScienceCenter/renku-python/commit/8245ce3c7eb3170a0c544db875f4fc4918474b1d>`__)
30+
2131
`1.9.2 <https://github.com/SwissDataScienceCenter/renku-python/compare/v1.9.1...v1.9.2>`__ (2022-11-15)
2232
-------------------------------------------------------------------------------------------------------
2333

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: 1.9.2
6+
version: 1.9.3

helm-chart/renku-core/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ versions:
9797
fullnameOverride: ""
9898
image:
9999
repository: renku/renku-core
100-
tag: "v1.9.2"
100+
tag: "v1.9.3"
101101
pullPolicy: IfNotPresent
102102
v8:
103103
name: v8

renku/domain_model/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
_RE_PORT = r":(?P<port>\d+)"
4646

47-
_RE_PATHNAME = r"(?P<path>(([\w\-\~\.]+)/)*?(((?P<owner>([\w\-\.]+/?)+)/)?(?P<name>[\w\-\.]+)(\.git)?)?)/*"
47+
_RE_PATHNAME = r"(?P<path>((\~[\w\-\.]+)/)*?(((?P<owner>[\w\-\./]+?)/)?(?P<name>[\w\-\.]+)(\.git)?)?)/*"
4848

4949
_RE_PATHNAME_WITH_GITLAB = (
5050
r"(?P<path>((((gitlab/){0,1}|([\w\-\~\.]+/)*?)(?P<owner>([\w\-\.]+/)*[\w\-\.]+)/)?"

renku/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
except ImportError:
2525
from importlib_metadata import distribution # type: ignore
2626

27-
__version__ = "1.9.2"
27+
__version__ = "1.9.3"
2828
__template_version__ = "0.3.1"
2929
__minimum_project_version__ = "1.7.0"
3030

tests/core/models/test_git.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"""Git regex tests."""
1919

2020
import os
21+
import time
2122

2223
import pytest
2324

@@ -287,6 +288,15 @@
287288
"port": "1234",
288289
"env": "https://gitlab.example.com:1234/",
289290
},
291+
{
292+
"href": "https://gitlab.example.com/renku-test/test-2022-11-11-17-01-46.git",
293+
"scheme": "https",
294+
"hostname": "gitlab.example.com",
295+
"name": "test-2022-11-11-17-01-46",
296+
"path": "renku-test/test-2022-11-11-17-01-46.git",
297+
"owner": "renku-test",
298+
"env": "https://gitlab.example.com",
299+
},
290300
],
291301
)
292302
def test_valid_href(fields):
@@ -296,4 +306,8 @@ def test_valid_href(fields):
296306
if gitlab_env:
297307
os.environ["GITLAB_BASE_URL"] = gitlab_env
298308

309+
start = time.monotonic()
299310
assert GitURL(**fields) == GitURL.parse(fields["href"])
311+
duration = time.monotonic() - start
312+
313+
assert duration < 1.0, "Something wrong with the GitUrl regexes, probably catastrophic backtracking"

0 commit comments

Comments
 (0)