Skip to content

chore: format the repository and prune obsolete tests - #87

Merged
LikC1606 merged 1 commit into
mainfrom
chore/repo-format
Dec 2, 2026
Merged

LikC1606 merged 1 commit into
mainfrom
chore/repo-format

Conversation

@LikC1606

@LikC1606 LikC1606 commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

内容

  • 新增 .editorconfig、Prettier 配置与忽略列表,以及 format / format:check 脚本;按 Prettier 格式化 src、apps、tests、scripts、docs/web。冻结归档目录、tests/fixtures/、docs/assets/ 和生成文件没有改动。CI 会执行 format:check。
  • 浏览器端到端测试移到 scripts/e2e/,scripts/web-scenario.ts 和 scripts/web-ui-controls.ts 作为转发入口保留,供冻结的 review 复现使用。带日期的设计笔记移到 docs/history/。
  • 新增 test:archive-process、test:archive-roadmap、test:classic-global-trajectory、test:math-rendering。
  • 新增 CONTRIBUTING.md。
  • 源码修复 src/runtime/codexSession.ts:home 里的符号链接指向 /tmp 时,会生成嵌套的隐藏根,导致 bwrap 起不来。现在只保留最外层的隐藏根,并补了单元测试。按需启用的 Codex 沙箱用例已经改成适配当前的健康检查输出。

删除的测试

在 14c40d0 上实跑,确认已不再覆盖当前行为:

  • scripts/test-web-background-review.ts(420 s 超时)
  • scripts/test-web-candidate-history.ts
  • scripts/test-web-budget-attempt-continuity.ts

验证

  • bun run check:格式检查和三套类型检查通过。vitest 共 7 个失败,和基线一致(formalizationReviewCli 5 个、putnamBench 1 个、codexSessionFileWatch 偶发 1 个);通过 11171 个,比基线多 1 个,就是新加的那个用例。
  • DEEPSCIENTIST_TEST_CODEX_SANDBOX=1 下 mathProofEnvironment:2 个通过,9 个跳过。

未包含

  • test-web-budget-post-continuity 保留,但目前会失败:从 polish(web): hide idle problem draft panel unless restoring via link #29(5f5bc6f1)起,英文移动端编辑源码时会多发一次自动 precheck。初步判断是测试的前提过时了,还没有修。
  • FUSE、Codex 沙箱、worker 镜像这三组按需测试的 test:* 入口和对应文档还没加。
  • 这次修复还没部署到 node01。

🤖 Generated with Claude Code

- Add .editorconfig, Prettier config/ignore and format / format:check scripts;
  reformat src, apps, tests, scripts, docs/web (frozen archives, fixtures,
  docs/assets and generated files are left untouched). CI runs format:check.
- Move browser end-to-end tests into scripts/e2e/ (scripts/web-scenario.ts and
  scripts/web-ui-controls.ts stay as forwarding entries for the frozen review
  reproduction) and dated design notes into docs/history/.
- Add test:* entries for archive-process, archive-roadmap,
  classic-global-trajectory and math-rendering.
- Remove three browser tests that no longer exercise current behaviour:
  test-web-background-review, test-web-candidate-history,
  test-web-budget-attempt-continuity.
- Add CONTRIBUTING.md (layout, commands, content that must stay byte-for-byte).
- Fix the Codex sandbox when a home symlink points into /tmp: keep only the
  outermost hidden roots so bwrap never needs a mount point inside a hidden
  parent (src/runtime/codexSession.ts, with a unit test), and update the
  opt-in Codex-sandbox proof environment tests to the current health output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LikC1606
LikC1606 merged commit e224082 into main Dec 2, 2026
4 checks passed
@LikC1606
LikC1606 deleted the chore/repo-format branch December 2, 2026 05:37
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