Repository navigation
drop building and testing against windows arm64 - #14216
Conversation
This reverts commit 157e3d1.
|
FYI: @khmyznikov |
|
@alex Sad to see. I hope the issue gets resolved soon. |
|
We do as well. If you've got colleagues who you can point at this issue, we'd really like folks to understand that having stable CI is one of our apex requirements -- waiting 2 weeks for this to be resolved was well beyond our norm, ordinarily we consider reverting things after a single day. For the ARM64 ecosystem on Windows to be something we can support, it's stability needs to be a priority. |
|
@alex Yeah, we are looking for the best eyes to put on this issue. The Arm folks are continuing their investigation, while we seek additional help. It seems the issue has turned out to be more complicated than we initially thought. |
Updated cryptography dependency version to 46.0.3. See if this works around win ARM64 issue: pyca/cryptography#14216
To support win_arm64 again See pyca/cryptography#14216
Replace the previous (ineffective) VC++ redist install with the same pattern test-python.yml uses for cryptography on windows-11-arm: restore the vcpkg arm64-windows-static-md OpenSSL cache, fall back to a vcpkg install on miss, and pip-install snowflake-connector-python with --no-binary cryptography so cryptography is built from source against that static OpenSSL. Why VC++ redist did not help: pyca/cryptography#14216 dropped official Windows ARM64 wheel publishing in early 2026. The wheel that pip ends up installing on windows-11-arm is unusable regardless of which VC runtime is present, so cryptography's _rust.pyd cannot be imported. The cache key matches test-python.yml / build-python-release.yml on purpose so when those workflows have already populated the cache on the same VCPKG_VER, this step is essentially free. Made-with: Cursor
|
I think this could be reverted now:
|
|
We do not intend to re-add support for Windows ARM64 until we are confident that Microsoft is capable of maintaining them without regressions. |
…wflakedb#984) ## Summary The `Cleanup test PATs` step in the **Windows ARM64, non-FIPS** Rust core CI job has been silently failing (it has `continue-on-error: true`) with: ``` ImportError: DLL load failed while importing _rust: The specified module could not be found. ``` Original example: [run 24998968454, job 73203543194](https://github.com/snowflakedb/universal-driver/actions/runs/24998968454/job/73203543194?pr=973#step:14:38). ### Root cause The legacy `snowflake-connector-python` (which the cleanup script uses to call `ALTER USER ... REMOVE PROGRAMMATIC ACCESS TOKEN`) pulls in `cryptography` as a transitive dep, and **`cryptography` no longer publishes working pre-built Windows ARM64 wheels** ([pyca/cryptography#14216](pyca/cryptography#14216), [#14168](pyca/cryptography#14168) — dropped in early 2026). Pip ends up with a wheel whose `_rust.pyd` cannot be loaded on `windows-11-arm`, regardless of which VC++ runtime is installed. This is not a new problem — `test-python.yml` and `build-python-release.yml` already hit it for our own e2e tests that import `cryptography`, and they solve it the same way: build cryptography from source against vcpkg's `arm64-windows-static-md` OpenSSL, since the Rust toolchain is already on the runner. ### Change Apply the same pattern to the cleanup step in `test-rust-core.yml`: 1. Restore the `arm64-windows-static-md` OpenSSL vcpkg cache, fall back to a vcpkg install on miss, save on miss. 2. Run cleanup with `OPENSSL_DIR` / `OPENSSL_LIB_DIR` / `OPENSSL_STATIC=1` set and `pip install --no-binary cryptography snowflake-connector-python`. 3. Cache key is intentionally identical to the one used in `test-python.yml` / `build-python-release.yml` (`windows-11-arm-vcpkg-openssl-static-md-${VCPKG_VER}`) so the cache is shared — when those workflows have run on the same `VCPKG_VER`, this step is essentially free. The earlier commit on this branch tried to fix it by installing the ARM64 VC++ Redistributable, which turned out to be irrelevant (the wheel itself is unusable). That commit's logic is replaced by this one. ### Why not pin `cryptography`? - We don't depend on it directly — `snowflake-connector-python` does, so we'd have to override its dep resolution every release. - Per pyca/cryptography#14168, even when arm64 wheels existed they were missing for some Python versions (3.12/3.13). The hosted runner is on Python 3.13.13. Wheel coverage for the pinned version is not guaranteed. - Source-build matches what the rest of this repo already does and stays robust to upstream version drift. The cleanup step keeps `continue-on-error: true` (this PR is purely about making it actually succeed; not changing failure semantics). ## Test plan - [ ] Re-run the Rust Core CI on this PR and confirm the new `Restore vcpkg ARM64 static OpenSSL cache (for cryptography)` step hits the existing cache (it should — `test-python.yml` populates the same key on every PR). - [ ] Confirm `Cleanup test PATs` on `test (Windows ARM64, non-FIPS)` exits 0 — no more `DLL load failed` error in step 14 output. - [ ] Sanity-check on the Snowflake side that PATs from this build (`UD_*_GHA_<run_number>_*`) were removed.
Can you elaborate on what the criteria is for re-adding support? Are you monitoring other repo's uses of Arm64 runners to check for issues? For example, Rust has been building on Arm64 Windows runners for over a year now. Seems like a lot of other projects have had to work around this decision. |
|
Please direct your ire towards Microsoft, not us. We're working around their instability -- as volunteer maintainers. In any event, MS has set up monitoring on an arm64 version of our CI, if it's consistently green after 6 months, we'll look at reintroducing. |
|
@dpaoliello please reach me internally. @alex we discussed a couple of months of stability, since we must hit the availability before Sep. I'll propose reintroducing it at the beginning of Aug if everything remains the same quality bar. |
|
Whatever timeline we originally discussed is fine :-) I think it was 6 months from when we started? But if I said August was fine then, I meant it. |
|
I'll also note that comments like your colleague's are counter-productive and at best show a willingness to push burden onto maintainers to explain actions that are thoroughly documented across the issue tracker. Windows arm64 is a niche player at this time so supporting it requires minimal friction. Litigating this yet again is not minimal friction. |
Sorry if I upset anyone or caused confusion - I was asking this as an individual (trying to contribute to Servo), not as a Microsoft employee. I was completely unaware that this was already being looking into and wasn't trying to get Microsoft/GitHub off the hook or try to strong-arm this project into doing something that it isn't comfortable to do. |
|
@dpaoliello Thanks for following up and apologizing. I really do appreciate it. We understand that this is challenging when trying to bootstrap the ecosystem and a core library has no native wheels, and @khmyznikov has been a good partner in finding a path forward. To close this out, we do hope to have them back in the next few months. |
To support win_arm64 again See pyca/cryptography#14216
Windows on Arm runs the x64 build under Prism today: it works, but every pane's ConPTY and every native module goes through the translation layer, and startup and memory pay for it. This adds a second Windows job that builds natively on `windows-11-arm`, so `Navide-<version>-win-arm64.exe` ships alongside `Navide-<version>-win-x64.exe` rather than replacing it. PyInstaller cannot cross-compile, so the backend exe is the reason the build has to happen on an arm64 runner at all; the same is true of koffi's platform package and the Go plans backend. The job therefore repeats the x64 job's steps rather than reusing its output, including the ConPTY self-check — a native arm64 build is a fresh chance to drop winpty's OpenConsole.exe and kill every pane on launch. Three things Windows does differently from Linux, which the Linux arm64 job would otherwise have made look solved: - There is no per-arch update manifest. app-builder-lib suffixes the manifest name by architecture for Linux only, so both Windows arches write `latest.yml`, and electron-updater asks for that one name and picks the installer whose URL contains `process.arch`. Publishing the second job's manifest over the first would point one architecture at the other's binary, so the arm64 job merges itself into the x64 manifest instead — hence `needs: release-windows-x64`, which also keeps two jobs from racing to create the same release. - `cryptography` publishes no win_arm64 wheel. pyca dropped them in 46.0.4 because the arm64 Actions image was too unreliable to release from (pyca/cryptography#14216); 46.0.3 is the last release that has one. Building the sdist instead would put a Rust and OpenSSL toolchain in the release path for a security library, so this pins 46.0.3 for win_arm64 only, through a marker uv forks on — every other platform stays on 50.0.1. The pin is a cost, not a preference: 46.0.3 carries known advisories, and it should be lifted the moment upstream ships win_arm64 wheels again. cryptography is also now declared directly, which it always should have been: device_crypto, device_signing and sync_keyring import it, rather than inheriting it from mcp -> pyjwt[crypto]. - An installer whose payload is quietly x64 would still run, under the emulation this job exists to avoid. `check-pe-machine.mjs` reads the COFF header of the app, the backend and the plans backend, which is the only witness to what the linker actually targeted. httptools and watchdog publish no win_arm64 wheel either and are built from their sdists on the runner, which is why the timeout is 60 minutes rather than the x64 job's 45. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
cryptography stopped publishing win_arm64 wheels after 46.0.3 (pyca/cryptography#14216), and the Windows on Arm pin to 46.0.3 carried seven known vulnerabilities. Require cryptography>=50.0.2 everywhere and document that Windows on Arm needs an x64 Python or a source build.
When we originally added win arm64 wheels part of our decision was that we would remove it if the underlying CI infrastructure proved problematic. Unfortunately, that time has already arrived. We need to do a release today for an OpenSSL security release and the arm64 windows image has been broken with Python 3.14t for over two weeks. Working around issues like this in our CI is not desirable or acceptable. Accordingly, we are removing wheels effective with our next point release.
Our apologies to the users of these wheels, but the most effective thing you can do is advocate with GitHub to have windows arm64 treated like a first class citizen in Actions.