v2026.04.02/scripts
Abdessamad Derraz b9cdda07ee refactor: DRY consolidation + 83 unit tests
Moved shared functions to common.py (single source of truth):
- check_inside_zip (was in verify.py, imported by generate_pack)
- build_zip_contents_index (was duplicated in verify + generate_pack)
- load_emulator_profiles (was in verify, cross_reference, generate_site)
- group_identical_platforms (was in verify + generate_pack)

Added tests/ with 83 unit tests covering:
- resolve_local_file: SHA1, MD5, name, alias, truncated, zip_contents
- verify: existence, md5, zipped_file, multi-hash, severity mapping
- aliases: field parsing, by_name indexing, beetle_psx field rename
- pack: dedup, file_status, zipped_file inner check, EmuDeck entries
- severity: all 12 combinations, platform-native behavior

0 regressions: pipeline.py --all produces identical results.
2026-03-19 11:19:50 +01:00
..
scraper feat: core profiles, data_dirs buildbot, cross_ref fix 2026-03-18 21:20:02 +01:00
auto_fetch.py refactor: quality audit fixes, honest verification reporting 2026-03-17 15:35:30 +01:00
common.py refactor: DRY consolidation + 83 unit tests 2026-03-19 11:19:50 +01:00
cross_reference.py refactor: DRY consolidation + 83 unit tests 2026-03-19 11:19:50 +01:00
dedup.py refactor: fix code review findings across all scripts 2026-03-17 15:16:51 +01:00
download.py refactor: centralize hash logic, fix circular imports and perf bottlenecks 2026-03-18 11:51:12 +01:00
download.sh update all references from retroarch_system to retrobios 2026-03-17 11:17:50 +01:00
generate_db.py feat: aliases support in resolve and db generation 2026-03-19 08:15:13 +01:00
generate_pack.py refactor: DRY consolidation + 83 unit tests 2026-03-19 11:19:50 +01:00
generate_readme.py refactor: centralize hash logic, fix circular imports and perf bottlenecks 2026-03-18 11:51:12 +01:00
generate_site.py refactor: centralize hash logic, fix circular imports and perf bottlenecks 2026-03-18 11:51:12 +01:00
list_platforms.py refactor: fix code review findings across all scripts 2026-03-17 15:16:51 +01:00
migrate.py v2: automated BIOS platform with full pipeline 2026-03-17 10:54:39 +01:00
pipeline.py feat: complete platform-native verification with cross-reference 2026-03-19 10:44:17 +01:00
refresh_data_dirs.py feat: core profiles, data_dirs buildbot, cross_ref fix 2026-03-18 21:20:02 +01:00
validate_pr.py refactor: consolidate CI pipeline, remove third-party deps 2026-03-17 12:33:10 +01:00
verify.py refactor: DRY consolidation + 83 unit tests 2026-03-19 11:19:50 +01:00