Sync ctx eea3f60 (part 4)
Browse filesGitHub commit: eea3f60109fad1541eef0ec95b811f7025d8a79f
src/tests/test_skill_quality_bench.py
CHANGED
|
@@ -37,8 +37,6 @@ _SKILL_MD = (
|
|
| 37 |
|
| 38 |
|
| 39 |
def _benchmark_budget_seconds() -> float:
|
| 40 |
-
if sys.platform == "win32":
|
| 41 |
-
return 5.0
|
| 42 |
return 2.0
|
| 43 |
|
| 44 |
|
|
|
|
| 37 |
|
| 38 |
|
| 39 |
def _benchmark_budget_seconds() -> float:
|
|
|
|
|
|
|
| 40 |
return 2.0
|
| 41 |
|
| 42 |
|
src/tests/test_skill_telemetry.py
CHANGED
|
@@ -17,7 +17,6 @@ Covers the Phase 1 telemetry contract:
|
|
| 17 |
from __future__ import annotations
|
| 18 |
|
| 19 |
import json
|
| 20 |
-
import os
|
| 21 |
import stat
|
| 22 |
import sys
|
| 23 |
from concurrent.futures import ThreadPoolExecutor
|
|
@@ -214,8 +213,6 @@ def test_log_event_and_read_events_round_trip(tmp_path: Path) -> None:
|
|
| 214 |
|
| 215 |
|
| 216 |
def test_log_event_creates_owner_only_file(tmp_path: Path) -> None:
|
| 217 |
-
if os.name == "nt":
|
| 218 |
-
pytest.skip("POSIX mode bits are not portable on Windows")
|
| 219 |
events_path = tmp_path / "nested" / "skill-events.jsonl"
|
| 220 |
|
| 221 |
st.log_event(
|
|
|
|
| 17 |
from __future__ import annotations
|
| 18 |
|
| 19 |
import json
|
|
|
|
| 20 |
import stat
|
| 21 |
import sys
|
| 22 |
from concurrent.futures import ThreadPoolExecutor
|
|
|
|
| 213 |
|
| 214 |
|
| 215 |
def test_log_event_creates_owner_only_file(tmp_path: Path) -> None:
|
|
|
|
|
|
|
| 216 |
events_path = tmp_path / "nested" / "skill-events.jsonl"
|
| 217 |
|
| 218 |
st.log_event(
|
src/tests/test_skill_unload.py
CHANGED
|
@@ -15,7 +15,6 @@ from __future__ import annotations
|
|
| 15 |
|
| 16 |
import importlib
|
| 17 |
import json
|
| 18 |
-
import os
|
| 19 |
import sqlite3
|
| 20 |
import stat
|
| 21 |
import sys
|
|
@@ -206,8 +205,7 @@ def test_unload_from_session_writes_manifest_event_and_audit(
|
|
| 206 |
assert events[0]["skill_hash"].startswith("sha256:")
|
| 207 |
assert events[0]["session_hash"].startswith("sha256:")
|
| 208 |
assert events[0]["meta"] == {"source": "skill_unload"}
|
| 209 |
-
|
| 210 |
-
assert stat.S_IMODE((home / ".claude" / "skill-events.jsonl").stat().st_mode) == 0o600
|
| 211 |
assert audit_calls == [
|
| 212 |
(
|
| 213 |
"skill.unloaded",
|
|
|
|
| 15 |
|
| 16 |
import importlib
|
| 17 |
import json
|
|
|
|
| 18 |
import sqlite3
|
| 19 |
import stat
|
| 20 |
import sys
|
|
|
|
| 205 |
assert events[0]["skill_hash"].startswith("sha256:")
|
| 206 |
assert events[0]["session_hash"].startswith("sha256:")
|
| 207 |
assert events[0]["meta"] == {"source": "skill_unload"}
|
| 208 |
+
assert stat.S_IMODE((home / ".claude" / "skill-events.jsonl").stat().st_mode) == 0o600
|
|
|
|
| 209 |
assert audit_calls == [
|
| 210 |
(
|
| 211 |
"skill.unloaded",
|
src/wiki_orchestrator.py
CHANGED
|
@@ -764,7 +764,7 @@ def main() -> None:
|
|
| 764 |
if sum(modes) > 1:
|
| 765 |
p.error("Specify exactly one of --check, --sync, --add, --status")
|
| 766 |
|
| 767 |
-
# Use UTF-8 stdout so emoji from lint issues render
|
| 768 |
utf8_out = open(sys.stdout.fileno(), mode="w", encoding="utf-8", closefd=False)
|
| 769 |
|
| 770 |
if args.status:
|
|
|
|
| 764 |
if sum(modes) > 1:
|
| 765 |
p.error("Specify exactly one of --check, --sync, --add, --status")
|
| 766 |
|
| 767 |
+
# Use UTF-8 stdout so emoji from lint issues render consistently.
|
| 768 |
utf8_out = open(sys.stdout.fileno(), mode="w", encoding="utf-8", closefd=False)
|
| 769 |
|
| 770 |
if args.status:
|