Repository navigation
chore: declutter top-level repo layout - #11890
Conversation
Remove one-off incident docs and committed test-results noise, move dev/repro/bench tools under tests/tools, and relocate i18next config into config/ so the GitHub root scrolls to the description faster.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (86)
📝 WalkthroughWalkthroughThe change relocates test tools from ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
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. Comment |
Greptile SummaryThis PR declutters the repo root by deleting two stale incident/checklist markdown files, removing committed
Confidence Score: 3/5Safe to merge for CI and production; the broken paths are isolated to local benchmark scripts that are not run in any automated workflow. The mechanical rename of tools/ to tests/tools/ is done correctly everywhere that matters for CI and the reliability gates. However, six benchmark files that Electron-launch the app were moved one directory level deeper without adjusting their repo-root path computation: three files use resolve(scriptDir, '..', '..') and three use new URL('../..', import.meta.url) — both now land in tests/ rather than the repo root. The three terminal-*-bench.mjs files additionally carry ../../config/scripts/... relative imports that resolve to the non-existent tests/config/scripts/ directory, causing an immediate ERR_MODULE_NOT_FOUND on import. Files Needing Attention: tests/tools/benchmarks/startup-time-bench.mjs, tests/tools/benchmarks/daemon-coldstart-bench.mjs, tests/tools/benchmarks/main-thread-jank-bench.mjs, tests/tools/benchmarks/terminal-perf-bench.mjs, tests/tools/benchmarks/terminal-cold-park-resource-bench.mjs, tests/tools/benchmarks/terminal-cold-park-reveal-bench.mjs
|
| Filename | Overview |
|---|---|
| tests/tools/benchmarks/startup-time-bench.mjs | Moved from tools/benchmarks/; only docstring paths updated but repoRoot = resolve(scriptDir, '..', '..') now resolves to tests/ instead of repo root — benchmark will fail at startup. |
| tests/tools/benchmarks/daemon-coldstart-bench.mjs | Same repoRoot depth bug as startup-time-bench.mjs — resolve(scriptDir, '..', '..') resolves to tests/ not repo root. |
| tests/tools/benchmarks/main-thread-jank-bench.mjs | Same repoRoot depth bug — only comments were updated, resolve(scriptDir, '..', '..') still needs one more '..'. |
| tests/tools/benchmarks/terminal-perf-bench.mjs | rootDir miscalculated via new URL('../..', ...) (resolves to tests/), and ../../config/scripts/... imports now point to non-existent tests/config/scripts/... |
| tests/tools/benchmarks/terminal-cold-park-resource-bench.mjs | Same broken rootDir and relative import issues as terminal-perf-bench.mjs; result path would double-append tests/tests/tools/. |
| tests/tools/benchmarks/terminal-cold-park-reveal-bench.mjs | Same broken rootDir and relative import issues as terminal-perf-bench.mjs. |
| package.json | Updated all pnpm bench:* and win-*-e2e script entry points from tools/ to tests/tools/ — paths are correct. |
| config/vitest.config.ts | Vitest include glob updated from tools//*.test.mjs to tests/tools//*.test.mjs — correctly picks up relocated test files. |
| config/reliability-gates.jsonc | Commands, testFiles, and assertionRef file paths updated from tools/ to tests/tools/ — all consistent. |
| config/i18next.config.ts | File moved from root to config/ with no content changes; CODEOWNERS and extraction script updated to point at the new path. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
subgraph Before["Before: tools/ at repo root"]
A["tools/benchmarks/*.mjs"]
B["resolve(scriptDir, '..', '..') -> repo root"]
C["../../config/scripts/... -> config/scripts/"]
end
subgraph After["After: tests/tools/ (one level deeper)"]
D["tests/tools/benchmarks/*.mjs"]
E["resolve(scriptDir, '..', '..') -> tests/ BROKEN"]
F["../../config/scripts/... -> tests/config/scripts/ BROKEN"]
end
A --> B --> C
D -->|unchanged bug| E
D -->|unchanged bug| F
Comments Outside Diff (3)
-
tests/tools/benchmarks/startup-time-bench.mjs, line 43 (link)repoRootresolves totests/after the moveresolve(scriptDir, '..', '..')previously returned the repo root when the file lived attools/benchmarks/; now that it lives attests/tools/benchmarks/(one level deeper), going up only two levels yieldstests/instead. Every subsequent use ofrepoRoot(e.g.join(repoRoot, 'node_modules', 'electron', ...),join(repoRoot, 'out', 'main', 'index.js'), and passingrepoRootas the Electron app path) will point insidetests/and the benchmark will throw at startup. The same bug is present intests/tools/benchmarks/daemon-coldstart-bench.mjs(line 27) andtests/tools/benchmarks/main-thread-jank-bench.mjs(line 35). -
tests/tools/benchmarks/daemon-coldstart-bench.mjs, line 27-29 (link)Same off-by-one depth issue as
startup-time-bench.mjs: with the file attests/tools/benchmarks/, two..steps reachtests/not the repo root. -
tests/tools/benchmarks/terminal-perf-bench.mjs, line 31 (link)rootDirand relative imports both broken after the movenew URL('../..', import.meta.url)climbs fromtests/tools/benchmarks/two levels totests/, not the repo root. This has two knock-on effects: (1)rootDirpassed topath.join(rootDir, 'tests', 'tools', ...)producestests/tests/tools/...for the report path; (2) the static relative imports (../../config/scripts/windows-apphang-repro/...) now resolve totests/config/scripts/...which does not exist, so the script will throwERR_MODULE_NOT_FOUNDon import. The same issue exists interminal-cold-park-resource-bench.mjs(line 40) andterminal-cold-park-reveal-bench.mjs(line 46). All three neednew URL('../../..', import.meta.url)and their../../config/scripts/...imports updated to../../../config/scripts/....
Reviews (1): Last reviewed commit: "chore: declutter top-level repo layout" | Re-trigger Greptile
Remove one-off incident docs and committed test-results noise, move dev/repro/bench tools under tests/tools, and relocate i18next config into config/ so the GitHub root scrolls to the description faster.
Summary
ORCHESTRATION_IMPLEMENTATION_CHECKLIST.md,renderer-worktree-freeze-incident-2026-07-29.md, and committedtest-results/*notestools/→tests/tools/(benchmarks, repros, win e2e harnesses) and updated package scripts, CI workflows, reliability gates, vitest globs, and importsi18next.config.ts→config/i18next.config.tsand pointed extraction + CODEOWNERS at the new pathGoal: fewer top-level entries so GitHub root scrolls to the README description faster.
Test plan
pnpm win-update-e2e/ crash-survival path strings resolve undertests/tools/pnpm verify:localization-extractionfindsconfig/i18next.config.ts