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 1818Changes
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
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ appVersion: "1.0"
33description : A Helm chart for Kubernetes
44name : renku-core
55icon : 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:
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
Original file line number Diff line number Diff line change 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\-\.]+)/)?"
Original file line number Diff line number Diff line change 2424except 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
Original file line number Diff line number Diff line change 1818"""Git regex tests."""
1919
2020import os
21+ import time
2122
2223import pytest
2324
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)
292302def 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"
You can’t perform that action at this time.
0 commit comments