Visitar URL original
[CI] PowerShell startup fails in procargs (errno 5) before scripts on macOS · Issue #27119 · dotnet/macios · GitHub
Skip to content

[CI] PowerShell startup fails in procargs (errno 5) before scripts on macOS #27119

Open

Description

@dalexsoto

Apple platform

macOS (CI PowerShell host, not an application test assertion).

Framework version

Other: PowerShell host initialization. No application target framework or selected test SDK is established by these unstarted scripts.

Affected platform version

mac14/x64 Sonoma CI lane. A clock-matched older process report identifies macOS 14.8.9; the current OS patch and PowerShell binary version are not independently established. The current Azure PowerShell task version is 2.281.0, not the PowerShell binary version.

Description

Two independently source-bound tasks across two monitored PRs fail before their PowerShell script bodies execute with the same normalized startup stack:

procargs errno 5 -> ManagedPSEntry.StartupException -> ThrowOnFailure -> AttemptExecPwshLogin.

PR / own source context Exact task occurrence (UTC)
#27030 / 8a88b308e29e943bad3d0b1703cd9e44f1e12f32 15816310 / pipeline 21922 / Agent-Cleanser startup, task 3946733a-4b31-5b9d-89bc-dbab28e10fa2, own log 2427, stage/job/task attempt 1. 2026-10-26 18:07:23.510-18:07:23.730. Task failed; its script was not entered and own Run tests was skipped.
#27103 / dcafa60cd4256c081e1e3c22dbeecf14f030119b 15843037 / pipeline 21922 / Remove empty directories from HtmlReport, task ce17e740-2437-52bc-47a1-a8e917db5d8d, own log 2952, stage/job/task attempt 1. 2026-10-28 12:02:33.910-12:02:34.1333333. Task succeededWithIssues; startup failed before the cleanup script was entered.

Classification: CI infrastructure / PowerShell host startup failure. The pre-test and post-test caller phases remain distinct; neither task title establishes a failure inside a disk-usage or directory-removal script. Azure reports the PowerShell exit code as literal null, not 0 or 1. This is not a product test failure, and genuine flakiness or the exclusive physical initiator is not established.

There are two physical task occurrences / two PRs. Two older durable ledger keys refer to the same #27030 task, log and original log hash; they are retained as aliases and counted once, not as a third failure. No old key or charge was deleted or rekeyed.

Four complete open-and-closed issue searches covered the syscall/error, exact exception, task and component. The only candidate, #7305, documents an unrelated 2019 Visual Studio SSH/build-disconnection problem; its full body and non-ignored history do not contain this startup signature. No existing issue was broadened or reopened.

Steps to Reproduce

No deterministic standalone reproduction is available. The two linked CI tasks capture PowerShell failing during host initialization before either script body starts. Their own source resets and exact task identities were verified; repeated template GUIDs in other runs are not additional occurrences.

Did you find any workaround?

No validated workaround or startup-task recovery is established. On #27103, an earlier Run-tests task succeeded before this warning; that does not make the later cleanup script successful. No CI retry, source change, approval, worker probe/reset/repair, credential or security-policy change was performed by the monitor.

Relevant log output

Call to 'procargs' failed with errno 5
Unhandled exception. Microsoft.PowerShell.ManagedPSEntry+StartupException
  at Microsoft.PowerShell.ManagedPSEntry.ThrowOnFailure(...)
  at Microsoft.PowerShell.ManagedPSEntry.AttemptExecPwshLogin(...)
PowerShell exited with code 'null'.

The affected run's own mac14 CrashReports archive contains an older pwsh incident at 2026-10-26 18:07:23.722800 UTC, inside the first task's exact interval, with the source-host association checked privately. It records EXC_CRASH / SIGABRT on macOS 14.8.9. This is bounded evidence for that historical occurrence, not proof of the underlying procargs initiator or a crash belonging to the current failure.

For the current #27103 occurrence, the own crash collector ended 12:02:24.4133333 UTC, before the startup task began 12:02:33.910 UTC. That archive therefore cannot establish a post-failure crash report for the current task. A separate older PowerShell incident in the archive is not added as a monitored occurrence.

Historical raw task logs are no longer retained after authorized cleanup; the earlier verified structured timeline/source/hash evidence remains retained. Original NUnit/TRX, Helix and build-binlog results do not apply to these unstarted scripts. An attributable current native blocked stack and the exclusive procargs failure cause remain unavailable. Raw invocations, environment, credentials, worker identities, addresses and crash payloads are not published. Azure diagnostics are retention-limited.

Note

Generated by GitHub Copilot.

Activity

  1. added
    ci-failureThe issue only affects CI
    ci-postmortemCI post-mortem analysis: flaky tests, infrastructure failures, shared regressions
    on Oct 29, 2026
  2. added this to the Future milestone on Oct 29, 2026
  3. dalexsoto commented on Oct 30, 2026

    @dalexsoto
    MemberAuthor

    One further own PowerShell-host startup occurrence matches this exact procargs errno 5 root. The canonical now documents 3 physical tasks across 2 distinct monitored PRs. The retained native ledger has 4 keys because the two previously documented aliases of the same #27030 task remain byte-exact and count once, not as another physical failure.

    Exact owning PR #27103, source identity c60b645e69e84e51294aa093daa8442b39f0c139, pipeline 21922, run 15874817 / own job and task, stage1-job1-task1. Own task bounds are 2026-10-30T16:39:21.49Z to 2026-10-30T16:39:21.7433333Z UTC; they are not exact hang onset, retry-submission or final-monitoring clocks.

    The head is this attempt's queued PR identity only: the own Undo Github merge task, log 2334, fails before its script body and PR reset are entered:

    Call to 'procargs' failed with errno 5
    Microsoft.PowerShell.ManagedPSEntry+StartupException
    ManagedPSEntry.ThrowOnFailure -> AttemptExecPwshLogin
    PowerShell exited with code 'null'
    

    The reported exit value is literal null, not 0 or 1. This is a pre-test macOS PowerShell host initialization failure, not a git-source error, a failure inside the Undo script or a product assertion. Four absent report/archive publication failures are downstream consequences, not four more root occurrences or accepted requests.

    No product checkout, selected app SDK/runtime, original NUnit/TRX/binlog/Helix result or attributable current PowerShell incident is established for this unstarted script. A later source-qualified Mac14 generation-2 test execution hits a separately retained native LinkSDK watchdog; it is not evidence that the original script executed or that the exclusive procargs initiator was repaired. External generations 2 and 3 establish conservative accepted-request minima, not a task/publisher fee count or safe remaining capacity.

    The full body, structured closure and complete non-ignored history were reconciled; there is no Additional info to collect section, so the body-only checklist is empty. Direct Azure evidence; no own Helix work-item applies. Artifact retention is limited. Complete all-actor accepted-request history and safe remaining capacity are uncertified. No source/suppression edit, approval/bypass, shared SDK/cache/feed/auth/privacy/worker repair, endpoint probe or remote deletion occurred. Worker identities, addresses/ports, process IDs, raw commands/environments and archives are withheld.

    Note

    Generated by GitHub Copilot.

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 regressions

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions