refactor: move profile selection into profiling

select_profiles and version_selection go to profiling.selection, the flag
refusals to profiling.flagchecks. main calls selection, quota and the
profile loader through their modules, so tests patch them there.
generate_truth's parse_args becomes build_parser.
This commit is contained in:
Abdessamad Derraz committed 2026-11-21 15:47:20 +01:00
1 parent 8afccc3d0f
commit b520e48798
8 files changed
+241 -219

No files matched your search

+2 -2
View File
@@ -63,10 +63,10 @@ class ABuildbotNameSelectsItsProfile(unittest.TestCase):
"""Both refused pcfx, which verify --emulator accepts."""
import argparse
import profile_sync
from profiling.selection import select_profiles
args = argparse.Namespace(changed=False, added=False, emulator=["pcfx"])
self.assertEqual(list(profile_sync.select_profiles(self.PROFILES, args)), ["beetle_pcfx"])
self.assertEqual(list(select_profiles(self.PROFILES, args)), ["beetle_pcfx"])
proc = subprocess.run(
[sys.executable, "scripts/fileless_audit.py", "pcfxx", "--offline"],
cwd=REPO_ROOT, capture_output=True, text=True, timeout=600, check=False,