Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion channels/candidate-4.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ versions:
- 4.3.9
- 4.3.8
- 4.3.5
- 4.3.3
- 4.3.2
- 4.3.1
- 4.3.0
- 4.3.0-0.hotfix-2020-09-30-133631
- 4.3.0-rc.0
- 4.3.0-rc.3
- 4.4.0
- 4.4.0-rc.0
- 4.4.0-rc.1
Expand Down Expand Up @@ -67,5 +74,4 @@ versions:
- 4.4.27
- 4.4.28
- 4.4.29

- 4.4.30
22 changes: 19 additions & 3 deletions channels/candidate-4.5.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: candidate-4.5
versions:
versions:
- 4.4.30
- 4.4.29
- 4.4.28
Expand All @@ -23,7 +23,25 @@ versions:
- 4.4.10
- 4.4.9
- 4.4.8
- 4.4.7
- 4.4.6
- 4.4.5
- 4.4.4
- 4.4.3
- 4.4.2
- 4.4.0
- 4.4.0-rc.0
- 4.4.0-rc.1
- 4.4.0-rc.10
- 4.4.0-rc.11
- 4.4.0-rc.12
- 4.4.0-rc.13
- 4.4.0-rc.2
- 4.4.0-rc.4
- 4.4.0-rc.6
- 4.4.0-rc.7
- 4.4.0-rc.8
- 4.4.0-rc.9
- 4.5.0
- 4.5.0-0.hotfix-2020-08-24-185832
- 4.5.0-rc.1
Expand All @@ -50,7 +68,5 @@ versions:
- 4.5.15
- 4.5.16
- 4.5.17

- 4.5.18

- 4.5.19
14 changes: 8 additions & 6 deletions channels/candidate-4.6.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: candidate-4.6
versions:
- 4.5.19

- 4.5.18

- 4.5.17
- 4.5.16
- 4.5.15
Expand All @@ -21,8 +19,15 @@ versions:
- 4.5.3
- 4.5.2
- 4.5.1
- 4.5.1-rc.0
- 4.5.0
- 4.5.0-0.hotfix-2020-08-24-185832

- 4.5.0-rc.1
- 4.5.0-rc.2
- 4.5.0-rc.4
- 4.5.0-rc.5
- 4.5.0-rc.6
- 4.5.0-rc.7
- 4.6.0
- 4.6.0-fc.0
- 4.6.0-fc.1
Expand All @@ -38,9 +43,6 @@ versions:
- 4.6.0-rc.3
- 4.6.0-rc.4
- 4.6.1

- 4.6.2

- 4.6.3

- 4.6.4
10 changes: 9 additions & 1 deletion channels/fast-4.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ versions:
- 4.3.18
- 4.3.13
- 4.3.12
- 4.3.10
- 4.3.9
- 4.3.8
- 4.3.5
- 4.3.3
- 4.3.2
- 4.3.1
- 4.3.0
- 4.3.0-0.hotfix-2020-09-30-133631
- 4.4.3
- 4.4.4
- 4.4.5
Expand All @@ -39,5 +48,4 @@ versions:
- 4.4.26
- 4.4.27
- 4.4.29

- 4.4.30
11 changes: 8 additions & 3 deletions channels/fast-4.5.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: fast-4.5
versions:
- 4.4.30

- 4.4.29
- 4.4.27
- 4.4.26
Expand All @@ -18,6 +17,12 @@ versions:
- 4.4.12
- 4.4.11
- 4.4.10
- 4.4.9
- 4.4.8
- 4.4.6
- 4.4.5
- 4.4.4
- 4.4.3
- 4.5.0-0.hotfix-2020-08-24-185832
- 4.5.1
- 4.5.2
Expand All @@ -28,12 +33,12 @@ versions:
- 4.5.7
- 4.5.8
- 4.5.9
- 4.5.10
- 4.5.11
- 4.5.12
- 4.5.13
- 4.5.14
- 4.5.15
- 4.5.16

- 4.5.17

- 4.5.18
2 changes: 0 additions & 2 deletions channels/fast-4.6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,5 @@ versions:
- 4.5.2
- 4.5.1
- 4.5.0-0.hotfix-2020-08-24-185832

- 4.6.1

- 4.6.3
10 changes: 9 additions & 1 deletion channels/stable-4.4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ versions:
- 4.3.18
- 4.3.13
- 4.3.12
- 4.3.10
- 4.3.9
- 4.3.8
- 4.3.5
- 4.3.3
- 4.3.2
- 4.3.1
- 4.3.0
- 4.3.0-0.hotfix-2020-09-30-133631
- 4.4.3
- 4.4.4
- 4.4.5
Expand All @@ -38,5 +47,4 @@ versions:
- 4.4.23
- 4.4.26
- 4.4.27

- 4.4.29
9 changes: 6 additions & 3 deletions channels/stable-4.5.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: stable-4.5
versions:
- 4.4.29

- 4.4.27
- 4.4.26
- 4.4.23
Expand All @@ -17,6 +16,12 @@ versions:
- 4.4.12
- 4.4.11
- 4.4.10
- 4.4.9
- 4.4.8
- 4.4.6
- 4.4.5
- 4.4.4
- 4.4.3
- 4.5.0-0.hotfix-2020-08-24-185832
- 4.5.1
- 4.5.2
Expand All @@ -32,7 +37,5 @@ versions:
- 4.5.14
- 4.5.15
- 4.5.16

- 4.5.17

- 4.5.18
44 changes: 44 additions & 0 deletions hack/backfill.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/usr/bin/env python3

import functools
import re

import yaml


SEMVER = re.compile('^(?P<major>0|[1-9]\d*)\.(?P<minor>0|[1-9]\d*)\.(?P<patch>0|[1-9]\d*)(?:-(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$')


def version_key(v, minor):
match = SEMVER.match(v)
groups = match.groupdict()
v_minor = int(groups['minor'])
v_patch = int(groups['patch'])
if v_minor != minor:
v_patch = -v_patch
return (int(groups['major']), v_minor, v_patch, v)


data = {}
minors = [3, 4, 5, 6]
weights = ['candidate', 'fast', 'stable']
for minor in minors:
data[minor] = {}
for weight in weights:
with open('channels/{}-4.{}.yaml'.format(weight, minor)) as f:
data[minor][weight] = yaml.safe_load(f)

for minor, next_minor in zip(minors, minors[1:]):
for weight in weights:
versions = set(data[minor][weight]['versions'])
versions.update(v for v in data[next_minor][weight]['versions'] if v.startswith('4.{}.'.format(minor)))
data[minor][weight]['versions'] = sorted(versions, key=functools.partial(version_key, minor=minor))

versions = set(data[next_minor][weight]['versions'])
versions.update(v for v in data[minor][weight]['versions'] if v.startswith('4.{}.'.format(minor)))
data[next_minor][weight]['versions'] = sorted(versions, key=functools.partial(version_key, minor=next_minor))

for minor in minors:
for weight in weights:
with open('channels/{}-4.{}.yaml'.format(weight, minor), 'w') as f:
yaml.safe_dump(data[minor][weight], f, default_flow_style=False)