mirror of
https://github.com/storytold/craft-ai-integrations.git
synced 2026-11-23 04:40:43 +01:00
The Gemini eviction rule moved into registry.rs, and the ComfyUI plain-file check moved into open_plain_file, so gi's gemini-unread-terminal-evicted and p4's input-folder-read each matched nothing and checked nothing. Point them at the current code. Every group now dry-runs with each case on exactly one target. gi: 2 of 2 caught. input-folder-read stays the recorded Windows-only equivalent.
17 lines
762 B
Python
17 lines
762 B
Python
"""Gemini jobs retain unread terminal states under bounded tracking pressure."""
|
|
|
|
PATH = 'crates/ai-gemini/src/lib.rs'
|
|
# The eviction rule moved into the registry module.
|
|
REGISTRY = 'crates/ai-gemini/src/registry.rs'
|
|
PACKAGE = 'craft-ai-gemini'
|
|
GI = [
|
|
('gemini-unread-terminal-evicted', REGISTRY,
|
|
'jobs.retain(|_, s| !s.terminal_delivered);',
|
|
'jobs.retain(|_, s| !s.state.is_terminal() || !s.events.is_empty());',
|
|
PACKAGE, 'lib', 'registry_tests::unpolled_terminal_jobs_survive_tracking_pressure'),
|
|
('gemini-running-poll-counts-as-delivery', PATH,
|
|
'slot.terminal_delivered |= slot.state.is_terminal();',
|
|
'slot.terminal_delivered = true;',
|
|
PACKAGE, 'lib', 'registry_tests::only_a_delivered_terminal_state_can_be_evicted'),
|
|
]
|