fix: remove slow system git build dependency

This commit is contained in:
CoolBoy
2026-08-15 19:47:24 +08:00
parent 467eaccd59
commit 85f6cb5157
8 changed files with 85 additions and 127 deletions

View File

@@ -40,6 +40,12 @@ class HostedAgentEntrypointTests(unittest.TestCase):
self.assertFalse(readiness["ready"])
self.assertEqual("state_sync_unhealthy", readiness["reason"])
def test_runtime_image_uses_python_git_client_without_apt_layer(self) -> None:
dockerfile = (ROOT_DIR / "Dockerfile").read_text(encoding="utf-8")
requirements = (ROOT_DIR / "requirements.txt").read_text(encoding="utf-8")
self.assertNotIn("apt-get", dockerfile)
self.assertIn("dulwich", requirements.casefold())
if __name__ == "__main__":
unittest.main()