Tests: run what a change can break, not the whole browser suite
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bun, github-actions, typescript
Hướng nghiên cứu
Start by reading scripts/ci-e2e-reuse.ts and scripts/ci-e2e-shard.ts, then inspect the browser test workflow and PR template. The issue proposes a new affected-spec map and a shared local and CI command, but leaves key choices open, including how to maintain the map and handle the runtime cap. Done means the required PR job, e2e: template line, local command, and full-run schedule are in place.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Today a change can wait hours on tests that have nothing to do with it: the full browser suite is about 3,800 tests in 16 shards, and a full local run takes around three hours. That cannot be the price of merging. This issue is where we agree on a leaner model and then build it.
What we have
- Fast lanes on every PR: types, unit, DOM, guards, security scans, a browser smoke slice.
- The full browser suite on a PR only with the
ci:e2elabel, in 16 shards, with reuse of specs that already passed (scripts/ci-e2e-reuse.ts) and time-balanced shards (scripts/ci-e2e-shard.ts). - The full suite on
main, and a job that finds which merge turnedmainred. - No way to say "run just the browser specs this change can break".
What went wrong on both ends
- Too heavy: full browser runs per PR and per sync, locally and in CI, queued behind each other.
- Too light: merging on the fast lanes only let one regression through the same day (a reply-box label). Three or four related specs, about two minutes of browser time, would have caught it.
So the gap is the middle: a small, targeted browser run.
Proposal
- Per PR: fast lanes plus an affected slice. A new job runs only the browser specs a change can affect, capped at roughly ten minutes. The slice is the union of:
- spec files the PR itself adds or edits;
- specs named by the author in the PR body, one line:
e2e: inbox-ended-session, inbox-voice; - specs mapped from changed paths by a small checked-in map (for example
tests/e2e/affects.json:packages/inbox/thread/**→ the thread and reply specs). Start with the hot areas only and grow it when a regression slips past.
If the slice is empty, the job says so and passes. If it would exceed the cap, it runs the mapped specs first and reports what it dropped.
- Authors declare. Whoever opens a PR (a person or an agent) writes the
e2e:line, ore2e: nonewith a reason. Reviewers check that line the way they check the diff. main: the full suite after a batch, not per PR. Not blocking. A red is fixed forward by the merge that caused it; the existing "which merge turned main red" job names it.- Before a release: the full suite plus a QA pass. This is where the whole thing must be green.
- Locally: the same slice. One command that takes the same inputs and runs the same specs (
bun run e2e:affectedor similar), so nobody runs 16 shards by hand. - Still full browser tests before merge: changes to CSP, guards, auth, the start lock, or the doors between linked machines.
Open questions
- Is a hand-kept path map good enough, or do we derive it (imports from spec helpers, coverage from one instrumented full run)?
- Where does the cap sit, and what happens above it?
- Should the unit and DOM lanes get the same treatment? The impact script already lists several hundred files for a small change.
- How do we keep the map honest: fail when a changed path matches no entry and no
e2e:line is given?
Done when
- The affected-slice job exists and is required on PRs.
- The
e2e:line is in the PR template. - The local command exists.
- Full runs happen on
mainand before releases only, apart from the exceptions in point 6.
- Ngôn ngữ chính
- TypeScript
- Star
- 8.7k
- Fork
- 649
- Merge trung bình
- 16 giờ 1 phút
- Pull request đã merge (30 ngày)
- 756
Chuẩn bị môi trường
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của backnotprop/plannotator
-
Inbox: numbered choices in a :::question become free text, and context bullets become the choicesCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
backnotprop/plannotator#4132 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Claude Code: "classic.PermissionRequest hook was skipped" notice is back on Bash permission promptsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
backnotprop/plannotator#4051 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
backnotprop/plannotator#4000 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PR description is hidden when a PR review opens on a phoneCó thể đã có người làm @flipcyde101 đã nhận 8 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
backnotprop/plannotator#3667 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
backnotprop/plannotator#2643 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của backnotprop/plannotator
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
frontend testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
vendrabuck/HERD#1588 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue priority: low
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
art-audio
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100