Skip to content

Flaky: scheduledTaskMcpProfile webhook test 'never: the owner's task ran' (still after the #798 fix) #911

Closed

Description

@scuttletoby

apps/server/src/fork/scheduledTaskMcpProfile.test.ts > "a webhook run is refused when it starts, and again after it waited for a slot" fails with AssertionError: never: the owner's task ran.

Plan (one writer): first find out whether the product code really lets the owner's task run once in a race (a slot freed between the two refusal checks), or whether the test's "never" check fires on an event that is not a run. Fix the cause: product code if it is a race, otherwise wait on the real event. No sleeps and no retries. Loop the test under load before and after the fix and report the failure rates. Until it is fixed, PRs that hit it are not re-run (known-failing test: fix first).

🤖 Generated with Claude Code

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions