chore(storage): bound build retention, caches and test resources
Track build ownership, qualified pins and bounded cache/log lifecycles. Move Vite fixtures to a job-owned server helper and preserve private outputs outside Git.
This commit is contained in:
@@ -5,6 +5,7 @@ from pathlib import Path
|
||||
|
||||
import pytest
|
||||
|
||||
from k1link.launchd_logs import service_command, service_log_path
|
||||
from k1link.local_service_launchd import (
|
||||
MissionCoreLaunchAgentError,
|
||||
plan_mission_core_launch_agent,
|
||||
@@ -46,13 +47,16 @@ def test_launch_agent_plan_disables_sync_and_enables_watchdog(tmp_path: Path) ->
|
||||
)
|
||||
desired = plistlib.loads(plan.desired_payload)
|
||||
|
||||
assert desired["ProgramArguments"] == [
|
||||
assert service_command(desired) == [
|
||||
str(uv_entrypoint),
|
||||
"run",
|
||||
"--no-sync",
|
||||
"k1link",
|
||||
"serve",
|
||||
]
|
||||
assert "k1link.rotating_process" in desired["ProgramArguments"]
|
||||
assert service_log_path(desired).name == "k1link-serve-launchd.managed.log"
|
||||
assert desired["StandardOutPath"] == desired["StandardErrorPath"] == "/dev/null"
|
||||
assert desired["EnvironmentVariables"]["MISSIONCORE_SERVICE_WATCHDOG"] == "1"
|
||||
assert desired["KeepAlive"] is True
|
||||
assert desired["RunAtLoad"] is True
|
||||
@@ -267,10 +271,7 @@ def test_launch_agent_migration_retains_existing_private_data_directory(
|
||||
desired = plistlib.loads(plan.desired_payload)
|
||||
|
||||
assert plan.preserved_data_directory == configured_data_directory
|
||||
assert (
|
||||
desired["EnvironmentVariables"]["MISSIONCORE_DATA_DIR"]
|
||||
== str(configured_data_directory)
|
||||
)
|
||||
assert desired["EnvironmentVariables"]["MISSIONCORE_DATA_DIR"] == str(configured_data_directory)
|
||||
|
||||
|
||||
def test_launch_agent_migration_rejects_symlinked_data_directory(tmp_path: Path) -> None:
|
||||
|
||||
Reference in New Issue
Block a user