Skip to content

Pin Azure CLI to 2.90.0 and retry access denied errors in the installer - #6014

Merged
ramonsmits merged 2 commits into
masterfrom
ci-flaky-fixes
Oct 20, 2026
Merged

ramonsmits merged 2 commits into
masterfrom
ci-flaky-fixes

Conversation

@ramonsmits

@ramonsmits ramonsmits commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Most CI runs since 2026-10-16 fail in the Azure jobs, independent of the change under test. The cause is in CI infrastructure, not in the code the jobs test.

Azure jobs: Azure CLI deadlocks while it creates the Service Bus namespace. Azure CLI 2.91.0 runs on Python 3.14 and hits the import deadlock reported in Azure/azure-cli#33996 during long-running operations, on Linux and on Windows. The fix (Azure/azure-cli#34201) merged on 2026-10-12 and is not in 2.91.0, which is still the latest release. The composite action that upgraded the CLI to the latest version now installs 2.90.0: the .deb from the Microsoft package repository on Linux, the ZIP distribution on Windows, because the MSI refuses to install over the newer version on the runner image. The action carries a comment with the condition to restore the upgrade.

Installer: retry UnauthorizedAccessException when it deletes a directory. Windows reports a file that a process still holds, or that an antivirus scanner holds, as UnauthorizedAccessException, for example right after the process that loaded it exits. FileUtils.RunWithRetries only retried IOException, so a delete during an uninstall failed on the first attempt. This is what made PackagedRavenDBTests fail on Windows-DefaultCore until #5969 gave the test its own cleanup retry. The test no longer uses FileUtils, so this change is a hardening of the installer only.

Not addressed: Windows-IBMMQ and other WSL jobs cancelled after 30 minutes. The Setup WSL step hangs and the runner ignores the step timeout. The cause is in Particular/setup-wsl-action, where a diagnostics change is in review.

@ramonsmits
ramonsmits force-pushed the ci-flaky-fixes branch 3 times, most recently from 15d495b to 134015d Compare October 16, 2026 10:36
@ramonsmits
ramonsmits requested a review from dvdstelt October 16, 2026 11:40
@rbev

rbev commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

There is an issue open on the runner images for the WSL hang actions/runner-images#14938

@rbev rbev mentioned this pull request Oct 19, 2026
@ramonsmits ramonsmits changed the title Fix the two CI failures that hit most runs since 2026-10-16 Pin Azure CLI to 2.90.0 and retry access denied errors in the installer Oct 20, 2026
@ramonsmits
ramonsmits enabled auto-merge (squash) October 20, 2026 08:19
@ramonsmits
ramonsmits merged commit 408130f into master Oct 20, 2026
69 of 70 checks passed
@ramonsmits
ramonsmits deleted the ci-flaky-fixes branch October 20, 2026 08:34
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.

2 participants