Skip to content

hotfix(tests/quality/knowledge): restore missing go.mod / doc.go [skip-tag:sdk]#57

Merged
lIang70 merged 1 commit into
mainfrom
hotfix/tests-quality-knowledge-gomod
May 6, 2026
Merged

hotfix(tests/quality/knowledge): restore missing go.mod / doc.go [skip-tag:sdk]#57
lIang70 merged 1 commit into
mainfrom
hotfix/tests-quality-knowledge-gomod

Conversation

@lIang70

@lIang70 lIang70 commented May 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

PR #56 (consolidate test suites under tests/) silently elided three new files in tests/quality/knowledge/go.mod, go.sum, doc.go — because .gitignore did not yet have tests/ on its allowlist when the commit was authored.

git mv-tracked test sources made it through unaffected (already-tracked files bypass .gitignore), which masked the gap until I tried to run the suite end-to-end on the next branch and noticed the module was missing its descriptor entirely.

make test on main HEAD is currently broken at tests/quality/knowledge because there is no go.mod for the directory.

Changes

  • .gitignore: extend the whitelist with !tests/ / !tests/** so tests/ is on the same footing as bench/ / examples/ / sdk/ / sdkx/ / voice/ / tools/.
  • tests/quality/knowledge/go.mod: independent module pinning sdk v0.2.7 + sdkx v0.2.5 (the versions PR refactor: consolidate test suites under tests/ [skip-tag:sdk] #56's commit message claimed were used).
  • tests/quality/knowledge/go.sum: generated by GOWORK=off go mod tidy against the pinned tags.
  • tests/quality/knowledge/doc.go: package-level doc explaining why the suite lives outside sdk (independent release cadence, decoupled bumps).

[skip-tag:sdk] rationale

Nothing under sdk/ changes — this is purely under tests/quality/knowledge/ plus a top-level .gitignore allowlist tweak. No need for the auto-tag workflow to bump sdk.

Test plan

  • cd tests/quality/knowledge && GOWORK=off go mod tidy — clean
  • cd tests/quality/knowledge && GOWORK=off go vet ./... — clean
  • cd tests/quality/knowledge && GOWORK=off go test ./... — passes (BM25 lane, no creds)
  • make test from repo root — green across all modules including the previously-broken tests/quality/knowledge

Made with Cursor

…p-tag:sdk]

PR #56 (consolidate test suites under tests/) was committed before
the .gitignore whitelist was extended to cover tests/, so the three
new (untracked) files in tests/quality/knowledge — go.mod, go.sum,
doc.go — were silently elided by `git add -A`. The 'git mv'-tracked
test sources made it through because already-tracked files bypass
.gitignore, which masked the gap until this branch tried to run the
suite end-to-end.

This hotfix:
- Adds `!tests/` / `!tests/**` to .gitignore so tests/ is on the
  same allowlist as bench/, examples/, sdk/, sdkx/, voice/, tools/.
- Restores tests/quality/knowledge/go.mod (independent module
  pinning sdk v0.2.7 + sdkx v0.2.5, matching what PR #56's commit
  message described).
- Restores tests/quality/knowledge/doc.go (package doc explaining
  why the suite lives outside sdk).
- Restores tests/quality/knowledge/go.sum (generated by `go mod
  tidy` against the pinned versions; identical content guaranteed
  by `GOPROXY` for those tags).

Verification: `make test` is green again across all modules,
including tests/quality/knowledge in the GOWORK=off lane.

[skip-tag:sdk] because nothing under sdk/ changes here.

Co-authored-by: Cursor <cursoragent@cursor.com>
@lIang70
lIang70 merged commit 18327f8 into main May 6, 2026
6 checks passed
@lIang70
lIang70 deleted the hotfix/tests-quality-knowledge-gomod branch May 6, 2026 03:02
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