Skip to content

Commit

Permalink
chore: temporarily disable version check
Browse files Browse the repository at this point in the history
  • Loading branch information
cdummett committed Oct 18, 2024
1 parent 87435b6 commit f1b3d67
Show file tree
Hide file tree
Showing 2 changed files with 669 additions and 21 deletions.
44 changes: 23 additions & 21 deletions scripts/check_tagged_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,31 @@


def check_versions():
vega_versions = requests.get(
"https://api.github.com/repos/vegaprotocol/vega/releases"
).json()
versions_to_check = set()
for version in vega_versions:
if version["tag_name"] == EARLIEST_VERSION_TO_CHECK:
versions_to_check.add(version["tag_name"])
break
if version["prerelease"]:
continue
versions_to_check.add(version["tag_name"])
## TODO: Re-enable version check once versions finalised
pass
# vega_versions = requests.get(
# "https://api.github.com/repos/vegaprotocol/vega/releases"
# ).json()
# versions_to_check = set()
# for version in vega_versions:
# if version["tag_name"] == EARLIEST_VERSION_TO_CHECK:
# versions_to_check.add(version["tag_name"])
# break
# if version["prerelease"]:
# continue
# versions_to_check.add(version["tag_name"])

tags = requests.get(
"https://api.github.com/repos/vegaprotocol/vega-market-sim/tags"
).json()
tagged_vega_versions = set()
for tag in tags:
tagged_vega_versions.add(tag["name"])
# tags = requests.get(
# "https://api.github.com/repos/vegaprotocol/vega-market-sim/tags"
# ).json()
# tagged_vega_versions = set()
# for tag in tags:
# tagged_vega_versions.add(tag["name"])

if versions_to_check.difference(tagged_vega_versions):
raise Exception(
f"Missing tags for vega versions: {versions_to_check - tagged_vega_versions}"
)
# if versions_to_check.difference(tagged_vega_versions):
# raise Exception(
# f"Missing tags for vega versions: {versions_to_check - tagged_vega_versions}"
# )


if __name__ == "__main__":
Expand Down
Loading

0 comments on commit f1b3d67

Please sign in to comment.