gitlab-runner-tart-driver 0.3.8__py3-none-any.whl → 0.3.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- gitlab_runner_tart_driver/__init__.py +1 -1
- gitlab_runner_tart_driver/commands/cleanup.py +6 -2
- gitlab_runner_tart_driver/commands/prepare.py +24 -11
- {gitlab_runner_tart_driver-0.3.8.dist-info → gitlab_runner_tart_driver-0.3.10.dist-info}/METADATA +1 -1
- {gitlab_runner_tart_driver-0.3.8.dist-info → gitlab_runner_tart_driver-0.3.10.dist-info}/RECORD +9 -9
- {gitlab_runner_tart_driver-0.3.8.dist-info → gitlab_runner_tart_driver-0.3.10.dist-info}/LICENSE.txt +0 -0
- {gitlab_runner_tart_driver-0.3.8.dist-info → gitlab_runner_tart_driver-0.3.10.dist-info}/WHEEL +0 -0
- {gitlab_runner_tart_driver-0.3.8.dist-info → gitlab_runner_tart_driver-0.3.10.dist-info}/entry_points.txt +0 -0
- {gitlab_runner_tart_driver-0.3.8.dist-info → gitlab_runner_tart_driver-0.3.10.dist-info}/top_level.txt +0 -0
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.3.
|
1
|
+
__version__ = "0.3.10"
|
@@ -24,8 +24,12 @@ def cleanup(tart_executable):
|
|
24
24
|
except:
|
25
25
|
click.secho(f"[ERROR] failed to stop '{tart_vm_name}'", fg="red")
|
26
26
|
|
27
|
-
|
28
|
-
|
27
|
+
# remove the VM
|
28
|
+
try:
|
29
|
+
click.echo(f"[INFO] deleting '{tart_vm_name}'")
|
30
|
+
tart.delete(tart_vm_name)
|
31
|
+
except:
|
32
|
+
click.secho(f"[ERROR] failed to delete '{tart_vm_name}'", fg="red")
|
29
33
|
|
30
34
|
|
31
35
|
def _remove_stopped_vms(tart, pattern):
|
@@ -240,17 +240,30 @@ def prepare(
|
|
240
240
|
for v in volumes:
|
241
241
|
volume_mounts.append(TartVolume.from_string(v))
|
242
242
|
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
243
|
+
try:
|
244
|
+
_create_vm(
|
245
|
+
tart_client=tart,
|
246
|
+
vm_name=tart_vm_name,
|
247
|
+
volume_mounts=volume_mounts,
|
248
|
+
params=p,
|
249
|
+
)
|
250
|
+
except:
|
251
|
+
click.secho(f"[ERROR] Failed to create VM '{tart_vm_name}'", fg="red")
|
252
|
+
sys.exit(system_failure_exit_code)
|
253
|
+
|
254
|
+
try:
|
255
|
+
_get_vm_ip(tart_client=tart, vm_name=tart_vm_name, params=p)
|
256
|
+
except:
|
257
|
+
click.secho(f"[ERROR] Failed to get IP of VM '{tart_vm_name}'", fg="red")
|
258
|
+
sys.exit(system_failure_exit_code)
|
259
|
+
|
260
|
+
try:
|
261
|
+
ssh_session = _create_ssh_session(
|
262
|
+
tart_client=tart, vm_name=tart_vm_name, params=p, system_failure_exit_code=system_failure_exit_code
|
263
|
+
)
|
264
|
+
except:
|
265
|
+
click.secho(f"[ERROR] Failed to establish a ssh connection with VM '{tart_vm_name}'", fg="red")
|
266
|
+
sys.exit(system_failure_exit_code)
|
254
267
|
|
255
268
|
try:
|
256
269
|
ssh_session.exec_ssh_command(
|
{gitlab_runner_tart_driver-0.3.8.dist-info → gitlab_runner_tart_driver-0.3.10.dist-info}/RECORD
RENAMED
@@ -1,10 +1,10 @@
|
|
1
|
-
gitlab_runner_tart_driver/__init__.py,sha256=
|
1
|
+
gitlab_runner_tart_driver/__init__.py,sha256=h9TycTJK2pK49s87IMbNRq4lTqRt3xctcJl2jxCe3sU,23
|
2
2
|
gitlab_runner_tart_driver/__main__.py,sha256=FiyMv64vDC-R8i3CGEP9QP48djZFHm7utyChwZJWCeY,107
|
3
3
|
gitlab_runner_tart_driver/cli.py,sha256=rCtFzi7i4JUX7VXteBHyII4sEbMzpn8SIpyjyKrQCBI,592
|
4
4
|
gitlab_runner_tart_driver/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
-
gitlab_runner_tart_driver/commands/cleanup.py,sha256=
|
5
|
+
gitlab_runner_tart_driver/commands/cleanup.py,sha256=GIXqweIKhcZCajK-ZnR5vQDmLjFp-P_pcrY3BllIPAc,1554
|
6
6
|
gitlab_runner_tart_driver/commands/config.py,sha256=cacJ9ms5r3nZGZ_sS2d21Uoz7S-bMjB__lORUmeXZ-4,760
|
7
|
-
gitlab_runner_tart_driver/commands/prepare.py,sha256=
|
7
|
+
gitlab_runner_tart_driver/commands/prepare.py,sha256=zdIgDPJDHB263tJaD9dcgx9NB-roTa-5w89G1N-F0tI,14336
|
8
8
|
gitlab_runner_tart_driver/commands/run.py,sha256=uGcCXbd1QQIsLh1uPlaQHARCIOye5VvGxZswNG95tVI,3399
|
9
9
|
gitlab_runner_tart_driver/modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
gitlab_runner_tart_driver/modules/gitlab_custom_command_config.py,sha256=XvE83QmQUcqtVMYZY3okGOgO86DBX6Y7xhXNenmKxFY,3086
|
@@ -12,9 +12,9 @@ gitlab_runner_tart_driver/modules/gitlab_custom_driver_config.py,sha256=ujxlzP1Z
|
|
12
12
|
gitlab_runner_tart_driver/modules/tart.py,sha256=rD6IPtpz57dwsPGVBWaeKeVoqI1MoBvdtkqozXgmAxA,9914
|
13
13
|
gitlab_runner_tart_driver/modules/utils.py,sha256=7ipKjy_5tC5iW67Na_A9XhF4o2lKcAqO8LRTTSJKNd0,923
|
14
14
|
gitlab_runner_tart_driver/scripts/install-gitlab-runner.sh.j2,sha256=-rBzxZ92w7lMrTCVcjMHhlZgqPIK1RJKVoOc2wjZvck,2533
|
15
|
-
gitlab_runner_tart_driver-0.3.
|
16
|
-
gitlab_runner_tart_driver-0.3.
|
17
|
-
gitlab_runner_tart_driver-0.3.
|
18
|
-
gitlab_runner_tart_driver-0.3.
|
19
|
-
gitlab_runner_tart_driver-0.3.
|
20
|
-
gitlab_runner_tart_driver-0.3.
|
15
|
+
gitlab_runner_tart_driver-0.3.10.dist-info/LICENSE.txt,sha256=TiYXQpEfbzcPBNGb7k1NslUngq_un-5cxGyT4W1S_f4,3303
|
16
|
+
gitlab_runner_tart_driver-0.3.10.dist-info/METADATA,sha256=1AyJH9ET-Xqm-dfdgGDJME-wyE7glS--goO2nMiOsqY,20706
|
17
|
+
gitlab_runner_tart_driver-0.3.10.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
18
|
+
gitlab_runner_tart_driver-0.3.10.dist-info/entry_points.txt,sha256=xmvpGQf1wvFPy5wqDWXu8k5FD_k9KkCNCkpuworTsr0,82
|
19
|
+
gitlab_runner_tart_driver-0.3.10.dist-info/top_level.txt,sha256=JjRzCs2sr24xG4SV_5tIBPpNC1Tec7I4AbK4IKMDqOc,26
|
20
|
+
gitlab_runner_tart_driver-0.3.10.dist-info/RECORD,,
|
{gitlab_runner_tart_driver-0.3.8.dist-info → gitlab_runner_tart_driver-0.3.10.dist-info}/LICENSE.txt
RENAMED
File without changes
|
{gitlab_runner_tart_driver-0.3.8.dist-info → gitlab_runner_tart_driver-0.3.10.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|