Skip to content

chore: declutter top-level repo layout - #11890

Merged
AmethystLiang merged 1 commit into
mainfrom
chore/top-level-repo-cleanup
Aug 1, 2026
Merged

AmethystLiang merged 1 commit into
mainfrom
chore/top-level-repo-cleanup

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • Removed top-level noise: ORCHESTRATION_IMPLEMENTATION_CHECKLIST.md, renderer-worktree-freeze-incident-2026-07-29.md, and committed test-results/* notes
  • Moved tools/ → tests/tools/ (benchmarks, repros, win e2e harnesses) and updated package scripts, CI workflows, reliability gates, vitest globs, and imports
  • Moved i18next.config.ts → config/i18next.config.ts and pointed extraction + CODEOWNERS at the new path

Goal: fewer top-level entries so GitHub root scrolls to the README description faster.

Test plan

  • CI green on this PR
  • pnpm win-update-e2e / crash-survival path strings resolve under tests/tools/
  • pnpm verify:localization-extraction finds config/i18next.config.ts

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.
@AmethystLiang
AmethystLiang merged commit ad1e58d into main Aug 1, 2026
46 of 47 checks passed
@AmethystLiang
AmethystLiang deleted the chore/top-level-repo-cleanup branch August 1, 2026 07:26
@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: a1d35243-9338-47ac-ae25-c477a7554f1f

📥 Commits

Reviewing files that changed from the base of the PR and between 278a4b2 and e614427.

📒 Files selected for processing (86)
  • .github/CODEOWNERS
  • .github/workflows/daemon-relocation-spike.yml
  • .github/workflows/win-crash-survival-e2e.yml
  • .github/workflows/win-update-e2e.yml
  • .github/workflows/win-update-survival-e2e.yml
  • .gitignore
  • ORCHESTRATION_IMPLEMENTATION_CHECKLIST.md
  • config/i18next.config.ts
  • config/reliability-gates.jsonc
  • config/scripts/pr-workflow-parallelism.test.mjs
  • config/scripts/run-multi-workspace-typing-bench.mjs
  • config/scripts/verify-localization-extraction.mjs
  • config/scripts/win-crash-survival-e2e.test.mjs
  • config/vitest.config.ts
  • package.json
  • renderer-worktree-freeze-incident-2026-07-29.md
  • src/main/daemon/session-ingest-throughput.bench.test.ts
  • test-results/pr-11293-11177-integration-r1.md
  • test-results/pr-11293-11177-integration-r2.md
  • test-results/pr-11293-11177-integration-r3.md
  • tests/e2e/terminal-multi-workspace-typing-latency.spec.ts
  • tests/tools/benchmarks/cpu-pressure-worker.mjs
  • tests/tools/benchmarks/daemon-coldstart-bench.mjs
  • tests/tools/benchmarks/main-thread-jank-bench.mjs
  • tests/tools/benchmarks/results/startup-acl-fix-2026-06-10T19-37-58-671Z.json
  • tests/tools/benchmarks/results/startup-acl-fix-steady-2026-06-10T19-41-40-683Z.json
  • tests/tools/benchmarks/results/startup-baseline-2026-06-10T19-36-01-305Z.json
  • tests/tools/benchmarks/results/terminal-perf-baseline-2026-07-02T07-23-46-933Z.json
  • tests/tools/benchmarks/results/terminal-perf-fix-a-b-2026-07-02T07-46-58-178Z.json
  • tests/tools/benchmarks/results/terminal-perf-fix-abd-2026-07-02T07-51-00-936Z.json
  • tests/tools/benchmarks/results/terminal-perf-fix-abdf-2026-07-02T07-59-11-820Z.json
  • tests/tools/benchmarks/startup-time-bench.mjs
  • tests/tools/benchmarks/terminal-cold-park-resource-bench.mjs
  • tests/tools/benchmarks/terminal-cold-park-reveal-bench.mjs
  • tests/tools/benchmarks/terminal-headless-parse-bench.mjs
  • tests/tools/benchmarks/terminal-perf-bench.mjs
  • tests/tools/benchmarks/terminal-pipeline-bench.mjs
  • tests/tools/benchmarks/workspace-switch-paint-latency.mjs
  • tests/tools/benchmarks/worktree-deletion-dev-bench.mjs
  • tests/tools/daemon-relocation-spike/README.md
  • tests/tools/daemon-relocation-spike/app-inventory.mjs
  • tests/tools/daemon-relocation-spike/cli.mjs
  • tests/tools/daemon-relocation-spike/daemon-launch.mjs
  • tests/tools/daemon-relocation-spike/host-copy.mjs
  • tests/tools/daemon-relocation-spike/loaded-module-probe.mjs
  • tests/tools/daemon-relocation-spike/loaded-modules.ps1
  • tests/tools/daemon-relocation-spike/ndjson-client.mjs
  • tests/tools/daemon-relocation-spike/selftest.mjs
  • tests/tools/daemon-relocation-spike/spike.mjs
  • tests/tools/daemon-relocation-spike/tier-file-set.mjs
  • tests/tools/repro-macos-renderer-close-teardown.cjs
  • tests/tools/repro-orchestration-long-prompt.mjs
  • tests/tools/repro-watcher-crash-7547/.gitignore
  • tests/tools/repro-watcher-crash-7547/README.md
  • tests/tools/repro-watcher-crash-7547/child.cjs
  • tests/tools/repro-watcher-crash-7547/fixed-child.cjs
  • tests/tools/repro-watcher-crash-7547/run.cjs
  • tests/tools/spikes/.gitignore
  • tests/tools/terminal-garble-frame-analysis.mjs
  • tests/tools/terminal-garble-production-repro.mjs
  • tests/tools/terminal-garble-react-terminal-recovery.mjs
  • tests/tools/terminal-garble-session-replay.mjs
  • tests/tools/win-crash-survival-e2e/README.md
  • tests/tools/win-crash-survival-e2e/cli-args.mjs
  • tests/tools/win-crash-survival-e2e/crash-assertions.mjs
  • tests/tools/win-crash-survival-e2e/crash-step.mjs
  • tests/tools/win-crash-survival-e2e/daemon-identity.mjs
  • tests/tools/win-crash-survival-e2e/reattach-proof.mjs
  • tests/tools/win-crash-survival-e2e/run.mjs
  • tests/tools/win-update-e2e/README.md
  • tests/tools/win-update-e2e/app-driver.mjs
  • tests/tools/win-update-e2e/app-driver.test.mjs
  • tests/tools/win-update-e2e/assertions.mjs
  • tests/tools/win-update-e2e/cli-args.mjs
  • tests/tools/win-update-e2e/daemon-processes.mjs
  • tests/tools/win-update-e2e/installer-steps.mjs
  • tests/tools/win-update-e2e/interactivity-probes.mjs
  • tests/tools/win-update-e2e/onboarding-profile.mjs
  • tests/tools/win-update-e2e/platform-guard.mjs
  • tests/tools/win-update-e2e/powershell-runner.mjs
  • tests/tools/win-update-e2e/preflight.mjs
  • tests/tools/win-update-e2e/registry-shortcut-backup.mjs
  • tests/tools/win-update-e2e/run.mjs
  • tests/tools/win-update-e2e/window-enum.ps1
  • tests/tools/win-update-e2e/window-watch.mjs
  • tests/tools/win-update-e2e/window-watch.ps1

📝 Walkthrough

Walkthrough

The change relocates test tools from tools/ to tests/tools/ across workflows, scripts, package commands, documentation, and test discovery. It adds an i18next extraction configuration and updates the extraction command to use it. New tooling covers daemon relocation, benchmark execution, Windows crash survival, packaged update validation, watcher crash reproduction, terminal replay, terminal frame analysis, and renderer teardown. Benchmark result JSON artifacts are added.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

@greptile-apps

greptile-apps Bot commented Aug 1, 2026 •

Copy link
Copy Markdown

Greptile Summary

This PR declutters the repo root by deleting two stale incident/checklist markdown files, removing committed test-results/ notes, moving tools/ → tests/tools/, and moving i18next.config.ts → config/i18next.config.ts. All CI workflows, reliability gates, package.json scripts, vitest globs, and the localization extraction script are updated to reflect the new paths.

  • Most of the 86-file rename is mechanical and correct: CI workflows, package.json scripts, config/vitest.config.ts, config/reliability-gates.jsonc, config/scripts/win-crash-survival-e2e.test.mjs, and the localization extraction script all land on the right new paths.
  • Six benchmark files were not fully updated: startup-time-bench.mjs, daemon-coldstart-bench.mjs, and main-thread-jank-bench.mjs each compute repoRoot via resolve(scriptDir, '..', '..'), which now resolves to tests/ instead of the repo root; terminal-perf-bench.mjs, terminal-cold-park-resource-bench.mjs, and terminal-cold-park-reveal-bench.mjs have the same depth problem via new URL('../..', import.meta.url) and also carry ../../config/scripts/... relative imports that now resolve to the non-existent tests/config/scripts/ directory.
  • The i18next.config.ts relocation is clean: CODEOWNERS and the extraction CLI invocation both point at config/i18next.config.ts.

Confidence Score: 3/5

Safe 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

Important Files Changed

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
Loading

Comments Outside Diff (3)

  1. tests/tools/benchmarks/startup-time-bench.mjs, line 43 (link)

    P1 repoRoot resolves to tests/ after the move

    resolve(scriptDir, '..', '..') previously returned the repo root when the file lived at tools/benchmarks/; now that it lives at tests/tools/benchmarks/ (one level deeper), going up only two levels yields tests/ instead. Every subsequent use of repoRoot (e.g. join(repoRoot, 'node_modules', 'electron', ...), join(repoRoot, 'out', 'main', 'index.js'), and passing repoRoot as the Electron app path) will point inside tests/ and the benchmark will throw at startup. The same bug is present in tests/tools/benchmarks/daemon-coldstart-bench.mjs (line 27) and tests/tools/benchmarks/main-thread-jank-bench.mjs (line 35).

  2. tests/tools/benchmarks/daemon-coldstart-bench.mjs, line 27-29 (link)

    P1 Same off-by-one depth issue as startup-time-bench.mjs: with the file at tests/tools/benchmarks/, two .. steps reach tests/ not the repo root.

  3. tests/tools/benchmarks/terminal-perf-bench.mjs, line 31 (link)

    P1 rootDir and relative imports both broken after the move

    new URL('../..', import.meta.url) climbs from tests/tools/benchmarks/ two levels to tests/, not the repo root. This has two knock-on effects: (1) rootDir passed to path.join(rootDir, 'tests', 'tools', ...) produces tests/tests/tools/... for the report path; (2) the static relative imports (../../config/scripts/windows-apphang-repro/...) now resolve to tests/config/scripts/... which does not exist, so the script will throw ERR_MODULE_NOT_FOUND on import. The same issue exists in terminal-cold-park-resource-bench.mjs (line 40) and terminal-cold-park-reveal-bench.mjs (line 46). All three need new 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

enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
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.
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