Rollup merge of #135953 - cuviper:ci-run-local-fail, r=Kobzol

ci.py: check the return code in `run-local`

If the run fails, it should report that and return a non-zero exit
status. The simplest way to do that is with `run(..., check=True)`,
which raises a `CalledProcessError`.
This commit is contained in:
Jacob Pratt
2025-01-26 01:51:17 -05:00
committed by GitHub
+1 -1
View File
@@ -249,7 +249,7 @@ def run_workflow_locally(job_data: Dict[str, Any], job_name: str, pr_jobs: bool)
env = os.environ.copy()
env.update(custom_env)
subprocess.run(args, env=env)
subprocess.run(args, env=env, check=True)
def calculate_job_matrix(job_data: Dict[str, Any]):