| |
@@ -34,15 +34,15 @@
|
| |
2020-02-04 06:15:20 [INFO ] [BEGIN] ---------- PHASE: WEAVER ----------
|
| |
2020-02-04 06:15:21 [INFO ] [DONE ] ---------- PHASE: WEAVER ----------
|
| |
2020-02-04 06:15:21 [INFO ] [BEGIN] ---------- PHASE: CREATEISO ----------
|
| |
- 2020-02-04 06:35:39 [ERROR ] Compose run failed: ImageBuild task failed: 41350838. See /mnt/koji/compose/cloud/Fedora-Cloud-30-20200204.0/logs/aarch64-ppc64le-s390x-x86_64/imagebuild-Cloud-Cloud_Base-qcow2-raw-xz.aarch64-ppc64le-s390x-x86_64.log for more details.
|
| |
+ 2020-02-04 06:35:39 [ERROR ] Compose run failed: ImageBuild task failed: 413508381. See /mnt/koji/compose/cloud/Fedora-Cloud-30-20200204.0/logs/aarch64-ppc64le-s390x-x86_64/imagebuild-Cloud-Cloud_Base-qcow2-raw-xz.aarch64-ppc64le-s390x-x86_64.log for more details.
|
| |
2020-02-04 06:35:39 [ERROR ] Extended traceback in: /mnt/koji/compose/cloud/Fedora-Cloud-30-20200204.0/logs/global/traceback.global.log
|
| |
"""
|
| |
|
| |
EXAMPLE_PUNGI_LOG_INCOMPLETE = """2020-02-04 05:59:24 [INFO ] [BEGIN] ---------- PHASE: OSTREE ----------
|
| |
2020-02-04 06:03:08 [ERROR ] [FAIL] Ostree (variant Silverblue, arch x86_64) failed, but going on anyway.
|
| |
- 2020-02-04 06:03:08 [ERROR ] Runroot task failed: 41350821. See /mnt/koji/compose/rawhide/Fedora-Rawhide-20200204.n.0/logs/x86_64/Silverblue/ostree-1/runroot.log for more details.
|
| |
+ 2020-02-04 06:03:08 [ERROR ] Runroot task failed: 413508211. See /mnt/koji/compose/rawhide/Fedora-Rawhide-20200204.n.0/logs/x86_64/Silverblue/ostree-1/runroot.log for more details.
|
| |
2020-02-04 06:03:40 [ERROR ] [FAIL] Ostree (variant Silverblue, arch ppc64le) failed, but going on anyway.
|
| |
- 2020-02-04 06:03:40 [ERROR ] Runroot task failed: 41350822. See /mnt/koji/compose/rawhide/Fedora-Rawhide-20200204.n.0/logs/ppc64le/Silverblue/ostree-2/runroot.log for more details.
|
| |
+ 2020-02-04 06:03:40 [ERROR ] Runroot task failed: 413508221. See /mnt/koji/compose/rawhide/Fedora-Rawhide-20200204.n.0/logs/ppc64le/Silverblue/ostree-2/runroot.log for more details.
|
| |
2020-02-04 06:04:44 [INFO ] [DONE ] ---------- PHASE: OSTREE ----------
|
| |
"""
|
| |
|
| |
@@ -80,7 +80,7 @@
|
| |
msg = fedora_messaging.api.Message(
|
| |
topic="org.fedoraproject.prod.pungi.compose.status.change", body=EXAMPLE_MESSAGE_BODY,
|
| |
)
|
| |
- con.process(msg)
|
| |
+ con.process(msg, eln=False)
|
| |
assert "Fedora-Rawhide-20190619.n.0 DOOMED" in caplog.text
|
| |
|
| |
|
| |
@@ -90,7 +90,7 @@
|
| |
mocker.patch("compose_tracker.requests")
|
| |
mocker.patch(
|
| |
"compose_tracker.fedora_messaging.config.conf",
|
| |
- {"consumer_config": {"composes_to_skip": ["IoT"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}},
|
| |
+ {"consumer_config": {"composes_to_skip": ["IoT"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}, "publish_priority": None},
|
| |
)
|
| |
con = Consumer()
|
| |
body = copy.copy(EXAMPLE_MESSAGE_BODY)
|
| |
@@ -98,7 +98,7 @@
|
| |
msg = fedora_messaging.api.Message(
|
| |
topic="org.fedoraproject.prod.pungi.compose.status.change", body=body,
|
| |
)
|
| |
- con.process(msg)
|
| |
+ con.process(msg, eln=False)
|
| |
assert "Skipping filing issues for IoT composes" in caplog.text
|
| |
|
| |
|
| |
@@ -108,13 +108,13 @@
|
| |
mocker.patch("compose_tracker.requests")
|
| |
mocker.patch(
|
| |
"compose_tracker.fedora_messaging.config.conf",
|
| |
- {"consumer_config": {"composes_to_skip": ["IoT", "Rawhide"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}},
|
| |
+ {"consumer_config": {"composes_to_skip": ["IoT", "Rawhide"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}, "publish_priority": None},
|
| |
)
|
| |
con = Consumer()
|
| |
msg = fedora_messaging.api.Message(
|
| |
topic="org.fedoraproject.prod.pungi.compose.status.change", body=EXAMPLE_MESSAGE_BODY,
|
| |
)
|
| |
- con.process(msg)
|
| |
+ con.process(msg, eln=False)
|
| |
assert "Skipping filing issues for Rawhide composes" in caplog.text
|
| |
|
| |
|
| |
@@ -132,7 +132,7 @@
|
| |
msg = fedora_messaging.api.Message(
|
| |
topic="org.fedoraproject.prod.pungi.compose.status.change", body=body,
|
| |
)
|
| |
- con.process(msg)
|
| |
+ con.process(msg, eln=False)
|
| |
assert "Fedora-Rawhide-20190619.n.0" not in caplog.text
|
| |
|
| |
|
| |
@@ -155,8 +155,8 @@
|
| |
msg = fedora_messaging.api.Message(
|
| |
topic="org.fedoraproject.prod.pungi.compose.status.change", body=EXAMPLE_MESSAGE_BODY,
|
| |
)
|
| |
- con.process(msg)
|
| |
- assert "- Compose run failed because: - [41350838]" in caplog.text
|
| |
+ con.process(msg, eln=False)
|
| |
+ assert "- Compose run failed because: - [413508381]" in caplog.text
|
| |
assert "Compose Total time: 0:20:30" in caplog.text
|
| |
assert "Compose phase INIT time: 0:00:10." in caplog.text
|
| |
assert "Compose phase CREATEISO: FAILED." in caplog.text
|
| |
@@ -173,7 +173,7 @@
|
| |
|
| |
mocker.patch(
|
| |
"compose_tracker.fedora_messaging.config.conf",
|
| |
- {"consumer_config": {"composes_to_skip": ["IoT"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}},
|
| |
+ {"consumer_config": {"composes_to_skip": ["IoT"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}, "publish_priority": None},
|
| |
)
|
| |
# mock the pungi.global.log file
|
| |
req = mocker.patch("compose_tracker.requests.get", autospec=True)
|
| |
@@ -188,7 +188,7 @@
|
| |
msg = fedora_messaging.api.Message(
|
| |
topic="org.fedoraproject.prod.pungi.compose.status.change", body=EXAMPLE_MESSAGE_BODY,
|
| |
)
|
| |
- con.process(msg)
|
| |
+ con.process(msg, eln=False)
|
| |
assert "Ostree (variant Silverblue, arch x86_64) failed, but going on anyway." in caplog.text
|
| |
assert "Ostree (variant Silverblue, arch ppc64le) failed, but going on anyway." in caplog.text
|
| |
|
| |
@@ -203,7 +203,7 @@
|
| |
|
| |
mocker.patch(
|
| |
"compose_tracker.fedora_messaging.config.conf",
|
| |
- {"consumer_config": {"composes_to_skip": ["IoT"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}},
|
| |
+ {"consumer_config": {"composes_to_skip": ["IoT"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}, "publish_priority": None},
|
| |
)
|
| |
req = mocker.patch("compose_tracker.requests.get", autospec=True)
|
| |
text_mock = mocker.MagicMock()
|
| |
@@ -217,7 +217,7 @@
|
| |
msg = fedora_messaging.api.Message(
|
| |
topic="org.fedoraproject.prod.pungi.compose.status.change", body=EXAMPLE_MESSAGE_BODY,
|
| |
)
|
| |
- con.process(msg)
|
| |
+ con.process(msg, eln=False)
|
| |
assert "Adding Labels ['Fedora', 'Rawhide', 'DOOMED']" in caplog.text
|
| |
|
| |
def test_consumer_maintainer_pings(mocker, caplog):
|
| |
@@ -231,7 +231,7 @@
|
| |
|
| |
mocker.patch(
|
| |
"compose_tracker.fedora_messaging.config.conf",
|
| |
- {"consumer_config": {"composes_to_skip": ["IoT"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}},
|
| |
+ {"consumer_config": {"composes_to_skip": ["IoT"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}, "publish_priority": None},
|
| |
)
|
| |
# mock the pungi.global.log file
|
| |
req = mocker.patch("compose_tracker.requests.get", autospec=True)
|
| |
@@ -246,7 +246,7 @@
|
| |
msg = fedora_messaging.api.Message(
|
| |
topic="org.fedoraproject.prod.pungi.compose.status.change", body=EXAMPLE_MESSAGE_BODY,
|
| |
)
|
| |
- con.process(msg)
|
| |
+ con.process(msg, eln=False)
|
| |
assert "Variant: Spins, subvariant: SoaS task failed. Pinging maintainers: @pbrobinson" in caplog.text
|
| |
# Cannot assert particular maintainers since the set order is random
|
| |
assert "Variant: Spins, subvariant: xfce task failed. Pinging maintainers" in caplog.text and "@kevin" in caplog.text and '@nonamedotc' in caplog.text and '@maxamillion' in caplog.text
|
| |
@@ -262,7 +262,7 @@
|
| |
|
| |
mocker.patch(
|
| |
"compose_tracker.fedora_messaging.config.conf",
|
| |
- {"consumer_config": {"composes_to_skip": ["IoT"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}},
|
| |
+ {"consumer_config": {"composes_to_skip": ["IoT"], "ks_repo": "https://pagure.io/fedora-kickstarts", "mnt_koji_url": "https://kojipkgs.fedoraproject.org/"}, "publish_priority": None},
|
| |
)
|
| |
#mock the pungi.global.log file
|
| |
req = mocker.patch("compose_tracker.requests.get", autospec=True)
|
| |
@@ -277,5 +277,5 @@
|
| |
msg = fedora_messaging.api.Message(
|
| |
topic="org.fedoraproject.prod.pungi.compose.status.change", body=EXAMPLE_MESSAGE_BODY,
|
| |
)
|
| |
- con.process(msg)
|
| |
+ con.process(msg, eln=False)
|
| |
assert '<a href="https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20200204.n.0/logs/x86_64/Silverblue/ostree-1/runroot.log">/mnt/koji/compose/rawhide/Fedora-Rawhide-20200204.n.0/logs/x86_64/Silverblue/ostree-1/runroot.log</a>' in caplog.text
|
| |