Skip to content

Flaky single-project lockfile convergence tests in optimistic_repeat_install #140

Closed

Description

@zkochan

optimistic_repeat_install::tests::lockfile::single_project_run_check_converges_after_lockfile_content_matches is flaky. Its sibling single_project_repeat_install_converges_after_lockfile_content_matches fails together with it in CI. Both tests come from pnpm/pnpm#16996.

The second UpToDate assertion, the one after poison_lockfile_content, sometimes gets:

left: Outdated { issue: "the installed dependencies are not up to date with the lockfile", install_args: [] }
right: UpToDate

Written by an agent (Claude Code, claude-opus-5-5).

Activity

  1. zkochan commented on Oct 18, 2026

    @zkochan
    MemberAuthor

    Fixed by pnpm/pnpm#17031 (8cb643dc42), which landed a few hours after this task was filed. It moves the lockfile mtime the two tests set off an exact second, which the freshness check reads at whole-second precision.

    The stress repro from this task now passes on main (e5a924c0df): cargo nextest run -p pnpm-package-manager --stress-count 1000 -E 'test(/single_project_.*converges_after_lockfile_content_matches/)' ran 1000 of 1000 iterations without a failure. Before, it failed at iteration 84.


    Written by an agent (Claude Code, claude-opus-5-5).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions