diff --git a/.circleci/config.yml b/.circleci/config.yml index f174ad2b8ec..9ff13529823 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -87,7 +87,8 @@ jobs: set +eu # convert to json, run a python script, write out json (which is a readable as YAML) pip install PyYAML - build-system/scripts/generate_circleci_config.py > .circleci/generated_config.yml + build-system/scripts/generate_circleci_config.py + #> .circleci/generated_config.yml cat .circleci/generated_config.yml echo "[]" > .circleci/generated_config.yml - continuation/continue: diff --git a/build-system/scripts/generate_circleci_config.py b/build-system/scripts/generate_circleci_config.py index 67618dfb053..ba853a3f7c2 100755 --- a/build-system/scripts/generate_circleci_config.py +++ b/build-system/scripts/generate_circleci_config.py @@ -88,10 +88,6 @@ def remove_jobs_from_workflow(jobs, to_remove): job[key]["requires"] = [r for r in job[key].get("requires", []) if r not in jobs_to_remove] new_jobs.append(job) return new_jobs -import sys - -def eprint(*args, **kwargs): - print(*args, file=sys.stderr, **kwargs) if __name__ == '__main__': # The CircleCI workflow as a JSON string (Replace this with your actual workflow) @@ -102,7 +98,7 @@ def eprint(*args, **kwargs): # # List of jobs to remove jobs_to_remove = list(get_already_built_circleci_job_names(workflow_dict["jobs"])) for key in jobs_to_remove: - eprint("KEY", key) + print("KEY", key) # Get rid of workflow setup step and setup flag workflow_dict["setup"] = False @@ -112,4 +108,4 @@ def eprint(*args, **kwargs): workflow_dict["workflows"]["system"]["when"] = {"equal":["system","<< pipeline.parameters.workflow >>"]} # Convert the new workflow back to JSON string new_workflow_json_str = json.dumps(workflow_dict, indent=2) - print(new_workflow_json_str) \ No newline at end of file + # print(new_workflow_json_str) \ No newline at end of file