oc_chat
Loading...
Searching...
No Matches
migration_preflight.py File Reference

Go to the source code of this file.

Classes

class  oc_chat.scripts.migration_preflight.Stamp
class  oc_chat.scripts.migration_preflight.BranchRow
class  oc_chat.scripts.migration_preflight.WorktreeRow

Namespaces

namespace  oc_chat
namespace  oc_chat.scripts
namespace  oc_chat.scripts.migration_preflight

Functions

Stamp oc_chat.scripts.migration_preflight._iso_now ()
Stamp oc_chat.scripts.migration_preflight._stamp_from_arg (str|None value)
tuple[int, str, str] oc_chat.scripts.migration_preflight._run_cmd (Sequence[str] args, Path cwd, int timeout=DEFAULT_TIMEOUT_SECONDS)
Path oc_chat.scripts.migration_preflight.write_branch_inventory (Path repo_root, Path out_dir, Stamp stamp, *, int timeout=DEFAULT_TIMEOUT_SECONDS)
Path oc_chat.scripts.migration_preflight.write_health_baseline (Path repo_root, Path out_dir, Stamp stamp, *, int timeout=DEFAULT_TIMEOUT_SECONDS)
Path oc_chat.scripts.migration_preflight.write_test_baseline (Path repo_root, Path out_dir, Stamp stamp, *, int timeout=DEFAULT_TIMEOUT_SECONDS)
Path oc_chat.scripts.migration_preflight.write_filter_repo_dryrun (Path repo_root, Path out_dir, Stamp stamp, *, int timeout=DEFAULT_TIMEOUT_SECONDS)
list[Path] oc_chat.scripts.migration_preflight.run_all (Path repo_root, Path out_dir, Stamp stamp, *, int timeout=DEFAULT_TIMEOUT_SECONDS)
Path oc_chat.scripts.migration_preflight.write_summary (Path out_dir, Stamp stamp, Sequence[Path] artifacts)
list[BranchRow] oc_chat.scripts.migration_preflight._collect_branches (Path repo_root, int timeout)
list[WorktreeRow] oc_chat.scripts.migration_preflight._collect_worktrees (Path repo_root, int timeout)
set[str] oc_chat.scripts.migration_preflight._merged_branches (Path repo_root, int timeout)
str oc_chat.scripts.migration_preflight._ahead_behind (Path repo_root, str branch, int timeout)
tuple[str, str, str] oc_chat.scripts.migration_preflight._worktree_commit_info (Path repo_root, str worktree, int timeout)
list[dict[str, str]] oc_chat.scripts.migration_preflight._parse_worktree_records (str text)
int|None oc_chat.scripts.migration_preflight._parse_test_count (str text)
str|None oc_chat.scripts.migration_preflight._filter_repo_mode (Path repo_root, int timeout)
list[str] oc_chat.scripts.migration_preflight._filter_repo_command (str mode)
bool oc_chat.scripts.migration_preflight._safe_clone_dir (Path clone_dir, Path repo_root)
None oc_chat.scripts.migration_preflight._write_filter_report (Path path, Stamp stamp, str status, str reason, *, str|None command=None, int|None returncode=None, str stdout="", str stderr="")
tuple[str, str, str, str] oc_chat.scripts.migration_preflight._split_tab4 (str line)
str oc_chat.scripts.migration_preflight._tail (str text, int lines=25)
str oc_chat.scripts.migration_preflight._md (str value)
Path oc_chat.scripts.migration_preflight._resolve_repo_root (str|None raw)
Path oc_chat.scripts.migration_preflight._resolve_out_dir (Path repo_root, str|None raw)
None oc_chat.scripts.migration_preflight._add_common (argparse.ArgumentParser parser)
list[Path] oc_chat.scripts.migration_preflight._dispatch (argparse.Namespace args)
argparse.ArgumentParser oc_chat.scripts.migration_preflight.build_parser ()
int oc_chat.scripts.migration_preflight.main (list[str]|None argv=None)

Variables

str oc_chat.scripts.migration_preflight.DEFAULT_OUT_DIR = ".migration"
int oc_chat.scripts.migration_preflight.DEFAULT_TIMEOUT_SECONDS = 300
 oc_chat.scripts.migration_preflight.COUNT_RE = re.compile(r"(\d+)\s+(?:tests?|items?)\s+collected", re.IGNORECASE)
 oc_chat.scripts.migration_preflight.PER_FILE_COUNT_RE = re.compile(r"^[^:\n]+:\s*(\d+)\s*$", re.MULTILINE)