feat: run the CI suite as parallel processes

validate.yml and pr_checks.py run scripts/run_tests.py with four jobs,
the runner's cores: 24 minutes here for the suite that took about 40 in
one process. A failed module's tracebacks are printed in the summary, as
a runner keeps no log file. The two scripts added today follow the rules
the suite holds every script to (no abbreviated option, run_cli, every
option documented), and the two isolation tests drop the per-module
scratch variable to check the folder a module gets alone.
This commit is contained in:
Abdessamad Derraz committed 2026-11-12 15:36:46 +01:00
1 parent fb33ee58e1
commit abbfebff3e
11 files changed
+63 -27

No files matched your search

+6 -2
View File
@@ -86,7 +86,8 @@ def sources(paths: list[Path]) -> Iterator[tuple[str, bytes]]:
def main() -> int:
parser = argparse.ArgumentParser(description=__doc__.split("\n\n", 1)[0])
parser = argparse.ArgumentParser(allow_abbrev=False,
description=__doc__.split("\n\n", 1)[0])
parser.add_argument("paths", nargs="+", type=Path, help="files, folders or ZIPs to search")
parser.add_argument("--crc32", required=True, help="crc32 of the wanted file, in hex")
parser.add_argument("--size", required=True, type=int, help="size of the wanted file, in bytes")
@@ -125,4 +126,7 @@ def main() -> int:
if __name__ == "__main__":
sys.exit(main())
sys.path.insert(0, str(Path(__file__).resolve().parent))
from common import run_cli
run_cli(main)