Skip to content

ENT-13808: Expand release-information with release files and checksums from community/releases.json#48

Merged
olehermanse merged 1 commit intocfengine:mainfrom
sarakthon:generate-community-checksums
Apr 8, 2026
Merged

ENT-13808: Expand release-information with release files and checksums from community/releases.json#48
olehermanse merged 1 commit intocfengine:mainfrom
sarakthon:generate-community-checksums

Conversation

@sarakthon
Copy link
Copy Markdown
Contributor

No description provided.

@sarakthon
Copy link
Copy Markdown
Contributor Author

sarakthon commented Apr 8, 2026

  • I couldn’t find a function for writing releases.json in the same format as the website so I added it manually
  • When I produced the files in the release-information repo, I had manually removed the release dates from nightlies before writing them - I did not include this function here, should I?
  • I also fixed up in some of the comments I got on my last PR (ENT-13001):
    • changed the name of the functionfilter_unstable_releases to get_stable_releases in download.py - clearer what the function does
      • also removed redundant if-checks in this function
    • changed sort_release_data to now make a copy of the dict so that the original input is not mutated

Comment on lines +191 to +194
def write_json_pretty(path, data):
# Writes release information in same format as on cfengine.com
with open(path, "w", encoding="utf-8") as f:
json.dump(data, f, indent=2, ensure_ascii=False)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Download file to path (save).

Then open and json and return dict.

@olehermanse olehermanse merged commit f9caeb7 into cfengine:main Apr 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants