From 4fbe19a49c8d679f3af0a880c8884af31f928bfe Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 22 Aug 2026 13:28:23 +0800 Subject: [PATCH] chore: refresh host architecture baseline --- app/chain/torrents.py | 4 +--- tests/fixtures/architecture/dependency-baseline.json | 9 +++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/chain/torrents.py b/app/chain/torrents.py index f581cc6c3..c6e07365c 100644 --- a/app/chain/torrents.py +++ b/app/chain/torrents.py @@ -725,9 +725,7 @@ class TorrentsChain(ChainBase): target_cache[domain].append(context) # 如果超过了限制条数则移除掉前面的,音乐与影视各自独立计算配额 if len(target_cache[domain]) > self.runtime_config.torrent_cache_size: - target_cache[domain] = target_cache[domain][ - -self.runtime_config.torrent_cache_size: - ] + target_cache[domain] = target_cache[domain][-self.runtime_config.torrent_cache_size:] finally: torrents.clear() music_torrents.clear() diff --git a/tests/fixtures/architecture/dependency-baseline.json b/tests/fixtures/architecture/dependency-baseline.json index baf10fe57..38d08f5ee 100644 --- a/tests/fixtures/architecture/dependency-baseline.json +++ b/tests/fixtures/architecture/dependency-baseline.json @@ -13,8 +13,8 @@ "runtime_to_db": [], "workflow_to_db": [] }, - "edge_count": 6368, - "edge_sha256": "03022352d218ecfb93295438f8264140fa7f6be2f7e55734e094989e454062ae", + "edge_count": 6373, + "edge_sha256": "990a65a47e565d56b9fa63f615a1c4d4d2c2250aa0e2082dced03b0c2d7fc1af", "edges": [ "app -> app.runtime", "app -> app.runtime.compat", @@ -348,6 +348,7 @@ "app.agent.orchestrator -> app.runtime.config", "app.agent.orchestrator -> app.runtime.events", "app.agent.orchestrator -> app.runtime.log", + "app.agent.orchestrator -> app.runtime.observability", "app.agent.orchestrator -> app.schemas", "app.agent.orchestrator -> app.schemas.event", "app.agent.orchestrator -> app.schemas.message", @@ -3431,6 +3432,7 @@ "app.db.engine -> app.runtime", "app.db.engine -> app.runtime.config", "app.db.engine -> app.runtime.log", + "app.db.engine -> app.runtime.observability", "app.db.health -> app.db", "app.db.health -> app.db.session", "app.db.maintenance -> app.db", @@ -3652,6 +3654,7 @@ "app.db.session -> app.runtime", "app.db.session -> app.runtime.config", "app.db.session -> app.runtime.log", + "app.db.session -> app.runtime.observability", "app.doctor.checks -> app.adapters", "app.doctor.checks -> app.adapters.system", "app.doctor.checks -> app.adapters.system.host", @@ -5536,6 +5539,8 @@ "app.runtime.extensions.plugin.dependency -> app.runtime.extensions", "app.runtime.extensions.plugin.dependency -> app.runtime.extensions.plugin", "app.runtime.extensions.plugin.dependency -> app.runtime.extensions.plugin.system", + "app.runtime.extensions.plugin.lifecycle -> app.runtime", + "app.runtime.extensions.plugin.lifecycle -> app.runtime.observability", "app.runtime.extensions.plugin.lifecycle -> app.schemas", "app.runtime.extensions.plugin.lifecycle -> app.schemas.plugin", "app.runtime.extensions.plugin.loader -> app.schemas",