Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a more reliable TOC version check (using Blizzard's CDN) #785

Merged
merged 4 commits into from
Oct 26, 2024

Conversation

rdw-software
Copy link
Member

A bit more involved, but allows for scripting more complex interactions (like automatically syncing versions) later on.

Improvements that could be considered in the future, but aren't yet included:

  • Fetching from the CDN programmatically instead of via curl (CLI)
  • Integrating the version check with the actual test suite
  • Supporting multiple TOC files per module, e.g., for Retail/Classic/PTR
  • More and/or better sanity checks for the actual TOC values
  • Configurable CDN API endpoints (not sure if that's really useful?)

Listing several versions doesn't make sense since only the live realms are actually supported.

This was only changed because the previous TOC version check took the shortcut of comparing Rarity's interface version to that of BigWigs, which (unlike Rarity) supports PTR testing. As the TOC check now involves fetching the latest version directly from Blizzard's CDN, this hack is no longer useful and can be removed.
Instead of blindly copying BigWigs' TOC version, it's possible to query Blizzard's CDN directly. While this adds some complexity due to the oddball CSV-like format that they use, it should be more reliable.

More advanced interactions like synchronization can now also be scripted in Lua, instead of having to work around various peculiarities of the different shells and terminal environments.
Since AddonLoader is no longer used, the note may be confusing/
@rdw-software rdw-software merged commit 05caf4c into master Oct 26, 2024
6 checks passed
@rdw-software rdw-software deleted the cdn-version-checker branch October 26, 2024 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant