Merge remote-tracking branch 'origin/main' into feature/svc-net-wireguard

One conflict, in the MCP exclusion list of requirement 035. Both sides
edited the same line: main added svc-net-tor-smtp, this branch replaced the
three svc-net-wireguard-{core,plain,firewalled} entries with the single
svc-net-wireguard it deploys. Resolved to the union of both — 24 entries —
which is what the merged tree actually holds.

Everything else merged clean and was checked for overlap rather than
assumed: no reference anywhere still names the three replaced roles;
matrix.py kept main's PRIMARY_APPS alongside the reordered round, and the
bootstrap pass does not need it, since only one template reads it and
group_vars defaults it empty; and main's ansible.cfg addition sits in
[defaults], so the ssh_args the mesh tool derives its own connection
settings from are untouched.
This commit is contained in:
evangelostsak committed 2026-10-03 02:29:45 +02:00
commit e456b1eee6
336 files changed
+9605 -349

No files matched your search

@@ -473,8 +473,9 @@ class TestHandlerFullCycle(unittest.TestCase):
interleave: round-0 sync, round-0 async, then round-1 sync,
round-1 async. Every call carries the zero-based VARIANT_INDEX so
consumers like the test-e2e-playwright role can namespace their
artifacts. Cleanup still runs once between rounds with the full
previous-round include."""
artifacts, plus PRIMARY_APPS so role-owned tests can tell a deploy
target from a pulled-in dependency. Cleanup still runs once between
rounds with the full previous-round include."""
make_compose_mock.return_value = _make_compose_mock()
plan_mock.return_value = [
_entry(0, "/srv/inv-0", {"web-app-multi": 0}),
@@ -494,10 +495,24 @@ class TestHandlerFullCycle(unittest.TestCase):
self.assertEqual(
sequence,
[
("/srv/inv-0", {"VARIANT_INDEX": 0}),
("/srv/inv-0", {"ASYNC_ENABLED": True, "VARIANT_INDEX": 0}),
("/srv/inv-1", {"VARIANT_INDEX": 1}),
("/srv/inv-1", {"ASYNC_ENABLED": True, "VARIANT_INDEX": 1}),
("/srv/inv-0", {"VARIANT_INDEX": 0, "PRIMARY_APPS": ["web-app-multi"]}),
(
"/srv/inv-0",
{
"ASYNC_ENABLED": True,
"VARIANT_INDEX": 0,
"PRIMARY_APPS": ["web-app-multi"],
},
),
("/srv/inv-1", {"VARIANT_INDEX": 1, "PRIMARY_APPS": ["web-app-multi"]}),
(
"/srv/inv-1",
{
"ASYNC_ENABLED": True,
"VARIANT_INDEX": 1,
"PRIMARY_APPS": ["web-app-multi"],
},
),
],
)
purge_mock.assert_called_once()
@@ -577,8 +592,15 @@ class TestHandlerFullCycle(unittest.TestCase):
self.assertEqual(
sequence,
[
("/srv/inv-1", {"VARIANT_INDEX": 1}),
("/srv/inv-1", {"ASYNC_ENABLED": True, "VARIANT_INDEX": 1}),
("/srv/inv-1", {"VARIANT_INDEX": 1, "PRIMARY_APPS": ["web-app-multi"]}),
(
"/srv/inv-1",
{
"ASYNC_ENABLED": True,
"VARIANT_INDEX": 1,
"PRIMARY_APPS": ["web-app-multi"],
},
),
],
)
purge_mock.assert_not_called()
@@ -2,6 +2,7 @@
from __future__ import annotations
import sys
import unittest
from cli.administration.recover import paths, recoverers
@@ -182,7 +183,7 @@ class RegistryTest(unittest.TestCase):
def test_command_starts_with_interpreter_and_script(self):
cmd = recoverers.RECOVERERS["secrets"].command("/gen/files")
self.assertEqual(cmd[0], "python3")
self.assertEqual(cmd[0], sys.executable)
self.assertTrue(
cmd[1].endswith("svc-bkp-secrets-2-local/files/python/recover.py")
)
@@ -2,6 +2,7 @@
from __future__ import annotations
import sys
import unittest
from cli.administration.recover import remote
@@ -43,7 +44,7 @@ class CommandsTest(unittest.TestCase):
self.assertEqual(
steps[0], ["rsync", "-a", "host:/backup/usb.img", remote.IMAGE]
)
self.assertEqual(steps[1][0], "python3")
self.assertEqual(steps[1][0], sys.executable)
self.assertIn(remote.IMAGE, steps[1])
self.assertIn(remote.LOCAL_ROOT, steps[1])
self.assertIn("--passphrase-stdin", steps[1])
@@ -40,6 +40,16 @@ class TestCliMetaApplicationsDomains(TestCase):
code = int(e.code) if e.code is not None else 0
return code, out.getvalue(), err.getvalue()
def test_domain_primary_default_resolution(self) -> None:
with patch.dict(mod.os.environ, {"DOMAIN": "explicit.env"}, clear=False):
self.assertEqual(
mod.parse_args(["--domain-primary", "flag.wins"]).domain_primary,
"flag.wins",
)
self.assertEqual(mod.parse_args([]).domain_primary, "explicit.env")
with patch.dict(mod.os.environ, {}, clear=True):
self.assertEqual(mod.parse_args([]).domain_primary, "infinito.test")
def test_cli_supports_alias_and_www_flags(self) -> None:
with tempfile.TemporaryDirectory() as tmp:
roles_dir = Path(tmp) / "roles"