debian-mirror-gitlab/spec/frontend/pipelines/__snapshots__/utils_spec.js.snap

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

461 lines
14 KiB
Text
Raw Normal View History

2021-06-08 01:23:25 +05:30
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`DAG visualization parsing utilities generateColumnsFromLayersList matches the snapshot 1`] = `
Array [
Object {
"groups": Array [
Object {
"__typename": "CiGroup",
2022-01-26 12:08:38 +05:30
"id": "4",
2021-06-08 01:23:25 +05:30
"jobs": Array [
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "6",
2021-06-08 01:23:25 +05:30
"name": "build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl",
"needs": Array [],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": Object {
"__typename": "StatusAction",
"buttonTitle": "Retry this job",
"icon": "retry",
2022-01-26 12:08:38 +05:30
"id": "8",
2021-06-08 01:23:25 +05:30
"path": "/root/abcd-dag/-/jobs/1482/retry",
"title": "Retry",
},
"detailsPath": "/root/abcd-dag/-/jobs/1482",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "7",
2022-04-04 11:22:00 +05:30
"label": "passed",
2021-06-08 01:23:25 +05:30
"tooltip": "passed",
},
},
],
"name": "build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl",
"size": 1,
"stageName": "build",
"status": Object {
"__typename": "DetailedStatus",
"group": "success",
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "5",
2021-06-08 01:23:25 +05:30
"label": "passed",
},
},
Object {
"__typename": "CiGroup",
2022-01-26 12:08:38 +05:30
"id": "9",
2021-06-08 01:23:25 +05:30
"jobs": Array [
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "11",
2021-06-08 01:23:25 +05:30
"name": "build_b",
"needs": Array [],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": Object {
"__typename": "StatusAction",
"buttonTitle": "Retry this job",
"icon": "retry",
2022-01-26 12:08:38 +05:30
"id": "13",
2021-06-08 01:23:25 +05:30
"path": "/root/abcd-dag/-/jobs/1515/retry",
"title": "Retry",
},
"detailsPath": "/root/abcd-dag/-/jobs/1515",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "12",
2022-04-04 11:22:00 +05:30
"label": "passed",
2021-06-08 01:23:25 +05:30
"tooltip": "passed",
},
},
],
"name": "build_b",
"size": 1,
"stageName": "build",
"status": Object {
"__typename": "DetailedStatus",
"group": "success",
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "10",
2021-06-08 01:23:25 +05:30
"label": "passed",
},
},
Object {
"__typename": "CiGroup",
2022-01-26 12:08:38 +05:30
"id": "14",
2021-06-08 01:23:25 +05:30
"jobs": Array [
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "16",
2021-06-08 01:23:25 +05:30
"name": "build_c",
"needs": Array [],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": Object {
"__typename": "StatusAction",
"buttonTitle": "Retry this job",
"icon": "retry",
2022-01-26 12:08:38 +05:30
"id": "18",
2021-06-08 01:23:25 +05:30
"path": "/root/abcd-dag/-/jobs/1484/retry",
"title": "Retry",
},
"detailsPath": "/root/abcd-dag/-/jobs/1484",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "17",
2022-04-04 11:22:00 +05:30
"label": "passed",
2021-06-08 01:23:25 +05:30
"tooltip": "passed",
},
},
],
"name": "build_c",
"size": 1,
"stageName": "build",
"status": Object {
"__typename": "DetailedStatus",
"group": "success",
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "15",
2021-06-08 01:23:25 +05:30
"label": "passed",
},
},
Object {
"__typename": "CiGroup",
2022-01-26 12:08:38 +05:30
"id": "19",
2021-06-08 01:23:25 +05:30
"jobs": Array [
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "21",
2021-06-08 01:23:25 +05:30
"name": "build_d 1/3",
"needs": Array [],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": Object {
"__typename": "StatusAction",
"buttonTitle": "Retry this job",
"icon": "retry",
2022-01-26 12:08:38 +05:30
"id": "23",
2021-06-08 01:23:25 +05:30
"path": "/root/abcd-dag/-/jobs/1485/retry",
"title": "Retry",
},
"detailsPath": "/root/abcd-dag/-/jobs/1485",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "22",
2022-04-04 11:22:00 +05:30
"label": "passed",
2021-06-08 01:23:25 +05:30
"tooltip": "passed",
},
},
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "24",
2021-06-08 01:23:25 +05:30
"name": "build_d 2/3",
"needs": Array [],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": Object {
"__typename": "StatusAction",
"buttonTitle": "Retry this job",
"icon": "retry",
2022-01-26 12:08:38 +05:30
"id": "26",
2021-06-08 01:23:25 +05:30
"path": "/root/abcd-dag/-/jobs/1486/retry",
"title": "Retry",
},
"detailsPath": "/root/abcd-dag/-/jobs/1486",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "25",
2022-04-04 11:22:00 +05:30
"label": "passed",
2021-06-08 01:23:25 +05:30
"tooltip": "passed",
},
},
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "27",
2021-06-08 01:23:25 +05:30
"name": "build_d 3/3",
"needs": Array [],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": Object {
"__typename": "StatusAction",
"buttonTitle": "Retry this job",
"icon": "retry",
2022-01-26 12:08:38 +05:30
"id": "29",
2021-06-08 01:23:25 +05:30
"path": "/root/abcd-dag/-/jobs/1487/retry",
"title": "Retry",
},
"detailsPath": "/root/abcd-dag/-/jobs/1487",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "28",
2022-04-04 11:22:00 +05:30
"label": "passed",
2021-06-08 01:23:25 +05:30
"tooltip": "passed",
},
},
],
"name": "build_d",
"size": 3,
"stageName": "build",
"status": Object {
"__typename": "DetailedStatus",
"group": "success",
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "20",
2021-06-08 01:23:25 +05:30
"label": "passed",
},
},
Object {
"__typename": "CiGroup",
2022-01-26 12:08:38 +05:30
"id": "57",
2021-06-08 01:23:25 +05:30
"jobs": Array [
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "59",
2021-06-08 01:23:25 +05:30
"name": "test_c",
"needs": Array [],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": null,
"detailsPath": "/root/kinder-pipe/-/pipelines/154",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "60",
2022-04-04 11:22:00 +05:30
"label": null,
2021-06-08 01:23:25 +05:30
"tooltip": null,
},
},
],
"name": "test_c",
"size": 1,
"stageName": "test",
"status": Object {
"__typename": "DetailedStatus",
"group": "success",
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "58",
2021-06-08 01:23:25 +05:30
"label": null,
},
},
],
"id": "layer-0",
"name": "",
"status": Object {
"action": null,
},
},
Object {
"groups": Array [
Object {
"__typename": "CiGroup",
2022-01-26 12:08:38 +05:30
"id": "32",
2021-06-08 01:23:25 +05:30
"jobs": Array [
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "34",
2021-06-08 01:23:25 +05:30
"name": "test_a",
"needs": Array [
"build_c",
"build_b",
"build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl",
],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [
"build_c",
"build_b",
"build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl",
],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": Object {
"__typename": "StatusAction",
"buttonTitle": "Retry this job",
"icon": "retry",
2022-01-26 12:08:38 +05:30
"id": "36",
2021-06-08 01:23:25 +05:30
"path": "/root/abcd-dag/-/jobs/1514/retry",
"title": "Retry",
},
"detailsPath": "/root/abcd-dag/-/jobs/1514",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "35",
2022-04-04 11:22:00 +05:30
"label": "passed",
2021-06-08 01:23:25 +05:30
"tooltip": "passed",
},
},
],
"name": "test_a",
"size": 1,
"stageName": "test",
"status": Object {
"__typename": "DetailedStatus",
"group": "success",
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "33",
2021-06-08 01:23:25 +05:30
"label": "passed",
},
},
Object {
"__typename": "CiGroup",
2022-01-26 12:08:38 +05:30
"id": "40",
2021-06-08 01:23:25 +05:30
"jobs": Array [
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "42",
2021-06-08 01:23:25 +05:30
"name": "test_b 1/2",
"needs": Array [
"build_d 3/3",
"build_d 2/3",
"build_d 1/3",
"build_b",
"build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl",
],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [
"build_d 3/3",
"build_d 2/3",
"build_d 1/3",
"build_b",
"build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl",
],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": Object {
"__typename": "StatusAction",
"buttonTitle": "Retry this job",
"icon": "retry",
2022-01-26 12:08:38 +05:30
"id": "44",
2021-06-08 01:23:25 +05:30
"path": "/root/abcd-dag/-/jobs/1489/retry",
"title": "Retry",
},
"detailsPath": "/root/abcd-dag/-/jobs/1489",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "43",
2022-04-04 11:22:00 +05:30
"label": "passed",
2021-06-08 01:23:25 +05:30
"tooltip": "passed",
},
},
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "67",
2021-06-08 01:23:25 +05:30
"name": "test_b 2/2",
"needs": Array [
"build_d 3/3",
"build_d 2/3",
"build_d 1/3",
"build_b",
"build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl",
],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [
"build_d 3/3",
"build_d 2/3",
"build_d 1/3",
"build_b",
"build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl",
],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": Object {
"__typename": "StatusAction",
"buttonTitle": "Retry this job",
"icon": "retry",
2022-01-26 12:08:38 +05:30
"id": "51",
2021-06-08 01:23:25 +05:30
"path": "/root/abcd-dag/-/jobs/1490/retry",
"title": "Retry",
},
"detailsPath": "/root/abcd-dag/-/jobs/1490",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "50",
2022-04-04 11:22:00 +05:30
"label": "passed",
2021-06-08 01:23:25 +05:30
"tooltip": "passed",
},
},
],
"name": "test_b",
"size": 2,
"stageName": "test",
"status": Object {
"__typename": "DetailedStatus",
"group": "success",
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "41",
2021-06-08 01:23:25 +05:30
"label": "passed",
},
},
Object {
"__typename": "CiGroup",
2022-01-26 12:08:38 +05:30
"id": "61",
2021-06-08 01:23:25 +05:30
"jobs": Array [
Object {
"__typename": "CiJob",
2022-01-26 12:08:38 +05:30
"id": "53",
2021-06-08 01:23:25 +05:30
"name": "test_d",
"needs": Array [
"build_b",
],
2022-03-02 08:16:31 +05:30
"previousStageJobsOrNeeds": Array [
"build_b",
],
2021-06-08 01:23:25 +05:30
"scheduledAt": null,
"status": Object {
"__typename": "DetailedStatus",
"action": null,
"detailsPath": "/root/abcd-dag/-/pipelines/153",
"group": "success",
"hasDetails": true,
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "64",
2022-04-04 11:22:00 +05:30
"label": null,
2021-06-08 01:23:25 +05:30
"tooltip": null,
},
},
],
"name": "test_d",
"size": 1,
"stageName": "test",
"status": Object {
"__typename": "DetailedStatus",
"group": "success",
"icon": "status_success",
2022-01-26 12:08:38 +05:30
"id": "62",
2021-06-08 01:23:25 +05:30
"label": null,
},
},
],
"id": "layer-1",
"name": "",
"status": Object {
"action": null,
},
},
]
`;