MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / main

Function main

scripts/ci/verify-release-selection.py:412–428  ·  view source on GitHub ↗
(argv: Sequence[str])

Source from the content-addressed store, hash-verified

410
411
412def main(argv: Sequence[str]) -> None:
413 args = parse_arguments(argv)
414 selections = load_selection(args.selection, require_policy=args.require_policy)
415 archives = discover_archives(args.archive_dir)
416 for name, (target, member) in ARCHIVES.items():
417 path = archives[name]
418 regular_status(path, ceiling=MAX_ARCHIVE_BYTES, label="release archive")
419 selection = selections[target]
420 verify = verify_tar if name.endswith(".tar.gz") else verify_zip
421 verify(
422 path,
423 required_member=member,
424 expected_sha256=selection["selected_sha256"],
425 expected_size=int(selection["selected_size"]),
426 require_executable_mode=not target.startswith("windows-"),
427 )
428 print(f"verified all {len(ARCHIVES)} canonical containers against selected bytes")
429
430
431try:

Callers 1

Calls 4

load_selectionFunction · 0.85
discover_archivesFunction · 0.85
parse_argumentsFunction · 0.70
regular_statusFunction · 0.70

Tested by

no test coverage detected