From 078b11f2dc2f1da757aa1ff78aeaf424dfda7983 Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Mar 21 2019 11:15:04 +0000 Subject: Add koji-build-group.build.* message type These messages will be used to denote that a group of brew builds gathered under a side-tag is ready for testing and corresponding repository containing relevant packages has been created. --- diff --git a/examples/koji-build-group.build.complete.json b/examples/koji-build-group.build.complete.json new file mode 100644 index 0000000..3bf8c84 --- /dev/null +++ b/examples/koji-build-group.build.complete.json @@ -0,0 +1,35 @@ +{ + "contact": { + "name": "BaseOS CI", + "team": "BaseOS", + "url": "https://somewhere.com", + "docs": "https://somewhere.com/user-documentation", + "irc": "#baseosci", + "email": "baseos-ci@somewhere.com" + }, + "artifact": { + "type": "rpm-build-group", + "id": "selinux-update-345", + "repository": "https://some.url/repo", + "builds": + [{ + "type": "koji-build", + "id": 14546276, + "issuer": "plautrba", + "component": "libselinux", + "nvr": "libselinux-2.8-6.fc29.x86_64", + "scratch": false, + "source": "git+https://src.fedoraproject.org/rpms/libselinux.git?#5e0ae23a" + }, { + "type": "koji-build", + "id": 14546277, + "issuer": "plautrba", + "component": "libsepol", + "nvr": "libsepol-2.8-3.fc29.x86_64", + "scratch": false, + "source": "git+https://src.fedoraproject.org/rpms/libsepol.git?#5e0ae23a" + }] + }, + "generated_at": "2018-05-10 08:58:31.222602", + "version": "0.2.2" +} diff --git a/examples/koji-build-group.build.error.json b/examples/koji-build-group.build.error.json new file mode 100644 index 0000000..b6b277f --- /dev/null +++ b/examples/koji-build-group.build.error.json @@ -0,0 +1,39 @@ +{ + "contact": { + "name": "BaseOS CI", + "team": "BaseOS", + "url": "https://somewhere.com", + "docs": "https://somewhere.com/user-documentation", + "irc": "#baseosci", + "email": "baseos-ci@somewhere.com" + }, + "artifact": { + "type": "rpm-build-group", + "id": "selinux-update-345", + "repository": "https://some.url/repo", + "builds": + [{ + "type": "koji-build", + "id": 14546276, + "issuer": "plautrba", + "component": "libselinux", + "nvr": "libselinux-2.8-6.fc29.x86_64", + "scratch": false, + "source": "git+https://src.fedoraproject.org/rpms/libselinux.git?#5e0ae23a" + }, { + "type": "koji-build", + "id": 14546277, + "issuer": "plautrba", + "component": "libsepol", + "nvr": "libsepol-2.8-3.fc29.x86_64", + "scratch": false, + "source": "git+https://src.fedoraproject.org/rpms/libsepol.git?#5e0ae23a" + }] + }, + "error": { + "reason": "ODCS repository preparation failed.", + "issue_url": "http://sentry.somewhere.com/baseos/production/issues/1149/" + }, + "generated_at": "2018-05-10 08:58:31.222602", + "version": "0.2.2" +} diff --git a/schemas/koji-build-group.build.complete.yaml b/schemas/koji-build-group.build.complete.yaml new file mode 100644 index 0000000..5544b68 --- /dev/null +++ b/schemas/koji-build-group.build.complete.yaml @@ -0,0 +1,25 @@ +$id: https://pagure.io/fedora-ci/messages/koji-build-group.build.complete +$schema: http://json-schema.org/draft-07/schema# + +description: + Preparation of the build group has been finished. + The side-tag with its associated builds is ready for testing. + Repository with relevant packages has been created. + +properties: + contact: + $ref: contact.json + artifact: + $ref: rpm-build-group.json + generated_at: + $ref: common.json#properties/generated_at + version: + $ref: common.json#properties/version + +required: + - contact + - artifact + - generated_at + - version + +type: object diff --git a/schemas/koji-build-group.build.error.yaml b/schemas/koji-build-group.build.error.yaml new file mode 100644 index 0000000..9d4a275 --- /dev/null +++ b/schemas/koji-build-group.build.error.yaml @@ -0,0 +1,26 @@ +$id: https://pagure.io/fedora-ci/messages/koji-build-group.build.error +$schema: http://json-schema.org/draft-07/schema# + +description: + Preparation of the build group failed. + +properties: + contact: + $ref: contact.json + artifact: + $ref: rpm-build-group.json + error: + $ref: error.json + generated_at: + $ref: common.json#properties/generated_at + version: + $ref: common.json#properties/version + +required: + - contact + - artifact + - error + - generated_at + - version + +type: object