Flaky e2e: turns.engine F-097 setup never gets write access (canWrite stays false for 60 s)

Open
#403 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
testing

Research direction

Start with the engine() setup in e2e/turns.engine.spec.ts (lines 52-62), which requests write access and waits up to 60 s for client.state.connection.canWrite, then compare it with the F-097 test at line 124. Check the development gateway log for that instance and the client's scope state at the timeout, and look at the scope code changed in #318. Done when the cause is known and either the race is fixed with a test or the setup waits on the correct signal and reports which step timed out.

Written by the indexing model from the issue text.

Description

bug

Seen once on PR #400, which changes only apps/mobile/** and docs/**, so that PR can't have caused it.

  • Run: 45126938924, job e2e (3).
  • Test: e2e/turns.engine.spec.ts:124, "F-097: Stop pressed before the gateway has taken the send stops the turn on the gateway".
  • What failed: the test's engine() setup, before any Stop step. It requests write access, then waits up to 60 s for client.state.connection.canWrite (lines 52–62). It never became true, though the connection itself reached connected.
  • The rest of the job: 59 of 60 tests passed.

To find out

  • Whether the write-access request was sent and never answered, was answered and not applied, or was never sent. The development gateway's log for that instance and the client's scope state at the timeout would tell.
  • Whether it's load on the hosted runner (the request's approval arriving after 60 s), or a race in the scope upgrade after connecting. The scope code changed recently in #318.
  • Whether other engine specs share the same setup and could fail the same way.

Done when

  • The cause is known, and either the race is fixed with a test, or the setup waits on the right signal and reports which step timed out.

Related flaky-test issues: #327 (the accounts e2e's operator connection drops under load) and #384 (5-second timeouts under load).

Dominant language
TypeScript
Stars
2
Forks
0
Avg merge
9h 19m
Merged PRs (30d)
138

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sidebandstudio/clawtrate

All issues in sidebandstudio/clawtrate

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.