Currently, none of the CI jobs running on Windows (Windows native and Windows test cross-built) use previous releases for testing. This is causing problems with tests like wallet_migration.py
which require previous releases to be available.
This PR fixes issue #32192 by implementing the following changes:
- Added Windows binaries to the SHA256_SUMS dictionary in get_previous_releases.py
- Modified the check_host function to recognize Windows hosts and map them to the “win64” platform
- Enhanced the download_binary function to handle Windows zip files differently from Linux/macOS tar.gz files
- Updated the wallet_migration.py test to be Windows-compatible by handling file copying in a platform-specific way
- Added DOWNLOAD_PREVIOUS_RELEASES=“true” to the Windows jobs in the CI configuration
- Added a step to download previous releases for Windows in the CI workflow
- Added a specific step to run the wallet_migration.py test with –previous-releases flag
- Excluded wallet_migration.py from the main functional tests to avoid running it twice
With these changes, the CI jobs running on Windows will now download and use previous releases, allowing tests like wallet_migration.py to run successfully.
Fixes #32192