Skip to content

fix: add pipeline init gate to wrong-requester approval tests#941

Merged
Aaronontheweb merged 1 commit intonetclaw-dev:devfrom
Aaronontheweb:claude-wt-racy-test-windows2
May 8, 2026
Merged

fix: add pipeline init gate to wrong-requester approval tests#941
Aaronontheweb merged 1 commit intonetclaw-dev:devfrom
Aaronontheweb:claude-wt-racy-test-windows2

Conversation

@Aaronontheweb
Copy link
Copy Markdown
Collaborator

Summary

  • Fixes racy Windows CI failure in Text_approval_from_wrong_requester_posts_warning (and sibling Button_approval_from_wrong_requester_posts_warning)
  • Both tests were missing the AwaitAssertAsync(() => Assert.NotNull(pipeline.CapturedOptions)) initialization gate that all 11 other tests in SessionBindingContractTests use
  • On Windows CI under load, Akka.Streams pipeline materialization can exceed the 3s default AwaitAssertAsync timeout, causing the first assertion to exhaust the entire budget before the actor finishes initializing — leaving no time for the second phase assertion

Observed in PR #940 CI: https://github.com/netclaw-dev/netclaw/actions/runs/25565523273/job/75047844078

Test plan

  • Both wrong-requester tests pass locally (4 variants: Slack + Discord × Button + Text)
  • CI passes on Windows (Test-windows-latest)

The two wrong-requester tests were missing the CapturedOptions
initialization wait that all other tests in the file use. On Windows CI,
pipeline materialization can exceed the 3s default AwaitAssertAsync
timeout, causing the first assertion to consume the entire budget before
the actor even finishes initializing.
@Aaronontheweb Aaronontheweb enabled auto-merge (squash) May 8, 2026 16:36
@Aaronontheweb Aaronontheweb added the bug Something isn't working label May 8, 2026
@Aaronontheweb Aaronontheweb merged commit 06529ba into netclaw-dev:dev May 8, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant