mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-10 04:36:40 +00:00
Merge remote-tracking branch 'upstream/main' into feature/svc-net-wireguard
No conflicts across 121 incoming commits. The one file both sides changed is tasks/stages/01_constructor.yml: upstream parks an applications carrier for the swarm bootstrap roles after the add_host tasks, and keys the carrier on the tokens file as well. This branch's mesh bootstrap opens and drops its own block-scoped carrier before that point, so both keep working as written. Upstream also brings ruff 0.17.0, distro-derived env keys, a scoped act outer teardown, the stalwart relay rule, the onion apex redirect and image and version updates; ruff 0.17 reformats nothing on this branch.
This commit is contained in:
85 files changed
+1323
-421
No files matched your search
@@ -10,7 +10,7 @@ directories / no junit files / unparseable junit files.
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import datetime
|
||||
import datetime as dt
|
||||
import io
|
||||
import os
|
||||
import unittest
|
||||
@@ -56,9 +56,7 @@ def _write(path: Path, content: str) -> Path:
|
||||
class TestToIsoZ(unittest.TestCase):
|
||||
def test_utc_datetime_formats_with_z_suffix(self) -> None:
|
||||
self.assertEqual(
|
||||
ps._to_iso_z(
|
||||
datetime.datetime(2026, 5, 17, 12, 34, 56, tzinfo=datetime.UTC)
|
||||
),
|
||||
ps._to_iso_z(dt.datetime(2026, 5, 17, 12, 34, 56, tzinfo=dt.UTC)),
|
||||
"2026-05-17T12:34:56Z",
|
||||
)
|
||||
|
||||
@@ -263,9 +261,7 @@ class TestSummarizeFile(unittest.TestCase):
|
||||
Path(tmp) / "web-app-foo" / "playwright-junit.xml",
|
||||
no_timestamp_fixture,
|
||||
)
|
||||
target = datetime.datetime(
|
||||
2025, 5, 17, 5, 34, 56, tzinfo=datetime.UTC
|
||||
).timestamp()
|
||||
target = dt.datetime(2025, 5, 17, 5, 34, 56, tzinfo=dt.UTC).timestamp()
|
||||
os.utime(xml_path, (target, target))
|
||||
summary = ps._summarize_file(xml_path)
|
||||
assert summary is not None
|
||||
|
||||
Reference in new issue
Block a user