Skip to content
Open
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
21 changes: 11 additions & 10 deletions scripts/harness_checks/line_count_baseline.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"hard_cap": 3000,
"warn_cap": 1500,
"root": "harness-discipline-docs",
"offenders": {
"src/spark_cli/cli.py": 18105,
"src/spark_cli/system_map.py": 5658,
"tests/test_cli.py": 14759,
"tests/test_system_map.py": 2055
}
}
"hard_cap": 3000,
"warn_cap": 1500,
"root": "harness-discipline-docs",
"offenders": {
"src/spark_cli/cli.py": 18111,
"src/spark_cli/system_map.py": 5658,
"tests/test_cli.py": 14759,
"tests/test_system_map.py": 2055
},
"src/spark_cli/cli.py": 18111
}
5 changes: 4 additions & 1 deletion src/spark_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9344,7 +9344,10 @@ def delete_revoke_all_secrets(secret_ids: Iterable[str], *, dry_run: bool = Fals
def spawner_state_dir_for_revoke_all() -> Path:
spawner_env = read_generated_env(MODULE_CONFIG_DIR / "spawner-ui.env")
raw = spawner_env.get("SPAWNER_STATE_DIR") or str(STATE_DIR / "spawner-ui")
return Path(raw).expanduser()
resolved = Path(raw).expanduser().resolve()
if not str(resolved).startswith(str(SPARK_HOME.resolve())):
raise SystemExit("SPAWNER_STATE_DIR escapes SPARK_HOME; refusing unsafe path.")
return resolved


def load_json_best_effort(path: Path, default: Any) -> Any:
Expand Down
Loading