Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/agent_radar.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
INIT_PROTECTED_DIRS = ("prompts", "automation", "docs")


__version__ = "0.20.1"
__version__ = "0.20.2"

CORE_FILES = [
"README.md",
Expand Down
12 changes: 10 additions & 2 deletions tests/test_cloud_agent_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -2625,7 +2625,9 @@ def test_screening_shard_split_by_lane(self) -> None:
{"source": "openai-blog", "title": "release", "url": "https://openai.com/x"},
{"source": "npm", "title": "package", "url": "https://www.npmjs.com/package/x"},
]
shards = dict(cloud_agent_runner.screening_shard_items(items))
# Pin the group count: CI sets SCREENING_SHARD_GROUPS=2 globally.
with mock.patch.dict(os.environ, {"SCREENING_SHARD_GROUPS": "4"}, clear=False):
shards = dict(cloud_agent_runner.screening_shard_items(items))
self.assertEqual(len(shards["discussion"]), 2)
self.assertEqual(len(shards["official-vendor"]), 1)
self.assertEqual(len(shards["github-oss"]), 1)
Expand Down Expand Up @@ -3119,8 +3121,14 @@ def test_discussion_shard_runs_first(self) -> None:
{"source": "github", "title": "repo", "url": "https://github.com/a/b"},
{"source": "bluesky", "title": "post", "url": "https://bsky.app/p/1"},
]
shards = cloud_agent_runner.screening_shard_items(items)
# Discussion leads in both group modes so merge dedup keeps community
# framing; pin each mode explicitly (CI sets SCREENING_SHARD_GROUPS=2).
with mock.patch.dict(os.environ, {"SCREENING_SHARD_GROUPS": "4"}, clear=False):
shards = cloud_agent_runner.screening_shard_items(items)
self.assertEqual(shards[0][0], "discussion")
with mock.patch.dict(os.environ, {"SCREENING_SHARD_GROUPS": "2"}, clear=False):
merged = cloud_agent_runner.screening_shard_items(items)
self.assertTrue(merged[0][0].startswith("discussion"))

def test_diversify_reserves_three_discussion_user_slots(self) -> None:
candidates = []
Expand Down
Loading