atex 2.0.dev1__py3-none-any.whl → 2.0.dev2__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.
atex/cli/shvirt/common.py CHANGED
@@ -13,7 +13,7 @@ def make_helper_cmd(args):
13
13
  "ssh",
14
14
  "-oLogLevel=ERROR",
15
15
  "-oStrictHostKeyChecking=no", "-oUserKnownHostsFile=/dev/null",
16
- "-oConnectionAttempts=3", "-oServerAliveCountMax=4", "-oServerAliveInterval=5",
16
+ "-oConnectionAttempts=3", "-oServerAliveCountMax=10", "-oServerAliveInterval=30",
17
17
  "-oTCPKeepAlive=no", "-oEscapeChar=none", "-oRequestTTY=no",
18
18
  f"-oIdentityFile={str(Path(args.helper_sshkey).absolute())}",
19
19
  f"-oUser={args.helper_user}", f"-oHostname={args.helper_host}",
atex/cli/virt/install.py CHANGED
@@ -129,7 +129,6 @@ def install(args):
129
129
  "--graphics", "none",
130
130
  "--console", "pty",
131
131
  "--rng", "/dev/urandom",
132
- "--os-variant", "rhel8-unknown",
133
132
  "--extra-args", (
134
133
  "brltty=no " # avoid heavy console spam on missing devices
135
134
  "mitigations=off " # make things a bit faster during install
@@ -347,11 +347,22 @@ class SharedVirtProvisioner(Provisioner):
347
347
  else:
348
348
  break
349
349
 
350
- self.logger.debug(f"adding {remote}")
350
+ # .stop() or .clear() was called while we were reserving,
351
+ # release the just-reserved Remote
352
+ abort = False
351
353
  with self._lock:
352
- self._remotes.add(remote)
353
- self._reserving_remotes.add(remote)
354
- self._to_reserve -= 1
354
+ if self._to_reserve <= 0:
355
+ abort = True
356
+ else:
357
+ self._to_reserve -= 1
358
+ self._remotes.add(remote)
359
+ self._reserving_remotes.add(remote)
360
+ if abort:
361
+ self.logger.debug(f"releasing unrequested {remote}")
362
+ remote.release()
363
+ continue
364
+
365
+ self.logger.debug(f"created new {remote}")
355
366
  self._reserving_events.release(1)
356
367
 
357
368
  # delay for reserve_delay before reserving more
@@ -470,10 +481,8 @@ class SharedVirtProvisioner(Provisioner):
470
481
  return None
471
482
 
472
483
  def clear(self):
473
- # if there's a reservation in progress, it will lower to_reserve
474
- # to -1, but that's fine because the next .provision() will increase
475
- # it back to >= 0 and a follow-up .get_remote() will get the one
476
- # Remote that was reserved before
484
+ # any reservation in progress will be released, not returned
485
+ # via .get_remote(), when it completes
477
486
  with self._lock:
478
487
  self._to_reserve = 0
479
488
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: atex
3
- Version: 2.0.dev1
3
+ Version: 2.0.dev2
4
4
  Summary: Ad-hoc Test EXecution
5
5
  Project-URL: Homepage, https://github.com/RHSecurityCompliance/atex
6
6
  License-Expression: GPL-3.0-or-later
@@ -14,11 +14,11 @@ atex/cli/fmf.py,sha256=IbxeqeB2bD7mw-fsg41RE9kH5MN0FlfOh2bPxMFGTJk,2853
14
14
  atex/cli/reportportal.py,sha256=DA3Q_ZtlpJ6b0FYE4kam7BsJPz_UKQ9kB-wzQccUtrU,3392
15
15
  atex/cli/testingfarm.py,sha256=LDzNbsYEBejQkfN27xiDIjsm3CcSMe5aQSKha1Ml9ws,12325
16
16
  atex/cli/shvirt/__init__.py,sha256=cdaELDdri5Ph6Mw0f03KSD19mGZSvfLDgnn06UZ9DPo,4155
17
- atex/cli/shvirt/common.py,sha256=b407q54wuBUAoP1lBexIf0snZjRRnavnr_vKkyLkE5o,845
17
+ atex/cli/shvirt/common.py,sha256=3F2Av8TtfOTQwLJpNFYXRbnPbIt1an8QVfLazFHggK0,847
18
18
  atex/cli/shvirt/install.py,sha256=LS4p6yO2URv5fvAw23f4PN65khi1VNquE-lEIBnzSKU,7144
19
19
  atex/cli/shvirt/reserve.py,sha256=EZc2cggLNYvjsvUA7QpmUDkyMNeYPf-XZ9m6CUSOWzw,6214
20
20
  atex/cli/virt/__init__.py,sha256=3sF314-jgx7OA8UokeHBTTHaFNwscFHFAQ7WxpIEgJk,1087
21
- atex/cli/virt/install.py,sha256=_d3dc77IozrJGLfjHwD1S8q9CxwW_XksK6Y87I5S-RE,6659
21
+ atex/cli/virt/install.py,sha256=AP-XD09uM6M45QFMUuejMraM4JiK8EHSU5grdsIlmFU,6614
22
22
  atex/cli/virt/kickstart.py,sha256=K5_Mhg1UP-NAvhVLS0EqeJMn_ajrGj6b5ejfcrFqXPA,2651
23
23
  atex/cli/virt/ks.cfg,sha256=CtO4SnwJjvSj-TrTQBZNtxP9hwHNgeVAT-tAZPoD_YY,3472
24
24
  atex/cli/virt/reserve.py,sha256=wXxskNsnDVTuXqEVnDS0olrlNnrL4jkJToSW7kmqY4M,2050
@@ -60,7 +60,7 @@ atex/provisioner/podman/systemd.py,sha256=jgzjzLqDqGHlaCLSqPobzwD6-7s9JTaMekOMPZ
60
60
  atex/provisioner/podman/utils.py,sha256=c3gZpBXq1gX1DhH1B69MtO6VkGmnk8euOzQbdEcK1lg,4622
61
61
  atex/provisioner/shvirt/__init__.py,sha256=hf9TZOtVZ-jmOE5GkbetWhROmAHbZtNekqPZ-pciuTo,128
62
62
  atex/provisioner/shvirt/atex-virt-helper,sha256=kApbmInLB1iMnG12-BIsQiOnqdY0YtWjyxTYFFO5Mzk,22812
63
- atex/provisioner/shvirt/shvirt.py,sha256=IcjQkVs-3d51hS1OXcaUKQKxbCRSi2ySs9p7DrY3wo0,19464
63
+ atex/provisioner/shvirt/shvirt.py,sha256=y6EiCAGCb469Fj7CGmIzEprlOKiouy7yQG6pENkDV1Q,19722
64
64
  atex/provisioner/tempvirt/__init__.py,sha256=4waqlJwJhEeGG2fNujLJbiJXD1tRnU3Ak1khr2Bo6yU,122
65
65
  atex/provisioner/tempvirt/tempvirt.py,sha256=KUG5uAEttcFOeVZkyAsfdkFRQfI8BOJIY08x5S5Hw8E,13394
66
66
  atex/provisioner/tempvirt/utils.py,sha256=q0uUwRLrgxMviA_wgQZ_yu0U3rZdkOKlagcaaRgjZas,6104
@@ -78,8 +78,8 @@ atex/util/path.py,sha256=60gVI-9VenMLPneavdQVm3FvfBVzG8EbxFjProbPiSM,528
78
78
  atex/util/ssh.py,sha256=kWrJ1W8dpMEJbz4deQr7RHI28fpeHy0qj898fZSE8nc,4380
79
79
  atex/util/subprocess.py,sha256=XvnKe22WcGIWiSSFpkareAyH7ttSAvvs_GGE6JYDMrk,2347
80
80
  atex/util/threads.py,sha256=00TwG3Ed1JfbYcwkTtfoUIFaOw_05_79SZBrfhz4T2I,5809
81
- atex-2.0.dev1.dist-info/METADATA,sha256=Ygr5XRN9-h7ABAGRHFyMUcL4IiAvXD5OgcrQVTRbidE,5707
82
- atex-2.0.dev1.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
83
- atex-2.0.dev1.dist-info/entry_points.txt,sha256=pLqJdcfeyQTgup2h6dWb6SvkHhtOl-W5Eg9zV8moK0o,39
84
- atex-2.0.dev1.dist-info/licenses/COPYING.txt,sha256=oEuj51jdmbXcCUy7pZ-KE0BNcJTR1okudRp5zQ0yWnU,670
85
- atex-2.0.dev1.dist-info/RECORD,,
81
+ atex-2.0.dev2.dist-info/METADATA,sha256=siUs7y9BRb_wvGgAWpZ3cQELxk3oLU1TE-3jzR5q210,5707
82
+ atex-2.0.dev2.dist-info/WHEEL,sha256=zOwg4jB6zX2kU910N-cMawjivD6tO8NEWvE12je1bVk,87
83
+ atex-2.0.dev2.dist-info/entry_points.txt,sha256=pLqJdcfeyQTgup2h6dWb6SvkHhtOl-W5Eg9zV8moK0o,39
84
+ atex-2.0.dev2.dist-info/licenses/COPYING.txt,sha256=oEuj51jdmbXcCUy7pZ-KE0BNcJTR1okudRp5zQ0yWnU,670
85
+ atex-2.0.dev2.dist-info/RECORD,,