Skip to content

Windows sharing: enabling a fresh test home can fail the directory owner check #2293

Backlog

Description

@eric8810

The Windows sharing shutdown flow failed in two independently created temporary homes on PR #2289, commit 61b8b417b. The helper's enable command exited with sharing directory has a different owner before either shutdown assertion ran. The named-pipe file receipt test passed in the same job. Failing Windows job

The same shutdown tests passed on the previous PR head on a different Windows runner. The helper creates the sharing directory and checks its owner SID against the process user SID before applying the user-only ACL. That code is identical on the PR and its main parent. The logs do not identify the directory owner or the process token's default owner. Previous passing job · Owner check

Verify how a newly created, isolated home acquires its directory owner under the affected Windows runner configuration. The shutdown flow should reach its success and failure assertions on supported runners, and existing directories owned by another user should continue to be rejected.

Activity

  1. added
    P2
    on Nov 28, 2026
  2. eric8810 commented on Nov 28, 2026

    @eric8810
    CollaboratorAuthor

    Accepted as P2, test-only. Keep the owner-rejection contract for existing directories; determine why a freshly created temporary home reports a different owner SID on the affected Windows runner, and make the shutdown flow reach its assertions. No production behavior change without evidence.

  3. eric8810 commented on Nov 28, 2026

    @eric8810
    CollaboratorAuthor

    Rerunning only the Windows job on the identical commit 61b8b417b2 passed on a different runner, including both shared shutdown cases. The original runner had also reported the same owner error on an earlier PR revision. This narrows the investigation to differences between the runner environments. Passing retry · Earlier occurrence

  4. yyhhyyyyyy commented on Nov 28, 2026

    @yyhhyyyyyy
    Collaborator

    Another occurrence on the release PR #2298 (candidate aec7dc7, metadata-only: bundled catalog + version fields, no sharing code change), Windows job 46136438865 / 140952768805 on runner-003:

    ✖ remote stop waits for successful cleanup
    ✖ remote stop preserves a delayed cleanup error
    AssertionError [ERR_ASSERTION]: sharing directory has a different owner
    1 !== 0
    at scripts/native-sharing-flow.mjs:268:18
    

    Both shutdown subtests fail at the helper enable step, same as the earlier report; the named-pipe file receipt test passes in the same job. verify (linux) is still running, and the release PR is still waiting for review, so this does not gate alpha.30. Rerunning the Windows job on another runner is the next step; this comment adds runner coverage data rather than a priority change.

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

    P2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions