You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2026/06/01 13:12:06 UTC
svn commit: r1934837 - comdev/reporter.apache.org/trunk/scripts
Author: sebb
Date: Mon Jun 1 13:12:06 2026
New Revision: 1934837
Log:
COMDEV-568 - http://dist.apache.org:2069/commits/dist no longer works
Replaced by http://pubsub.apache.org:2069/svn/dist/commit
Modified:
comdev/reporter.apache.org/trunk/scripts/scandist.py
Modified: comdev/reporter.apache.org/trunk/scripts/scandist.py
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/scandist.py Mon Jun 1 13:03:36 2026 (r1934836)
+++ comdev/reporter.apache.org/trunk/scripts/scandist.py Mon Jun 1 13:12:06 2026 (r1934837)
@@ -206,10 +206,16 @@ def isIgnored(filename):
# Extract out processing so it can be independently tested
def processCommit(commit):
- # e.g. {"committer": "sebb", "log": "Ensure we exit on control+C", "repository": "13f79535-47bb-0310-9956-ffa450edef68", "format": 1,
- # "changed": {"comdev/reporter.apache.org/trunk/scandist.py": {"flags": "U "}},
- # "date": "2015-07-13 13:38:33 +0000 (Mon, 13 Jul 2015)", "type": "svn", "id": 1690668}
- #
+ # e.g.
+ # "type": "svn", "format": 1, "id": 84893,
+ # "changed": {"dev/commons/TEST_PLS_IGNORE/test": {"flags": "D "}},
+ # "repository": "0d268c88-bc11-4956-87df-91683dc98e59",
+ # "committer": "sebb", "log": "drop",
+ # "date": "2026-06-01 12:50:53 +0000 (Mon, 01 Jun 2026)"},
+ # "pubsub_timestamp": 1780318253.4014332,
+ # "pubsub_topics": ["svn", "dist", "dev", "commit"],
+ # "pubsub_path": "/svn/dist/dev/commit",
+ # "pubsub_cursor": "50382cb1-11da-4dd3-a7bf-d84e5d766f14"
print("%(id)s %(date)s %(log)s" % commit)
# Note: a single commit can change multiple paths
paths = commit['changed']
@@ -266,7 +272,8 @@ class PubSubClient(Thread):
while not self.req:
try:
self.req = urllib.request.urlopen(self.url, None, 30)
- except:
+ except Exception as e:
+ print(e)
time.sleep(30)
continue
@@ -308,7 +315,7 @@ According to https://svn.apache.org/repo
"""
# Note: This only supports http: currently
-DEFAULT_URL = "http://dist.apache.org:2069/commits/svn/0d268c88-bc11-4956-87df-91683dc98e59"
+DEFAULT_URL = "http://pubsub.apache.org:2069/svn/dist/commit"
RELEASE_MATCH = r"^release/([^/]+)/" # match any name followed by /
def main():
@@ -322,7 +329,6 @@ def main():
# Start the svn thread
svn_thread = PubSubClient()
- # 0d268c88-bc11-4956-87df-91683dc98e59 = https://dist.apache.org/repos/dist
svn_thread.url = DEFAULT_URL
if trace:
print("Using " + DEFAULT_URL + " matching " + RELEASE_MATCH)