File tree Expand file tree Collapse file tree 6 files changed +28
-4
lines changed Expand file tree Collapse file tree 6 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 18
18
Changes
19
19
=======
20
20
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
+
21
31
`1.9.2 <https://github.com/SwissDataScienceCenter/renku-python/compare/v1.9.1...v1.9.2 >`__ (2022-11-15)
22
32
-------------------------------------------------------------------------------------------------------
23
33
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ appVersion: "1.0"
3
3
description : A Helm chart for Kubernetes
4
4
name : renku-core
5
5
icon : https://avatars0.githubusercontent.com/u/53332360?s=400&u=a4311d22842343604ef61a8c8a1e5793209a67e9&v=4
6
- version : 1.9.2
6
+ version : 1.9.3
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ versions:
97
97
fullnameOverride : " "
98
98
image :
99
99
repository : renku/renku-core
100
- tag : " v1.9.2 "
100
+ tag : " v1.9.3 "
101
101
pullPolicy : IfNotPresent
102
102
v8 :
103
103
name : v8
Original file line number Diff line number Diff line change 44
44
45
45
_RE_PORT = r":(?P<port>\d+)"
46
46
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)?)?)/*"
48
48
49
49
_RE_PATHNAME_WITH_GITLAB = (
50
50
r"(?P<path>((((gitlab/){0,1}|([\w\-\~\.]+/)*?)(?P<owner>([\w\-\.]+/)*[\w\-\.]+)/)?"
Original file line number Diff line number Diff line change 24
24
except ImportError :
25
25
from importlib_metadata import distribution # type: ignore
26
26
27
- __version__ = "1.9.2 "
27
+ __version__ = "1.9.3 "
28
28
__template_version__ = "0.3.1"
29
29
__minimum_project_version__ = "1.7.0"
30
30
Original file line number Diff line number Diff line change 18
18
"""Git regex tests."""
19
19
20
20
import os
21
+ import time
21
22
22
23
import pytest
23
24
287
288
"port" : "1234" ,
288
289
"env" : "https://gitlab.example.com:1234/" ,
289
290
},
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
+ },
290
300
],
291
301
)
292
302
def test_valid_href (fields ):
@@ -296,4 +306,8 @@ def test_valid_href(fields):
296
306
if gitlab_env :
297
307
os .environ ["GITLAB_BASE_URL" ] = gitlab_env
298
308
309
+ start = time .monotonic ()
299
310
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"
You can’t perform that action at this time.
0 commit comments