Skip to content

chore(seekdb): improve diagnostics for Windows embedded test failures - #41

Open
dengfuping wants to merge 2 commits into
mainfrom
feat/support-windows
Open

chore(seekdb): improve diagnostics for Windows embedded test failures#41
dengfuping wants to merge 2 commits into
mainfrom
feat/support-windows

Conversation

@dengfuping

Copy link
Copy Markdown
Contributor

Summary

  • Diagnose 14 Windows embedded test failures (Update execution failed) by surfacing the real OB error/warning + ret code, and verifying cleanupTestDb actually removed the dir.
  • Companion to the engine-side fix in oceanbase/seekdb feat/embedded-mode-1.3.0 (commit 252658b8).

Why

Current Windows CI logs only show generic Error: Update execution failed. The real OB error code/message is dropped at the C ABI layer. Together with this PR's engine-side change (commit 252658b8 in seekdb), Windows CI will now print real OB error info, plus optional SQL+params preview when SEEKDB_DEBUG_SQL=1.

Also: cleanupTestDb on Windows used fs.rm with force:true which silently succeeds even when files are locked. Now it verifies via fs.access and warns.

Test plan

  • Wait for engine-side libseekdb rebuild from oceanbase/seekdb feat/embedded-mode-1.3.0 (commit 252658b8)
  • Update LIBSEEKDB_URL_PREFIX after libseekdb is rebuilt
  • Re-run CI and inspect Windows embedded test logs for real OB error code

🤖 Generated with Claude Code

- internal-client-embedded.ts: log SQL + first 8 params on native execute
  failure when SEEKDB_DEBUG_SQL=1 (or SEEKDB_DEBUG=1) is set, so CI logs
  reveal the failing statement instead of just "Update execution failed".
- test-utils.ts: verify cleanupTestDb actually deleted the directory via
  fs.access (fs.rm with force:true silently succeeds on Windows file-lock
  partial failures); warn instead of silently swallowing on final attempt.

These are diagnostic-only changes — no behavior change on success path.
…able SEEKDB_DEBUG_SQL

- Bump LIBSEEKDB_URL_PREFIX to 252658b8 (oceanbase/seekdb feat/embedded-mode-1.3.0)
  which surfaces real OB error code/message in execute_update/query paths.
- Set SEEKDB_DEBUG_SQL=1 in embedded test job so failing SQL + first 8 params
  are printed alongside the error, helping diagnose the 14 Windows DML failures
  on tables with sparse_embedding columns.
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