Skip to content

[CI][Windows] Enable long paths fails with registry SecurityException before tests #26667

Description

@dalexsoto

Failure

The Windows Integration Tests stage fails in Enable long paths, before workload installation or product tests:

LongPathsEnabled : 0
Set-ItemProperty : Requested registry access is not allowed.
System.Security.SecurityException

Classification: CI infrastructure failure. The Windows worker cannot update HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled. This is a setup/permissions failure, not a product-test assertion or a user-project MAX_PATH error.

Confirmed occurrences

2 confirmed occurrences across 2 distinct monitored PRs. Repeated observations and downstream reporting errors are not counted separately.

PR / full head SHA Run / attempt Outcome
#26642 / 336dcbb3b669c56dcedb60376d70125ef2943c6f 15346858 / 1 Setup failed; full Windows stage attempt 2 subsequently succeeded.
#26593 / fcf09933855a77843499d8b95eeabd63717a5bfa 15396763 / 1 Same setup failure; no monitor retry submitted.

Pipeline: xamarin-macios-sim-pr-tests (definition 21922). Both failures are stage windows_integration, job Dotnet tests / eac261bd-81a1-5958-df8d-94842fc987be, task Enable long paths / c296d67b-77b3-5268-5af9-207fe49f60b0, stage/job/task attempt 1. Original task logs are 1858 and 1417, respectively.

First confirmed failure: 2026-09-16 14:56:49 UTC. Latest: 2026-09-21 12:21:39 UTC.

Investigation and impact

Both original task logs were inspected and have the same disabled registry value, denied write and PowerShell exit 1. The same-pipeline passing control #26513 / run 15345672 has LongPathsEnabled : 1 before and after this task (log 1417).

In #26593, Install custom .NET, Install workloads and Run tests are skipped. The later Prepare tests results and Html Report error is a consequence: its configured custom dotnet.exe was never installed. No Windows TestSummary was produced. The published HtmlReport is a nested ZIP with no test-result XML/TRX or binlog files; no product test or relevant MSBuild execution occurred. Helix results and test IDs therefore do not exist for this occurrence.

Searches covered all open and closed issues, separately using the exact task, registry value, permission error and component. #18445, #20305 and #18259 concern application/package path-length errors; #22806 and its explicit duplicate target #22591 concern bitcode_strip. None records this CI setup root.

Recovery and current decision

#26642's entire Windows Integration Tests stage, attempt 2, succeeded at 2026-09-16 19:05:03 UTC. This is an observed recovery, not a guarantee that another worker will have the correct permissions.

For #26593, a further retry is blocked by incomplete lifetime retry accounting: historical run 15321041 still has metadata but no retained timeline response, and historical external accepted-request grouping cannot be established safely. The new head does not reset the PR-lifetime counter. No new retry, source change or suppression change was made.

The infrastructure remedy is to ensure the Windows image and agent identity have the required long-path configuration and permissions before test setup. A permitted recovery retry must rerun the whole Windows stage, after merge/head, active-run and both budget gates pass.

No existing issue-specific diagnostic checklist applied when this issue was created. Exact PR/head/run/attempt/job/task, registry state, errors and retry outcome are retained; absent test results are explicitly explained above. Worker identifiers and IP addresses are not disclosed. Azure logs and artifacts are retention-limited.

Stable signature: CI-infrastructure|WindowsIntegration|Enable-long-paths|LongPathsEnabled-0|HKLM-SetItemProperty-SecurityException-permission-denied

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-failureThe issue only affects CIci-postmortemCI post-mortem analysis: flaky tests, infrastructure failures, shared regressionstestsAnything related to tests

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions