Skip to content

Cover refused uninstall in concurrent config ownership test #8379

Closed

Description

@lidge-jun

Client or integration

Other

Area

Installation or packaging

Summary

The concurrent config-ownership test assumes uninstall always acquires its lock. When the lock remains busy, uninstall can correctly return refused while registrations later succeed, making the test report a failure despite the refusal preserving the configuration home.

Reproduction

  1. Run tests/config/config-ownership-concurrent-record.test.ts while registrations and uninstall contend for the ownership lock.
  2. If uninstall returns refused before writing its tombstone, subsequent registrations can succeed.
  3. The test currently expects each successfully registered file to have been removed, even though uninstall was refused.

A synthetic temporary-home check reproduced the refusal path. The CI failure in #8090 did not log the uninstall result, so its exact timing path remains unconfirmed.

Version

df4b71b39baebec542f9c328f434731baa2bde12 (dev); also observed in CI for #8090 at 86b45dec5cfd148c7735aa4e2414ae7f6b6f7f1c.

Operating system

GitHub-hosted Ubuntu 24.04; synthetic verification on macOS.

Provider and model

Not applicable.

Logs or error output

tests/config/config-ownership-concurrent-record.test.ts:110: expected false, received true.

Screenshots and supporting files

CI job: https://github.com/lidge-jun/opencodex/actions/runs/42471886382/job/128707826274

Redacted configuration

Synthetic temporary home only.

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. added
    bug
    on Nov 8, 2026
  2. coderabbitai commented on Nov 8, 2026

    @coderabbitai
    Contributor
    🔗 Related PRs

    #8141 - fix(config): remove owned paths relative to the config root [merged]
    #8121 - Serialize uninstall manifest updates under one cross-process lock [merged]


    📝 Issue Planner

    Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 Issue enrichment is currently in open beta.

    To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  3. added
    install
    on Nov 8, 2026
  4. shu-chen-dot-ca commented on Nov 9, 2026

    @shu-chen-dot-ca
    Contributor

    I'm taking this one on.

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

    buginstall

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions