[releng] Adjust executable flag for monitor_mash_log.py
by Till Maas
commit 10e52344f3faade5c3693eb4bd2b4ae873b64f67
Author: Till Maas <opensource(a)till.name>
Date: Sun Nov 2 22:14:51 2014 +0100
Adjust executable flag for monitor_mash_log.py
0 files changed, 0 insertions(+), 0 deletions(-)
---
diff --git a/scripts/monitor_mash_log.py b/scripts/monitor_mash_log.py
old mode 100644
new mode 100755
9 years, 6 months
[releng] Adjust Vim modeline
by Till Maas
commit cc49477fa7c7518cc3c79bcd755b25ed10104795
Author: Till Maas <opensource(a)till.name>
Date: Sun Nov 2 22:11:58 2014 +0100
Adjust Vim modeline
scripts/autosigner.py | 2 +-
scripts/block_retired.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/scripts/autosigner.py b/scripts/autosigner.py
index 7752f13..bc2a371 100755
--- a/scripts/autosigner.py
+++ b/scripts/autosigner.py
@@ -1,5 +1,5 @@
#!/usr/bin/python -tt
-# vim: fileencoding=utf8 foldmethod=marker
+# vim: fileencoding=utf8
# SPDX-License-Identifier: GPL-2.0+
import argparse
diff --git a/scripts/block_retired.py b/scripts/block_retired.py
index 690ea7a..43b946e 100755
--- a/scripts/block_retired.py
+++ b/scripts/block_retired.py
@@ -1,5 +1,5 @@
#!/usr/bin/python -tt
-# vim: fileencoding=utf8 foldmethod=marker
+# vim: fileencoding=utf8
# SPDX-License-Identifier: GPL-2.0+
import argparse
9 years, 6 months
[releng] Add mash.log monitoring script
by Till Maas
commit 437e3e068e00917998f4cdb7f12f313a9ec9e653
Author: Till Maas <opensource(a)till.name>
Date: Sun Nov 2 22:11:06 2014 +0100
Add mash.log monitoring script
scripts/monitor_mash_log.py | 84 +++++++++++++++++++++++++++++++++++++++++++
1 files changed, 84 insertions(+), 0 deletions(-)
---
diff --git a/scripts/monitor_mash_log.py b/scripts/monitor_mash_log.py
new file mode 100644
index 0000000..9301b68
--- /dev/null
+++ b/scripts/monitor_mash_log.py
@@ -0,0 +1,84 @@
+#!/usr/bin/python -tt
+# vim: fileencoding=utf8
+# SPDX-License-Identifier: GPL-2.0+
+# Get signing warnings from all mash logs
+
+import os
+import re
+
+
+import requests
+from bs4 import BeautifulSoup
+
+
+class MashMonitor(object):
+ def __init__(self, release="rawhide", arch="primary"):
+ self.release = release
+ self.arch = arch
+
+ @property
+ def base_url(self):
+ if self.arch == "primary":
+ return "https://kojipkgs.fedoraproject.org/mash/"
+ else:
+ return "https://{}.koji.fedoraproject.org/mash/".format(self.arch)
+
+ def get(self, url):
+ kwargs = {}
+ if self.arch != "primary":
+ kwargs["verify"] = os.path.expanduser("~/.fedora-server-ca.cert")
+ kwargs["cert"] = os.path.expanduser("~/.fedora.cert")
+ return requests.get(url, **kwargs)
+
+ def get_hrefs(self):
+ listing_resp = self.get(self.base_url)
+ soup = BeautifulSoup(listing_resp.content)
+
+ href_re = re.compile("^{}-.*".format(self.release))
+
+ anchors = soup.find_all("a", attrs={"href": href_re})
+ hrefs = sorted([x["href"] for x in anchors])
+ return hrefs
+
+ def get_signature_warnings(self, mash_log_url):
+ if "://" not in mash_log_url:
+ mash_log_url = self.build_mash_log_url(mash_log_url)
+
+ mash_log_response = self.get(mash_log_url)
+ mash_log = mash_log_response.content
+ signature_check = False
+ signature_warnings = []
+ for line in mash_log.splitlines():
+ if not signature_check and \
+ line.endswith("mash: Checking signatures..."):
+ signature_check = True
+ continue
+
+ if signature_check:
+ if "mash: Writing out files for " in line:
+ break
+ else:
+ signature_warnings.append(line)
+ return signature_warnings
+
+ def build_mash_log_url(self, href):
+ if href[-1] != "/":
+ href += "/"
+
+ return self.base_url + href + "logs/mash.log"
+
+ def montitor(self):
+ hrefs = self.get_hrefs()
+ self.latest_href = hrefs[-1]
+ latest_url = self.build_mash_log_url(self.latest_href)
+ warnings = self.get_signature_warnings(latest_url)
+ return warnings
+
+
+if __name__ == "__main__":
+ for arch in ["primary", "ppc", "arm", "s390"]:
+ for release in ["branched", "rawhide"]:
+ mashmon = MashMonitor(release=release, arch=arch)
+ warnings = mashmon.montitor()
+ for w in warnings:
+ print("{}/{}: {}".format(arch, release, w))
9 years, 6 months
[releng] find_unblocked_orphans: Fix datetime call
by Till Maas
commit 31d53c8f928056287972e6c79e356bb1da67bbc8
Author: Till Maas <opensource(a)till.name>
Date: Sat Nov 1 23:18:07 2014 +0100
find_unblocked_orphans: Fix datetime call
scripts/find_unblocked_orphans.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/scripts/find_unblocked_orphans.py b/scripts/find_unblocked_orphans.py
index fd4f06a..ce635f5 100755
--- a/scripts/find_unblocked_orphans.py
+++ b/scripts/find_unblocked_orphans.py
@@ -733,7 +733,7 @@ def main():
print text
if args.mailto or args.send:
- now = datetime.datetime()
+ now = datetime.datetime.utcnow()
today = now.strftime("%Y-%m-%d")
subject = "Orphaned Packages in {} ({})".format(args.release, today)
if args.mailto:
9 years, 6 months
[releng] find_unblocked_orphans: Add date to subject
by Till Maas
commit 0a1a055493b8a0e357b54abf5951c8223ae9ebe6
Author: Till Maas <opensource(a)till.name>
Date: Sat Nov 1 22:48:15 2014 +0100
find_unblocked_orphans: Add date to subject
scripts/find_unblocked_orphans.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/scripts/find_unblocked_orphans.py b/scripts/find_unblocked_orphans.py
index 2fb6e6c..fd4f06a 100755
--- a/scripts/find_unblocked_orphans.py
+++ b/scripts/find_unblocked_orphans.py
@@ -733,7 +733,9 @@ def main():
print text
if args.mailto or args.send:
- subject = "Orphaned packages in " + args.release
+ now = datetime.datetime()
+ today = now.strftime("%Y-%m-%d")
+ subject = "Orphaned Packages in {} ({})".format(args.release, today)
if args.mailto:
mailto = args.mailto
else:
9 years, 6 months
[releng] find_unblocked_orphans: Rework status_change info
by Till Maas
commit baefb6458fe613d2b3f1207cd541f3a3d91687d9
Author: Till Maas <opensource(a)till.name>
Date: Sat Nov 1 22:47:53 2014 +0100
find_unblocked_orphans: Rework status_change info
scripts/find_unblocked_orphans.py | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/scripts/find_unblocked_orphans.py b/scripts/find_unblocked_orphans.py
index 02807c8..2fb6e6c 100755
--- a/scripts/find_unblocked_orphans.py
+++ b/scripts/find_unblocked_orphans.py
@@ -543,10 +543,8 @@ def maintainer_table(packages, pkgdb_dict):
for p in people:
affected_people.setdefault(p, set()).add(package_name)
p = ', '.join(people)
- status_change = pkginfo.status_change
age = pkginfo.age
- agestr = "{} ({} weeks ago)".format(status_change.strftime("%Y-%m-%d"),
- age.days / 7)
+ agestr = "{} weeks ago".format(age.days / 7)
if with_table:
table.add_row([package_name, p, agestr])
@@ -562,8 +560,12 @@ def dependency_info(dep_map, affected_people, pkgdb_dict):
info = ""
for package_name, subdict in dep_map.items():
if subdict:
- info += "Depending on: {} ({})\n".format(package_name,
- len(subdict.keys()))
+ pkginfo = pkgdb_dict[package_name]
+ status_change = pkginfo.status_change.strftime("%Y-%m-%d")
+ age = pkginfo.age.days / 7
+ fmt = "Depending on: {} ({}), status change: {} ({} weeks ago)\n"
+ info += fmt.format(package_name, len(subdict.keys()),
+ status_change, age)
for fedora_package, dependent_packages in subdict.items():
people = pkgdb_dict[fedora_package].get_people()
for p in people:
9 years, 6 months
#6015: Remove phpMyAdmin3 packages from EPEL-5
by Fedora Release Engineering
#6015: Remove phpMyAdmin3 packages from EPEL-5
--------------------+------------------------
Reporter: robert | Owner: rel-eng@…
Type: task | Status: new
Milestone: | Component: epel
Keywords: | Blocked By:
Blocking: |
--------------------+------------------------
I retired the el5 branch of phpMyAdmin3 as it is superseeded by
phpMyAdmin4 - however the phpMyAdmin3 packages should be removed from the
EPEL repositories if possible (unmaintained, outdated and contain various
known security vulnerabilities). A standard "yum update" should upgrade
existing phpMyAdmin3 installations to phpMyAdmin4.
Thanks,
Robert
--
Ticket URL: <https://fedorahosted.org/rel-eng/ticket/6015>
Fedora Release Engineering <http://fedorahosted.org/rel-eng>
Release Engineering for the Fedora Project
9 years, 6 months