fix(handoff): 修复搬运默认上限及云端接收目录挂载
build / build (push) Successful in 1m29s

This commit is contained in:
姚章浩
2026-10-30 22:37:18 +08:00
parent 657fd251fb
commit 52c0186172
6 changed files with 51 additions and 3 deletions
+4 -1
View File
@@ -50,7 +50,7 @@ class DeploymentTest(unittest.TestCase):
self.env.update(RELEASE_EXECUTOR_IMAGE='fixture:only', RELEASE_EXECUTOR_ENV=str(envfile),
RELEASE_ARCHIVE_ROOT=str(self.root / 'archive'), RELEASE_JOURNAL_ROOT=str(self.root / 'journal'),
RELEASE_GATE_STATE=str(self.root), RELEASE_PG_SOCKET_DIR=str(self.root),
RELEASE_PGPASS_FILE=str(secret))
RELEASE_PGPASS_FILE=str(secret), RELEASE_BUNDLE_DIR=str(self.root / 'bundles'))
result = self.run_script('run-release-executor.sh')
self.assertEqual(result.returncode, 0, result.stderr)
call = next(c for c in self.calls() if c[1:2] == ['run'])
@@ -59,6 +59,9 @@ class DeploymentTest(unittest.TestCase):
self.assertEqual(call[call.index('--network') + 1], 'weknora-test-v071-network')
self.assertIn(str(self.root) + ':/run/kgtest-pg:ro', call)
self.assertIn(str(secret) + ':/run/secrets/governance_pgpass:ro', call)
bundles = self.root / 'bundles'
self.assertIn(str(bundles) + ':' + str(bundles), call)
self.assertEqual(bundles.stat().st_mode & 0o777, 0o700)
self.assertNotIn('example-only', result.stdout + result.stderr + json.dumps(self.calls()))
def test_libpq_socket_directory_contract(self):