Skip to content

test(web): a real write through the DAPI request budget - #78

Merged
PastaPastaPasta merged 1 commit into
masterfrom
test/web-write-through-gate
Sep 27, 2026
Merged

PastaPastaPasta merged 1 commit into
masterfrom
test/web-write-through-gate

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Owner

Adds an e2e test that writes through the DAPI request budget (follow-up to #72)

Adds e2e/rate-budget-write.spec.ts (rbw-1). The rb-* specs from #72 only covered reads. This test runs the two write paths the owner reported as hanging, both through the #72 fetch gate:

  1. It registers a browser key (sign-in → "Create this browser's key", an IdentityUpdate).
  2. It creates a repo (/new → "Sign & create", a document create).

For each write it asserts that the transition reached broadcastStateTransition and waitForStateTransitionResult, and that the write landed. It also asserts that the gate never refused a write call and that "Platform is busy" was not shown.

Run it with E2E_WRITE=1. It uses E2E_WRITE_IDENTITY if set, otherwise the CI-RUNNER fixture file. Each run adds one limited key and one repo to that identity.

The reported write hang is not caused by #72

The owner saw every write hang with no broadcast. I reproduced this on https://forge.dashhq.org, which runs the #72 build:

  • Clean browser: registering the browser key broadcasts at 3.3 s and lands at 4.5 s, and sign-in finishes at 6.7 s. Creating a repo then broadcasts and lands too; the repo exists at 15 s.
  • A second tab holding the dash-forge IndexedDB open at v1 (an old build): the same import hangs, with no broadcast and no sign-in after 45 s.

The sign-in agent's analysis matches this:

The fix, a fail-fast IndexedDB open with a named error, is in fix/signin-spinner-timeouts. Until it ships, closing or reloading the other Dash Forge tabs clears the hang.

Verified: rbw-1 passed live on moutai against the current master build (15 s). The identity was minted fresh (impl-p1/p1w1), not a shared fixture.

🤖 Generated with Claude Code

Registers a browser key and creates a repo through the fetch gate and checks both reached broadcastStateTransition and waitForStateTransitionResult. The rb-* specs only read.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 42 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 8c7cc631-3897-4d3f-a06c-d6b5c95f9455

📥 Commits

Reviewing files that changed from the base of the PR and between 2b83db3 and b94a356.

📒 Files selected for processing (1)
  • forge-web/e2e/rate-budget-write.spec.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant