| |
@@ -1,428 +0,0 @@
|
| |
- {
|
| |
- "items": [
|
| |
- {
|
| |
- "state_reason": null,
|
| |
- "tasks": {
|
| |
- "rpms": {
|
| |
- "attr": {
|
| |
- "state": 1,
|
| |
- "nvr": "attr-2.4.47-23.el8+597+f4559f16",
|
| |
- "task_id": 15981597,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "tar": {
|
| |
- "state": 1,
|
| |
- "nvr": "tar-1.30-3.el8+597+f4559f16",
|
| |
- "task_id": 15982006,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "acl": {
|
| |
- "state": 1,
|
| |
- "nvr": "acl-2.2.52-20.el8+597+f4559f16",
|
| |
- "task_id": 15981785,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- }
|
| |
- }
|
| |
- },
|
| |
- "name": "testmodule",
|
| |
- "stream": "rhel-8.0",
|
| |
- "time_submitted": "2018-05-07T10:24:45Z",
|
| |
- "version": "20180507102412",
|
| |
- "time_modified": "2018-05-07T10:25:55Z",
|
| |
- "state_name": "ready",
|
| |
- "scmurl": "git://git.example.com/modules/testmodule?#d8cf5ee02cbbd31615bba3b47c85cca6a8ae54a8",
|
| |
- "state": 5,
|
| |
- "time_completed": "2018-05-07T10:25:38Z",
|
| |
- "koji_tag": "module-e5c3306aa4e9db10",
|
| |
- "context": "c2c572ec",
|
| |
- "owner": "qwan",
|
| |
- "id": 604,
|
| |
- "rebuild_strategy": "only-changed"
|
| |
- },
|
| |
- {
|
| |
- "state_reason": null,
|
| |
- "tasks": {
|
| |
- "rpms": {
|
| |
- "attr": {
|
| |
- "state": 1,
|
| |
- "nvr": "attr-2.4.47-23.el8+597+f4559f16",
|
| |
- "task_id": 15981597,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "tar": {
|
| |
- "state": 1,
|
| |
- "nvr": "tar-1.30-3.el8+597+f4559f16",
|
| |
- "task_id": 15982006,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "acl": {
|
| |
- "state": 1,
|
| |
- "nvr": "acl-2.2.52-20.el8+597+f4559f16",
|
| |
- "task_id": 15981785,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- }
|
| |
- }
|
| |
- },
|
| |
- "name": "testmodule",
|
| |
- "stream": "rhel-8.0",
|
| |
- "time_submitted": "2018-05-04T14:42:54Z",
|
| |
- "version": "20180504144016",
|
| |
- "time_modified": "2018-05-04T14:43:59Z",
|
| |
- "state_name": "ready",
|
| |
- "scmurl": "git://git.example.com/modules/testmodule?#c1c797f752aac7049b2cfe829f61f47615fd327c",
|
| |
- "state": 5,
|
| |
- "time_completed": "2018-05-04T14:43:44Z",
|
| |
- "koji_tag": "module-1420813c8fdf4ed3",
|
| |
- "context": "c2c572ec",
|
| |
- "owner": "qwan",
|
| |
- "id": 601,
|
| |
- "rebuild_strategy": "only-changed"
|
| |
- },
|
| |
- {
|
| |
- "state_reason": null,
|
| |
- "tasks": {
|
| |
- "rpms": {
|
| |
- "attr": {
|
| |
- "state": 1,
|
| |
- "nvr": "attr-2.4.47-23.el8+597+f4559f16",
|
| |
- "task_id": 15981597,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "tar": {
|
| |
- "state": 1,
|
| |
- "nvr": "tar-1.30-3.el8+597+f4559f16",
|
| |
- "task_id": 15982006,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "acl": {
|
| |
- "state": 1,
|
| |
- "nvr": "acl-2.2.52-20.el8+597+f4559f16",
|
| |
- "task_id": 15981785,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- }
|
| |
- }
|
| |
- },
|
| |
- "name": "testmodule",
|
| |
- "stream": "rhel-8.0",
|
| |
- "time_submitted": "2018-05-04T13:38:15Z",
|
| |
- "version": "20180504133734",
|
| |
- "time_modified": "2018-05-04T13:39:22Z",
|
| |
- "state_name": "ready",
|
| |
- "scmurl": "git://git.example.com/modules/testmodule?#c1bc8f60a2312e1ae9a16e4bbdbd3886bfdcd307",
|
| |
- "state": 5,
|
| |
- "time_completed": "2018-05-04T13:39:06Z",
|
| |
- "koji_tag": "module-77608f07f91fbeb4",
|
| |
- "context": "c2c572ec",
|
| |
- "owner": "qwan",
|
| |
- "id": 599,
|
| |
- "rebuild_strategy": "only-changed"
|
| |
- },
|
| |
- {
|
| |
- "state_reason": null,
|
| |
- "tasks": {
|
| |
- "rpms": {
|
| |
- "module-build-macros": {
|
| |
- "state": 1,
|
| |
- "nvr": "module-build-macros-0.1-1.el8+597+f4559f16",
|
| |
- "task_id": 15981248,
|
| |
- "state_reason": ""
|
| |
- },
|
| |
- "attr": {
|
| |
- "state": 1,
|
| |
- "nvr": "attr-2.4.47-23.el8+597+f4559f16",
|
| |
- "task_id": 15981597,
|
| |
- "state_reason": ""
|
| |
- },
|
| |
- "tar": {
|
| |
- "state": 1,
|
| |
- "nvr": "tar-1.30-3.el8+597+f4559f16",
|
| |
- "task_id": 15982006,
|
| |
- "state_reason": ""
|
| |
- },
|
| |
- "acl": {
|
| |
- "state": 1,
|
| |
- "nvr": "acl-2.2.52-20.el8+597+f4559f16",
|
| |
- "task_id": 15981785,
|
| |
- "state_reason": ""
|
| |
- }
|
| |
- }
|
| |
- },
|
| |
- "name": "testmodule",
|
| |
- "stream": "rhel-8.0",
|
| |
- "time_submitted": "2018-05-04T11:27:02Z",
|
| |
- "version": "20180427135953",
|
| |
- "time_modified": "2018-05-04T12:52:16Z",
|
| |
- "state_name": "ready",
|
| |
- "scmurl": "git://git.example.com/modules/testmodule?#f3b7e3c959df0924c7b42400e53a8b1612d95811",
|
| |
- "state": 5,
|
| |
- "time_completed": "2018-05-04T12:52:05Z",
|
| |
- "koji_tag": "module-f4559f16be91b6a5",
|
| |
- "context": "c2c572ec",
|
| |
- "owner": "qwan",
|
| |
- "id": 597,
|
| |
- "rebuild_strategy": "all"
|
| |
- },
|
| |
- {
|
| |
- "state_reason": "Some components failed to build.",
|
| |
- "tasks": {
|
| |
- "rpms": {
|
| |
- "module-build-macros": {
|
| |
- "state": 1,
|
| |
- "nvr": "module-build-macros-0.1-1.el8+596+6aea3164",
|
| |
- "task_id": 15980980,
|
| |
- "state_reason": ""
|
| |
- },
|
| |
- "attr": {
|
| |
- "state": 3,
|
| |
- "nvr": "attr-None-None",
|
| |
- "task_id": 15981181,
|
| |
- "state_reason": "Failed to build artifact attr in Koji"
|
| |
- },
|
| |
- "tar": {
|
| |
- "state": 3,
|
| |
- "nvr": null,
|
| |
- "task_id": null,
|
| |
- "state_reason": "Some components failed to build."
|
| |
- },
|
| |
- "acl": {
|
| |
- "state": 3,
|
| |
- "nvr": null,
|
| |
- "task_id": null,
|
| |
- "state_reason": "Some components failed to build."
|
| |
- }
|
| |
- }
|
| |
- },
|
| |
- "name": "testmodule",
|
| |
- "stream": "rhel-8.0",
|
| |
- "time_submitted": "2018-05-04T10:56:17Z",
|
| |
- "version": "20180404100637",
|
| |
- "time_modified": "2018-05-04T11:27:56Z",
|
| |
- "state_name": "failed",
|
| |
- "scmurl": "git://git.example.com/modules/testmodule?#47977ee4c33f8f3587ae4d8f6a5d8060f81ff1e6",
|
| |
- "state": 4,
|
| |
- "time_completed": "2018-05-04T11:27:55Z",
|
| |
- "koji_tag": "module-6aea3164a55257fe",
|
| |
- "context": "9e5fe74b",
|
| |
- "owner": "qwan",
|
| |
- "id": 596,
|
| |
- "rebuild_strategy": "all"
|
| |
- },
|
| |
- {
|
| |
- "state_reason": null,
|
| |
- "tasks": {
|
| |
- "rpms": {
|
| |
- "attr": {
|
| |
- "state": 1,
|
| |
- "nvr": "attr-2.4.47-21.el8+340+14075d1c",
|
| |
- "task_id": 15400861,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "tar": {
|
| |
- "state": 1,
|
| |
- "nvr": "tar-1.29-7.el8+340+14075d1c",
|
| |
- "task_id": 15400952,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "acl": {
|
| |
- "state": 1,
|
| |
- "nvr": "acl-2.2.52-18.el8+340+14075d1c",
|
| |
- "task_id": 15400907,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- }
|
| |
- }
|
| |
- },
|
| |
- "name": "testmodule",
|
| |
- "stream": "rhel-8.0",
|
| |
- "time_submitted": "2018-03-01T15:12:03Z",
|
| |
- "version": "20180301151140",
|
| |
- "time_modified": "2018-03-01T15:13:57Z",
|
| |
- "state_name": "ready",
|
| |
- "scmurl": "git://git.example.com/modules/testmodule?#b013556b0b6d4a9571090b7d6ce7efa501bd5775",
|
| |
- "state": 5,
|
| |
- "time_completed": "2018-03-01T15:13:38Z",
|
| |
- "koji_tag": "module-b24a77a1448f0694",
|
| |
- "context": "9e5fe74b",
|
| |
- "owner": "mprahl",
|
| |
- "id": 345,
|
| |
- "rebuild_strategy": "only-changed"
|
| |
- },
|
| |
- {
|
| |
- "state_reason": null,
|
| |
- "tasks": {
|
| |
- "rpms": {
|
| |
- "module-build-macros": {
|
| |
- "state": 1,
|
| |
- "nvr": "module-build-macros-0.1-1.el8+340+14075d1c",
|
| |
- "task_id": 15400820,
|
| |
- "state_reason": ""
|
| |
- },
|
| |
- "attr": {
|
| |
- "state": 1,
|
| |
- "nvr": "attr-2.4.47-21.el8+340+14075d1c",
|
| |
- "task_id": 15400861,
|
| |
- "state_reason": ""
|
| |
- },
|
| |
- "tar": {
|
| |
- "state": 1,
|
| |
- "nvr": "tar-1.29-7.el8+340+14075d1c",
|
| |
- "task_id": 15400952,
|
| |
- "state_reason": ""
|
| |
- },
|
| |
- "acl": {
|
| |
- "state": 1,
|
| |
- "nvr": "acl-2.2.52-18.el8+340+14075d1c",
|
| |
- "task_id": 15400907,
|
| |
- "state_reason": ""
|
| |
- }
|
| |
- }
|
| |
- },
|
| |
- "name": "testmodule",
|
| |
- "stream": "rhel-8.0",
|
| |
- "time_submitted": "2018-02-24T01:11:00Z",
|
| |
- "version": "20180224011047",
|
| |
- "time_modified": "2018-02-24T02:27:37Z",
|
| |
- "state_name": "ready",
|
| |
- "scmurl": "git://git.example.com/modules/testmodule?#7d75e36e6987b21405881d7af2d391528b5b7aa0",
|
| |
- "state": 5,
|
| |
- "time_completed": "2018-02-24T02:27:26Z",
|
| |
- "koji_tag": "module-e264bb31ded5336a",
|
| |
- "context": "9e5fe74b",
|
| |
- "owner": "mprahl",
|
| |
- "id": 340,
|
| |
- "rebuild_strategy": "all"
|
| |
- },
|
| |
- {
|
| |
- "state_reason": null,
|
| |
- "tasks": {
|
| |
- "rpms": {
|
| |
- "module-build-macros": {
|
| |
- "state": 1,
|
| |
- "nvr": "module-build-macros-0.1-1.el8+337+e6ed8a58",
|
| |
- "task_id": 15395536,
|
| |
- "state_reason": ""
|
| |
- },
|
| |
- "attr": {
|
| |
- "state": 1,
|
| |
- "nvr": "attr-2.4.47-21.el8+337+e6ed8a58",
|
| |
- "task_id": 15396151,
|
| |
- "state_reason": ""
|
| |
- },
|
| |
- "tar": {
|
| |
- "state": 1,
|
| |
- "nvr": "tar-1.29-7.el8+337+e6ed8a58",
|
| |
- "task_id": 15396780,
|
| |
- "state_reason": ""
|
| |
- },
|
| |
- "acl": {
|
| |
- "state": 1,
|
| |
- "nvr": "acl-2.2.52-18.el8+337+e6ed8a58",
|
| |
- "task_id": 15396348,
|
| |
- "state_reason": ""
|
| |
- }
|
| |
- }
|
| |
- },
|
| |
- "name": "testmodule",
|
| |
- "stream": "rhel-8.0",
|
| |
- "time_submitted": "2018-02-23T13:43:25Z",
|
| |
- "version": "20180223134306",
|
| |
- "time_modified": "2018-02-23T15:17:27Z",
|
| |
- "state_name": "ready",
|
| |
- "scmurl": "git://git.example.com/modules/testmodule?#186ef95f5c4eb29649939ae217ec110fba23e7eb",
|
| |
- "state": 5,
|
| |
- "time_completed": "2018-02-23T15:17:17Z",
|
| |
- "koji_tag": "module-f64de0dce712108d",
|
| |
- "context": "9e5fe74b",
|
| |
- "owner": "mprahl",
|
| |
- "id": 337,
|
| |
- "rebuild_strategy": "all"
|
| |
- },
|
| |
- {
|
| |
- "state_reason": null,
|
| |
- "tasks": {
|
| |
- "rpms": {
|
| |
- "attr": {
|
| |
- "state": 1,
|
| |
- "nvr": "attr-2.4.47-21.el8+4f3ed7d2",
|
| |
- "task_id": 14673135,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "tar": {
|
| |
- "state": 1,
|
| |
- "nvr": "tar-1.29-7.el8+4f3ed7d2",
|
| |
- "task_id": 14673557,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "acl": {
|
| |
- "state": 1,
|
| |
- "nvr": "acl-2.2.52-18.el8+4f3ed7d2",
|
| |
- "task_id": 14673370,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- }
|
| |
- }
|
| |
- },
|
| |
- "name": "testmodule",
|
| |
- "stream": "rhel-8.0",
|
| |
- "time_submitted": "2018-02-23T13:41:23Z",
|
| |
- "version": "20180223134116",
|
| |
- "time_modified": "2018-02-23T13:42:51Z",
|
| |
- "state_name": "ready",
|
| |
- "scmurl": "git://git.example.com/modules/testmodule?#aab4447c752e2f76359b2eabdcc5e2af8c67c2c2",
|
| |
- "state": 5,
|
| |
- "time_completed": "2018-02-23T13:42:38Z",
|
| |
- "koji_tag": "module-1ee24721dddcd2b9",
|
| |
- "context": "9e5fe74b",
|
| |
- "owner": "mprahl",
|
| |
- "id": 336,
|
| |
- "rebuild_strategy": "only-changed"
|
| |
- },
|
| |
- {
|
| |
- "state_reason": null,
|
| |
- "tasks": {
|
| |
- "rpms": {
|
| |
- "attr": {
|
| |
- "state": 1,
|
| |
- "nvr": "attr-2.4.47-21.el8+4f3ed7d2",
|
| |
- "task_id": 14673135,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "tar": {
|
| |
- "state": 1,
|
| |
- "nvr": "tar-1.29-7.el8+4f3ed7d2",
|
| |
- "task_id": 14673557,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- },
|
| |
- "acl": {
|
| |
- "state": 1,
|
| |
- "nvr": "acl-2.2.52-18.el8+4f3ed7d2",
|
| |
- "task_id": 14673370,
|
| |
- "state_reason": "Reused component from previous module build"
|
| |
- }
|
| |
- }
|
| |
- },
|
| |
- "name": "testmodule",
|
| |
- "stream": "rhel-8.0",
|
| |
- "time_submitted": "2018-02-23T13:02:08Z",
|
| |
- "version": "20180223130158",
|
| |
- "time_modified": "2018-02-23T13:03:58Z",
|
| |
- "state_name": "ready",
|
| |
- "scmurl": "git://git.example.com/modules/testmodule?#6be2fbebf30576d7de76506e79db54e18251f5b7",
|
| |
- "state": 5,
|
| |
- "time_completed": "2018-02-23T13:03:36Z",
|
| |
- "koji_tag": "module-0b37bf984472be82",
|
| |
- "context": "9e5fe74b",
|
| |
- "owner": "jkaluza",
|
| |
- "id": 335,
|
| |
- "rebuild_strategy": "only-changed"
|
| |
- }
|
| |
- ],
|
| |
- "meta": {
|
| |
- "prev": null,
|
| |
- "last": "https://mbs.example.com/module-build-service/1/module-builds/?per_page=10&page=3&name=testmodule",
|
| |
- "next": "https://mbs.example.com/module-build-service/1/module-builds/?per_page=10&page=2&name=testmodule",
|
| |
- "total": 27,
|
| |
- "per_page": 10,
|
| |
- "first": "https://mbs.example.com/module-build-service/1/module-builds/?per_page=10&page=1&name=testmodule",
|
| |
- "pages": 3,
|
| |
- "page": 1
|
| |
- }
|
| |
- }
|
| |
\ No newline at end of file
|
| |
Refactor get_modules and fix get_modules not get 'garbage' builds while checking exiting module builds.