Commit Graph
19 Commits
Author SHA1 Message Date
Abdessamad Derraz 2123bd8317 refactor: move campaign and probe modes to probes 2026-11-21 15:47:20 +01:00
Abdessamad Derraz 22a81c384d refactor: move campaign budget, report to probes
parse_budget goes to probes.host beside Settings, and the line a pass prints, with the alert key autorun reads, to probes.reports.pass_report. campaign.py keeps its parser, main and the exit codes.
2026-11-21 14:59:02 +01:00
Abdessamad Derraz 75aef7e001 fix: mark a standalone record from changed modules
frontend.script_modified looked at standalone_probe.py alone. The run's code now lives in five probes modules: a record from a checkout where one of them differs from the commit says so.
2026-11-21 14:59:02 +01:00
Abdessamad Derraz f61d6a187f refactor: move standalone_probe code into probes
The emulators and their settings, the AppImage fetch, the Xvfb screen reader, the run and its variants, and the record go to five probes modules. standalone_probe.py keeps its parser, main and the printing of each mode. Without an oracle file, a record names probes/standaloneemulators.py, the file that now holds the error strings.
2026-11-21 14:59:02 +01:00
Abdessamad Derraz 6f510be49a refactor: share the probe commit reader
packprobe.git_head reads HEAD through core_probe.head_commit, the reader frontend_identity uses, and warns when git cannot answer instead of recording None silently.
2026-11-21 10:30:51 +01:00
Abdessamad Derraz ed19ae4198 fix: accept only registered platforms
require_platform checks the registry instead of any platforms/<name>.yml:
verify --platform _shared reported 0/0 present and exited 0. --all and
--platform resolve through model.cliargs.selected_platforms in auto_fetch,
generate_truth, diff_truth, export_native and verify. The truth directory
is core.paths.TRUTH_DIR for its writer and its three readers, and the
remaining literal database and profile paths read core.paths and
add_repo_inputs.
2026-11-21 06:04:31 +01:00
Abdessamad Derraz 8255d94e75 fix: fetch pack_probe content like the campaign
probes.content.fetch_content and find_romfetch serve ContentStore and
pack_probe: RETROBIOS_ROMFETCH is honoured, a transient romfetch exit is
retried, the run has a timeout in its own process group, and an exit
without a JSON error block no longer raises KeyError.
2026-11-21 06:04:23 +01:00
Abdessamad Derraz d2984bc466 fix: start core_probe one way from every probe
pack_probe and region_check run core_probe through probes.host.run_when_idle:
a busy refusal is retried until the wait runs out, a timeout kills the
run's whole process group, and pack_probe takes core_probe's own probe
lock, which honours RETROBIOS_PROBE_LOCK_HELD. core_probe names its busy
exit status EXIT_BUSY.
2026-11-21 06:04:23 +01:00
Abdessamad Derraz e3294d08ea fix: decide standalone builds from standalone_set 2026-11-21 06:01:19 +01:00
Abdessamad Derraz c8270b5361 refactor: test an entry's build in read_by_build 2026-11-21 06:01:18 +01:00
Abdessamad Derraz 0107ac8062 refactor: read entry systems with entry_system_ids 2026-11-21 05:59:51 +01:00
Abdessamad Derraz 3a76cf48ba refactor: share resolver, content and nightly
The probes resolve held files, read content.yml, list the buildbot and
fetch nightlies through one function each.

- region_check resolves BIOS files from the repo root (probes.entries
  held_file), so a run outside the root no longer sees every file missing.
- region_check reads content.yml as Content objects, and a malformed
  content folder raises Unavailable instead of FileNotFoundError.
- region_check and pack_probe fetch nightlies like the campaign: retried
  on network errors, streamed to disk, and replaced when the buildbot's
  ETag or Last-Modified moves. region_check keeps its cores under
  .cache/region/cores/<core>/ with a build.json record. pack_probe
  --refresh-cores now downloads only a nightly the buildbot replaced.
- The campaign loads profiles with load_emulator_profiles, so *.old.yml
  backups are skipped and hashes are normalized. Profile digests still
  come from the file on disk, so recorded checks keep their digest.
2026-11-20 20:03:26 +01:00
Abdessamad Derraz 3853ca2f1c refactor: public names for cross-module reads 2026-11-18 22:59:51 +01:00
Abdessamad Derraz b20c0127f9 refactor: autorun code in the unattended package 2026-11-18 21:32:47 +01:00
Abdessamad Derraz cacd290d2e refactor: one digest and one lock name for probes 2026-11-18 20:38:29 +01:00
Abdessamad Derraz 4ea44a027e refactor: split the region check into probes 2026-11-18 20:38:29 +01:00
Abdessamad Derraz 6debde95b4 refactor: split the pack probe into probes 2026-11-18 20:38:29 +01:00
Abdessamad Derraz 0471b80946 refactor: split the campaign into probes 2026-11-18 20:38:03 +01:00
Abdessamad Derraz 853a36c79f refactor: campaign rules and editor into probes 2026-11-18 20:37:49 +01:00