code-to10 v5 rebase follow-up: keep main #275 resident working on rebased tree
- restore _audit_row in cloud/automations.py as a thin wrapper over cloud.auth.audit_on_conn (legacy row + ledger entry pair, user_id system, best-effort self-commit preserved). The stack's gap-4 option A deleted the direct writer; main #275 resident.py imports _audit_row, so the bare rebase broke server import. No direct audit_log INSERT is reintroduced, so the #250 no-bypass scan stays green. - conformance accounting 238/144 -> 243/149: main #275 added 5 resident methods that legitimately stay in server.py; moved count stays 94, no duplicates. - directional: resident x3, audit chain, conformance, automations x3 suites, 51 tests OK
This commit is contained in:
1 parent
6bceed484c
commit
34a19ab9e2
2 files changed
+32
-7
No files matched your search
@@ -9,8 +9,10 @@ Pins the split contract so a future violation fails CI:
|
||||
as #238 arch_conformance.scan_imports);
|
||||
- server.py re-exports the moved shared helpers as identical objects,
|
||||
so `from cloud.server import _task_to_dict` keeps working;
|
||||
- handler method accounting: 238 total, 144 left in server.py itself,
|
||||
94 in mixins, no name defined twice.
|
||||
- handler method accounting: 243 total, 149 left in server.py itself,
|
||||
94 in mixins, no name defined twice. (v5 rebase: main #275 added
|
||||
5 resident methods that legitimately stay in server.py, so the
|
||||
stack's 238/144 becomes 243/149; moved count stays 94.)
|
||||
|
||||
Only the standard library; no real model, no network, no secrets.
|
||||
"""
|
||||
@@ -138,7 +140,7 @@ class TestReexports(unittest.TestCase):
|
||||
|
||||
|
||||
class TestMethodAccounting(unittest.TestCase):
|
||||
def test_total_238_no_duplicates(self):
|
||||
def test_total_243_no_duplicates(self):
|
||||
seen = {}
|
||||
dups = []
|
||||
classes = [CloudControlPlaneHandler]
|
||||
@@ -153,9 +155,9 @@ class TestMethodAccounting(unittest.TestCase):
|
||||
dups.append((seen[name], cls.__name__, name))
|
||||
seen[name] = cls.__name__
|
||||
self.assertEqual(dups, [])
|
||||
self.assertEqual(total, 238)
|
||||
self.assertEqual(total, 243)
|
||||
self.assertEqual(len(_own_methods(CloudControlPlaneHandler)),
|
||||
238 - 94)
|
||||
243 - 94)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user