revert(swarm-test): remove the SSH-on-underlay measurement arm

The arm existed to answer one question: how much of the meshed arm's
cost is the connection plugin and how much is the tunnel. Runs 37592061960
(docker), 37753506661 (SSH on the underlay) and 37621556682 (SSH over
WireGuard) answered it on web-app-gitea#0, debian/ext4:

  pass 1  5964s / 8511s / 8832s
  pass 2  5319s / 7472s / 7705s

Leaving ansible_connection: docker costs +4700s, the tunnel +554s - 89.5%
against 10.5%. The answer is recorded; the scaffolding does not need to ship.

Reverts d792519725, 1b28f87b37, 89b8a8c8d1, 0470491e1a, 529c5ace43,
dd3d10a9a2, c20dd0e5f5, 458d8956e1, 63ade1e03b, d281555945 and 4adfb6e3d2.
95cfc8b7b7 is already superseded by bbfd82f89, which sets the profiling limit
upstream.
This commit is contained in:
evangelostsak committed 2026-10-09 12:12:03 +02:00
1 parent 5a83785b53
commit ff1db88753
8 files changed
+4 -82

No files matched your search

@@ -155,42 +155,6 @@ class TestSwitchingTheTransport(MeshOnDisk, unittest.TestCase):
"""The first pass is what creates the mesh; there is nothing to move to."""
self.assertEqual(self._switch(), {})
def test_given_addresses_are_dialled_instead_of_the_mesh_ones(self):
mesh = self._write_swarm()
given = {member.host: f"192.168.244.{index + 10}" for index, member in
enumerate(mesh.members)}
switched = switch_to_mesh(
self.host_vars,
list(HOSTS),
"swarm",
user="administrator",
private_key_file="/tmp/key",
addresses=given,
)
for host, address in switched.items():
with self.subTest(host=host):
self.assertEqual(address, given[host])
text = (
self.host_vars / "swarm-wrk-01.yml"
).read_text( # nocheck: cache-read tempdir fixture rewritten between reads in one test
encoding="utf-8"
)
self.assertIn(f"ansible_host: {given['swarm-wrk-01']}", text)
self.assertIn("ansible_connection: ssh", text)
def test_a_member_missing_from_the_given_addresses_raises(self):
"""Falling back would hand back the meshed arm under the other's name."""
self._write_swarm()
with self.assertRaises(KeyError):
switch_to_mesh(
self.host_vars,
list(HOSTS),
"swarm",
user="administrator",
private_key_file="/tmp/key",
addresses={},
)
def test_the_address_is_only_read_from_the_host_that_owns_it(self):
"""The swarm reset mirrors one node's host_vars over every other."""
self._write_swarm()