From 8af8160dd9721eb0a5361d7818de82895c97554f Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Tue, 28 Nov 2023 08:08:00 -0500 Subject: [PATCH] SKip old versions. --- scripts-dev/schema_versions.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts-dev/schema_versions.py b/scripts-dev/schema_versions.py index 01d052d16be0..5fd73251cdcb 100755 --- a/scripts-dev/schema_versions.py +++ b/scripts-dev/schema_versions.py @@ -51,6 +51,11 @@ ) +# Skip versions of Synapse < v1.0, they're old and essentially not +# compatible with today's federation. +OLDEST_SHOWN_VERSION = version.parse("v1.0") + + def get_schema_versions(tag: git.Tag) -> Tuple[Optional[int], Optional[int]]: """Get the schema and schema compat versions for a tag.""" schema_version = None @@ -105,6 +110,10 @@ def get_tags(repo: git.Repo) -> Iterator[git.Tag]: if tag_version.is_prerelease or tag_version.is_postrelease or tag_version.local: continue + # Skip old versions. + if tag_version < OLDEST_SHOWN_VERSION: + continue + tags.append((tag_version, tag)) # Sort based on the version number (not lexically).