| for file in glob.glob("zuul.d/container-images/*.yaml"): |
| with open(file, "r") as file: |
| configs = yaml.safe_load(file) |
| # Check if build or upload jobs are missing 'atmosphere-buildset-registry' dependency |
| "build-container-image-" in job["name"] |
| or "upload-container-image-" in job["name"] |
| deps = job.get("dependencies", []) |
| dep.get("name") == "atmosphere-buildset-registry" |
| f"Job '{job['name']}' is missing 'atmosphere-buildset-registry' dependency." |
| "All build and upload jobs have 'atmosphere-buildset-registry' dependency." |
| print("Jobs missing 'atmosphere-buildset-registry' dependency.") |
| if __name__ == "__main__": |