Skip to content

Commit 3cb568c

Browse files
committed
fix: CI failures and review feedback
- Remove `memory doctor` from CI smoke test (command removed in v0.3.1) - Simplify isolated_memory warning expression using sum of lengths - Fix ruff formatting in test_rst.py and test_scaffold.py
1 parent 924c0a2 commit 3cb568c

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ jobs:
103103
memory --dir /tmp/test-memory get FACT_ci_test_fact
104104
memory --dir /tmp/test-memory tags
105105
memory --dir /tmp/test-memory list
106-
memory --dir /tmp/test-memory doctor
107106
108107
test-mcp:
109108
runs-on: ubuntu-latest

src/ai_memory_protocol/scaffold.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ def _write(path: Path, content: str) -> None:
232232
"isolated_decision": "type == 'dec' and len(relates) == 0 and len(supersedes) == 0 and len(supersedes_back) == 0",
233233
"draft_too_short": "status == 'draft' and (description == '' or len(description) < 20)",
234234
"suspicious_high_confidence": "confidence == 'high' and type in ['mem', 'risk', 'goal', 'q']",
235-
"isolated_memory": "status != 'draft' and len(relates) == 0 and len(supersedes) == 0 and len(supersedes_back) == 0 and len(depends) == 0 and len(depends_back) == 0 and len(supports) == 0 and len(supports_back) == 0 and len(contradicts) == 0 and len(contradicts_back) == 0 and len(example_of) == 0 and len(example_of_back) == 0",
235+
"isolated_memory": "status != 'draft' and (len(relates) + len(supersedes) + len(supersedes_back) + len(depends) + len(depends_back) + len(supports) + len(supports_back) + len(contradicts) + len(contradicts_back) + len(example_of) + len(example_of_back)) == 0",
236236
}}
237237
"""
238238

tests/test_rst.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,9 @@ def test_replace_body(self, tmp_workspace: Path) -> None:
250250
)
251251
append_to_rst(tmp_workspace, "fact", directive)
252252

253-
ok, msg = update_body_in_rst(tmp_workspace, "FACT_test_fact", "Updated body with new content.")
253+
ok, msg = update_body_in_rst(
254+
tmp_workspace, "FACT_test_fact", "Updated body with new content."
255+
)
254256
assert ok, msg
255257
content = (tmp_workspace / "memory" / "facts.rst").read_text()
256258
assert "Updated body with new content." in content

tests/test_scaffold.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def test_custom_author(self, tmp_path: Path) -> None:
7272
class TestConfPyWarnings:
7373
def test_scaffold_includes_needs_warnings(self, tmp_path: Path) -> None:
7474
from ai_memory_protocol.scaffold import init_workspace
75+
7576
ws = tmp_path / "test_ws"
7677
init_workspace(ws, "Test", "Author")
7778
conf_content = (ws / "conf.py").read_text()

0 commit comments

Comments
 (0)