mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-26 11:28:51 -06:00
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:
1 parent
fb33ee58e1
commit
abbfebff3e
11 files changed
+63
-27
No files matched your search
@@ -68,7 +68,7 @@ class BeforeOpeningAPullRequest(unittest.TestCase):
|
||||
section = text.split("## Before opening a PR", 1)[1].split("\n## ", 1)[0]
|
||||
block = "".join(_re.findall(r"```bash\n(.*?)```", section, _re.S))
|
||||
for command in ("validate_pr.py --changed", "validate_schemas.py --source-only",
|
||||
"unittest discover"):
|
||||
"run_tests.py"):
|
||||
self.assertIn(command, block)
|
||||
self.assertNotIn("pipeline.py", block)
|
||||
workflow = (REPO_ROOT / ".github" / "workflows" / "validate.yml").read_text(encoding="utf-8")
|
||||
@@ -268,13 +268,13 @@ class OneCommandRunsTheChecks(unittest.TestCase):
|
||||
workflow = (REPO_ROOT / ".github" / "workflows" / "validate.yml").read_text(encoding="utf-8")
|
||||
order = [workflow.index(key) for key in (
|
||||
"refresh_data_dirs.py", "run: python scripts/generate_site.py",
|
||||
"npm run build --prefix website", "python -m unittest discover",
|
||||
"npm run build --prefix website", "python scripts/run_tests.py",
|
||||
"validate_site.py")]
|
||||
self.assertEqual(order, sorted(order))
|
||||
commands = [step.command for step in pr_checks.STEPS]
|
||||
positions = [next(i for i, c in enumerate(commands) if key in c) for key in (
|
||||
"refresh_data_dirs.py", "generate_site.py", "npm run build",
|
||||
"unittest discover", "validate_site.py")]
|
||||
"run_tests.py", "validate_site.py")]
|
||||
self.assertEqual(positions, sorted(positions))
|
||||
|
||||
def test_the_guide_gives_the_runner_and_what_it_runs(self):
|
||||
|
||||
Reference in new issue
Block a user