Repository navigation
[DO NOT MERGE] ripple live test: a change that selects nothing - #344098
Alexandru Dima (alexdima) wants to merge 1 commit into
Conversation
A comment-only change and a type-only change (a new optional property on the exported IReference interface) to src/vs/base/common/lifecycle.ts, which 4,243 source files import. ripple should find 0 changed declarations and select 0 unit test files (0.0%), so the macOS and Windows unit test jobs skip their test steps while Linux runs every unit test. Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The runtime-neutral edits have no identified blocking issues; approval does not verify CI outcomes or override the do-not-merge designation.
No open issues 🎉
What changed in this PR
This draft PR exercises ripple’s zero-test selection for runtime-neutral changes to VS Code’s widely imported lifecycle module. It is a CI experiment and remains explicitly do not merge.
Changes:
- Corrects a typo in the disposable-tracking documentation.
- Adds an optional, documented
debugLabelproperty toIReference<T>without changing runtime code.
| File | Description |
|---|---|
src/vs/base/common/lifecycle.ts |
Supplies comment-only and type-only edits to exercise zero-test selection. |
Review effort: Balanced
Result: as expectedRun 40172614560, one push (
Unit test job durations
Together, the four macOS and Windows jobs took 53.7 min on average before #342907. On this push they took 8.9 min. What skipping these jobs when nothing is selected would saveThese four jobs still take 531 s (8.9 VM minutes: 3.1 on macOS, 5.8 on Windows) on such a push. 516 s of that is setup before the test steps, and the remaining 15 s are the post-job steps. Per job, in seconds:
¹ Job setup, the built-in extensions cache, the plan download and the gaps between steps. Times come from the step timestamps, which have 1 s resolution.
The rest of the run was not cancelled. When the six unit test jobs finished, at 07:42:06 UTC, the only job still running was |
|
Experiment done: the results are in the comment above. Closing, as this pull request was never meant to be merged. |
Do not merge. Live CI test of the unit test selection from #342907 (ripple): a change that selects nothing.
What this shows
One push with a comment-only change and a type-only change to
src/vs/base/common/lifecycle.ts, the most widely imported module insrc/(4,243 files import it):TRACK_DISPOSABLESdoc comment;debugLabelproperty to the exportedIReference<T>interface.Neither changes runtime code: ripple hashes declarations without comments or TypeScript-only syntax, and interfaces have no runtime node. So the plan selects no unit test file, and the macOS and Windows unit test jobs should run their setup (checkout, node_modules, transpile, Electron or Playwright) but skip every test step. This measures what a follow-up that skips these jobs entirely when nothing is selected would save on such pushes (about 17% of pushes).
Expected outcome
unit-test-planartifact withplan.jsononly (nounit.txt)changed=false,failed=false);Ripplejob skipped🧪 Run unit testsstep, succeedLocal prediction, with ripple built from
main's sources:File-level import analysis would select 2,783 of the 2,785 unit and integration test files.
How to follow
Detect Changesjob summary shows the unit test plan.🧪 Run unit testssteps show as skipped. For each, I record the total duration and the time spent before the test steps.The pull request stays a draft and will be closed after review.