Skip to content

Simplify compaction test helpers#26742

Merged
kitlangton merged 1 commit into
devfrom
cleanup/compaction-test-helper-simplify
May 11, 2026
Merged

Simplify compaction test helpers#26742
kitlangton merged 1 commit into
devfrom
cleanup/compaction-test-helper-simplify

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

@kitlangton kitlangton commented May 10, 2026

Summary

  • Collapse duplicate compaction-part helpers introduced during test migration.
  • Use the summary compaction helper consistently in migrated tests.

Testing

  • bun test --timeout 5000 test/session/compaction.test.ts test/session/schema-decoding.test.ts -t "summarizes only the head|anchors repeated compactions|keeps recent pre-compaction|ignores previous summaries|accepts minimal session"
  • bun typecheck from packages/opencode
  • bunx prettier --check packages/opencode/test/session/compaction.test.ts
  • bunx oxlint packages/opencode/test/session/compaction.test.ts (existing warnings only, no errors)

Stack

  1. Migrate configurable compaction tests #26732
  2. Migrate compaction LLM test #26733
  3. Migrate LLM compaction tail tests #26734
  4. Migrate compaction plugin test #26736
  5. Migrate compaction tool-call test #26737
  6. Replace compaction create test fixtures #26738
  7. Drop compaction create facade #26739
  8. Drop unused ID Zod statics #26740
  9. Simplify compaction test helpers #26742 👈 current

@kitlangton kitlangton force-pushed the cleanup/drop-unused-id-zod-statics branch from 38631fd to 6056522 Compare May 10, 2026 23:08
@kitlangton kitlangton force-pushed the cleanup/compaction-test-helper-simplify branch from ff0a4ec to e22331a Compare May 10, 2026 23:08
@kitlangton kitlangton force-pushed the cleanup/drop-unused-id-zod-statics branch from 6056522 to bfce366 Compare May 10, 2026 23:13
@kitlangton kitlangton force-pushed the cleanup/compaction-test-helper-simplify branch from e22331a to 3c09600 Compare May 10, 2026 23:13
@kitlangton kitlangton force-pushed the cleanup/drop-unused-id-zod-statics branch from bfce366 to 6ba5c90 Compare May 10, 2026 23:18
@kitlangton kitlangton force-pushed the cleanup/compaction-test-helper-simplify branch from 3c09600 to a63b623 Compare May 10, 2026 23:18
@kitlangton kitlangton force-pushed the cleanup/drop-unused-id-zod-statics branch from 6ba5c90 to 5e9f49f Compare May 10, 2026 23:21
@kitlangton kitlangton force-pushed the cleanup/compaction-test-helper-simplify branch from a63b623 to 3120af8 Compare May 10, 2026 23:21
@kitlangton kitlangton force-pushed the cleanup/drop-unused-id-zod-statics branch from 5e9f49f to d762c80 Compare May 10, 2026 23:41
@kitlangton kitlangton force-pushed the cleanup/compaction-test-helper-simplify branch from 3120af8 to 6307da0 Compare May 10, 2026 23:41
@kitlangton kitlangton force-pushed the cleanup/drop-unused-id-zod-statics branch from d762c80 to 609d313 Compare May 10, 2026 23:42
@kitlangton kitlangton force-pushed the cleanup/compaction-test-helper-simplify branch from 6307da0 to d230b93 Compare May 10, 2026 23:43
@kitlangton kitlangton force-pushed the cleanup/drop-unused-id-zod-statics branch from 609d313 to a973fd4 Compare May 10, 2026 23:44
@kitlangton kitlangton force-pushed the cleanup/compaction-test-helper-simplify branch from d230b93 to 6ea7163 Compare May 10, 2026 23:44
@kitlangton kitlangton force-pushed the cleanup/drop-unused-id-zod-statics branch from a973fd4 to 920b7a9 Compare May 10, 2026 23:53
@kitlangton kitlangton force-pushed the cleanup/compaction-test-helper-simplify branch from 6ea7163 to c000aa3 Compare May 10, 2026 23:53
@kitlangton kitlangton force-pushed the cleanup/drop-unused-id-zod-statics branch from 920b7a9 to 656ba20 Compare May 10, 2026 23:54
@kitlangton kitlangton force-pushed the cleanup/compaction-test-helper-simplify branch from c000aa3 to fcc5e81 Compare May 10, 2026 23:54
@kitlangton kitlangton changed the base branch from cleanup/drop-unused-id-zod-statics to dev May 10, 2026 23:58
@kitlangton kitlangton force-pushed the cleanup/compaction-test-helper-simplify branch from fcc5e81 to d4e0161 Compare May 10, 2026 23:58
@kitlangton kitlangton merged commit 128d10d into dev May 11, 2026
8 of 9 checks passed
@kitlangton kitlangton deleted the cleanup/compaction-test-helper-simplify branch May 11, 2026 00:03
joshue031 pushed a commit to joshue031/opencode that referenced this pull request May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant