Skip to content

fix: CLI type check in CI and compile the DuckLake attach test (#213, #214) - #226

Closed
jrosskopf wants to merge 3 commits into
mainfrom
fix/gh-213-214-tooling
Closed

jrosskopf wants to merge 3 commits into
mainfrom
fix/gh-213-214-tooling

Conversation

@jrosskopf

@jrosskopf jrosskopf commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • CLI type-check errors (npx tsc --noEmit in cli/) #214: flapii failed tsc --noEmit with 37 errors (spinner typing, Console.* arity, missing @types/lodash.kebabcase, Gemini/enquirer typings, a few casts). All fixed; added a typecheck script and a cli-typecheck CI job that runs on every PR (no C++ build needed).
  • Test hygiene: dead and order-dependent C++ tests #213 (test hygiene half): database_manager_ducklake_test.cpp was never in test/cpp/CMakeLists.txt. Registered it, deleted the duplicate data_manager_ducklake_test.cpp, fixed the config keys (metadata-path/data-path), replaced the information_schema query (does not exist on a DuckLake catalog) with duckdb_databases()/duckdb_schemas() counts, and added RAII teardown.

Test plan

  • npx tsc --noEmit in cli/: 37 errors before, 0 after (first commit adds the CI step and is red by design)
  • npm test in cli/ (75 passed)
  • flapi_tests --list-tests lists the DuckLake attach case (absent before); it passes
  • make test: 980/980 passed

Closes #214
Refs #213 (the VFS segfault half stays open)


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

- Add a typecheck script (tsc --noEmit) and a cli-typecheck job
- Currently red: 37 pre-existing type errors, fixed in the next commit
- Type the cache/templates spinners as optional
- Console.error takes one string; interpolate the details
- Add @types/lodash.kebabcase, the yaml base-url key, role on Gemini contents
- Build GeminiAuthConfig whole instead of from {}, drop unused google import
- Fix enquirer prompt option types and a few unknown/Buffer casts
- Delete data_manager_ducklake_test.cpp (near-duplicate, never compiled)
- Register database_manager_ducklake_test.cpp in test/cpp/CMakeLists.txt
- Use hyphenated metadata-path/data-path keys, drop the unread server-name key
- information_schema does not exist on a DuckLake catalog; assert via duckdb_databases()/duckdb_schemas() counts
- RAII teardown (shutdown + reset + remove temp dir) that runs on failed REQUIRE
@jrosskopf

Copy link
Copy Markdown
Contributor Author

Superseded by #230 (combined and merged).

@jrosskopf jrosskopf closed this Nov 21, 2026
@jrosskopf
jrosskopf deleted the fix/gh-213-214-tooling branch November 21, 2026 03:27
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.

CLI type-check errors (npx tsc --noEmit in cli/)

1 participant