Repository navigation
test(base): wait for an approved change to leave the review queue before reading - #41
Conversation
…ore reading Four E2E steps clicked Approve & publish and read the result before the approval finished. approveFirstChange waits for the queue to shrink. Co-authored-by: jherr <jherr@pobox.com>
|
TanStack is on CodeRabbit Free, which includes PR summaries. Ask your admin to upgrade for code reviews.
Walkthrough
|
|
Merge chain: step 1 of 24. Base:
main. Merge it first. Its head,309856e, is unchanged: one commit onmain3b4a112.Fixes a flaky
app/baseE2E test: "saved report snapshots stay fixed while live pages refresh; revisions require approval". It also fails intermittently onmain.What
Four steps clicked Approve & publish and read the result before the approval had finished. A new
approveFirstChangehelper clicks the first Approve & publish button, then waits until the review queue holds one fewer change. That's an observable signal rather than a timeout. Onlyapp/base/e2e/base.spec.tschanges.The same fix is already on the 4c branch (#36, commit
092cbbb), where the flake first showed up. This PR cherry-picks it ontomainso it doesn't have to wait for the stack. When 4c rebases onto amainthat contains this PR, that commit becomes empty and drops out.How verified
GitHub Actions is out of billing, so this ran locally on
main3b4a112plus this commit:pnpm --filter base test:e2epassed 12/12 on three runs in a row.oxfmt --checkis clean on the changed file.Merge chain (local verification, CI down)
No conflicts. The head is unchanged;
309856ealready sits directly onmain.The chain tip's tree is exactly the integration rehearsal plus #46 (
c4e6d7c), and the tip passes the full local suite. I simulated merging every PR in order, with a merge commit or a fast-forward at each step, and every step is clean. A plain squash of the next PR would conflict, because the squash commit isn't an ancestor of the next branch. To squash instead, first rebase the branch's one commit onto the newmain; that rebase is always clean.Summary by CodeRabbit