cubrid-build
CUBRID Build & Test
Build and test CUBRID using the justfile workflow.
When to Use
- User says "build", "compile", "test", "run tests", "빌드", "테스트"
- After code edits, to verify compilation or run tests
- When you need to check if changes compile or pass tests
- Any time you're working in a CUBRID source directory (contains
src/storage/,src/parser/, etc.)
Prerequisites
- Working directory must be a CUBRID source tree (or worktree)
justfilemust exist in the project root- Environment variables
$CUBRID_BUILD_DIRand$PRESET_MODEmust be set (typically via direnv)
Commands
Build
just build
Build and install. Use this to verify code edits compile. Do not use cmake --build directly — the justfile handles preset modes, env vars ($CUBRID_BUILD_DIR, $PRESET_MODE), and the full pipeline.
Test
just test
Run all tests: ctest (unit tests + sql-level integration tests) + sql regression tests.
Build + Test
just build-test
# or the alias:
just nt
Build then run all tests. This is the standard edit-compile-test cycle.
ctest Only
just ctest
Run ctest only (unit tests + sql-level integration tests). Faster than just test when you don't need sql regression tests.
Configure
just configure
Run the cmake configure step. Needed after CMakeLists.txt changes or fresh checkouts.
Full Reconfigure + Build
just configure-build-prepare-oos
Configure, build, and prepare OOS server config. Use after switching presets or major cmake changes.
Typical Workflow
- Edit code
just build— verify it compilesjust test— verify all tests pass- Or combine:
just build-test(aliasjust nt)
Important
- Always use
justcommands, never rawcmake --buildorctestdirectly. - Run build commands with
run_in_backgroundwhen they may take a while. - If build fails, read the error output carefully before attempting fixes.
More from vimkim/my-cubrid-skills
jira
Look up CUBRID JIRA issue context. Use when a CBRD-XXXXX ticket is mentioned or when the user asks about a JIRA issue.
9create-testcases
Create CUBRID test cases (unit/SQL/shell) for a given feature or bug fix. Use when the user asks to create tests, write test cases, or mentions testing a CBRD ticket.
9cubrid-manual
Search the CUBRID manual (RST docs in en/ and ko/) for SQL syntax, configuration parameters, API references, admin utilities, and any CUBRID documentation. Use when you need to look up CUBRID behavior, verify SQL semantics, or answer questions about CUBRID features.
9cubrid-pr-review
CUBRID C/C++ PR code review with LSP/clangd analysis and C++ safety checks. Use when reviewing a CUBRID pull request, when the user shares a GitHub PR URL from a CUBRID repo, asks to review or check a pull request, or requests LSP-based analysis of PR changes. Even if the user just pastes a CUBRID PR link without explicit instructions, this skill applies.
9cubrid-pr-create
Create a GitHub PR for the CUBRID project with [CBRD-XXXXX] title format and Korean body with English section headers. Use when the user wants to create a pull request for CUBRID changes.
9cubrid-oos-context
Load CUBRID OOS (Out-of-row Overflow Storage) project context from the local knowledge base. Use this skill whenever OOS is mentioned, when working on the feat/oos branch, when touching oos_file.cpp or OOS-related heap_file.c code, when CBRD-26517/26458/26516 or other OOS JIRA tickets come up, or when you need to understand the OOS architecture, record format, CRUD flows, or MVCC integration. Also trigger when you see OOS-related identifiers like OR_MVCC_FLAG_HAS_OOS, OR_VAR_BIT_OOS, FILE_OOS, oos_insert, oos_read, oos_delete, or heap_record_replace_oos_oids.
9