mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-12-02 06:18:51 -06:00
fix: tests rerun what autorun retries
run_tests reran a module only when a signal killed it: a SystemError or an unknown opcode from this host's CPU failed the run, where an autorun step failing the same way ran again. host_misread moves to core.hostguard and both runners read it, a signal kill of any kind now counting for autorun too.
This commit is contained in:
1 parent
f379df5e1e
commit
e62332b4c6
7 files changed
+59
-19
No files matched your search
@@ -24,7 +24,8 @@ python -m unittest discover -s tests -t . -v
|
||||
```
|
||||
|
||||
Or run it as parallel processes, one per module, each with its own
|
||||
scratch folder. A module a host crash kills runs again alone at the end:
|
||||
scratch folder. A module a host crash kills, or that fails with `SystemError`
|
||||
or "unknown opcode", runs again alone at the end:
|
||||
|
||||
```bash
|
||||
python scripts/run_tests.py # a few modules at a time
|
||||
|
||||
+1
-1
@@ -829,7 +829,7 @@ commit.
|
||||
| Lock | One host-wide `flock` on `~/.local/state/retrobios/auto.lock` (`RETROBIOS_AUTO_LOCK` moves it). A job that finds it held is `deferred`. |
|
||||
| Load | Waits while the 1-minute load is above a quarter of the CPUs, up to `max_load_wait` seconds, then `deferred`. |
|
||||
| Disk | Below the job's `min_free_gb` the job is `refused`. Under 100 GB free the `disk` alert is raised. |
|
||||
| Retry | Exit 139 (or signal 11), `SystemError` or "unknown opcode" is run again once on an idle host. A second failure is a failure. |
|
||||
| Retry | A signal kill, exit 139, `SystemError` or "unknown opcode" is run again once on an idle host, the rule `run_tests.py` applies to a test module. A second failure is a failure. |
|
||||
| Environment | A step, gate or recomputation inherits `PATH`, `HOME`, `LANG`, `LC_*`, `TZ` and `TMPDIR`, the runner's own markers and the variables its `env:` key names. A name with `TOKEN`, `SECRET` or `PASS` in it, `GH_TOKEN` and the RomStation account are dropped even when named, and a step naming one is refused when the registry loads. `GITHUB_TOKEN` goes to the push, the `gh` calls that read CI, and a step marked `github_token: true`. The registry accepts that key only on `python scripts/check_freshness.py`, `python scripts/refresh_stale.py` and `python -m scripts.scraper.*` tracked in this repository, and never in the `campaign` job. |
|
||||
| Double computation | Each `twice` entry recomputes an artifact the gate wrote and compares both, timestamps aside. A difference is recomputed once on an idle host, then the job fails with the `host-integrity` alert. |
|
||||
|
||||
|
||||
Reference in new issue
Block a user