Skip to content

ci(orm): gate the model layer on all three compiler families - #99

Merged
Antruly merged 1 commit into
masterfrom
test/orm-conformance
Nov 27, 2026
Merged

Antruly merged 1 commit into
masterfrom
test/orm-conformance

Conversation

@Antruly

@Antruly Antruly commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Part of #88. Stacked on #96 (feat/orm-model); retarget to master after #96 merges. This PR covers the first phase of #93: model-layer conformance and CI; SQL/CRUD database tests arrive with #91/#92.

What changed

  • Adds orm matrix entries to Linux/Ubuntu, macOS and Windows/MSVC:
    • DB=ON, SQLite=ON, UVCPP_BUILD_ORM=ON;
    • builds and runs test_orm_model_func and test_db_sqlite_func;
    • the existing db entries now explicitly set UVCPP_BUILD_ORM=OFF and act as the negative gate.
  • Adds tests/tools/check_orm_ci.py with three modes that read the build tree, not the job colour:
    • enabled: generated macro is 1, src/orm/ is in the source list, both tests are registered;
    • disabled: macro is 0, ORM excluded, ORM test absent while the DB SQLite test remains;
    • forced-off: DB=OFF + ORM=ON produces the configure warning, macro 0, no ORM target.
  • Adds the DB=OFF + ORM=ON configuration gate on Linux.
  • Updates doc/ci-guide.md, doc/testing-guide.md, doc/db-guide.md, both READMEs and check_ci_layout.py so the feature table and hooks stay machine-checked.
  • Extends tests/functional/CMakeLists.txt with an explicit [ORM] 结果映射与 CRUD #91/[ORM] 事务与异步集成 #92 extension note; no non-existent orm_sqlite_func target is registered.

Verification (local)

check_docs.py       -> 全过(3 条判据)
check_doc_lines.py  -> 全过(5 条判据)
check_ci_layout.py  -> 全过(4 个平台文件 / 7 行表 / 四个平台的徽章都在)

check_orm_ci.py --mode enabled    (build-orm)       -> 全过
check_orm_ci.py --mode disabled   (build-db)        -> 全过
check_orm_ci.py --mode forced-off (build-orm-nodb)  -> 全过

The three checker modes were also run against the wrong tree as a reverse self-test (all returned 5 red criteria, exit 1), so they are not vacuous.

test_db_sqlite_func and test_orm_model_func both passed in the ORM-enabled tree; the ORM-disabled tree has no test_orm_model_func and still runs the DB test.

Unverified / known gaps

Add Ubuntu, macOS and MSVC matrix entries that enable DB + SQLite + ORM, run the ORM model and DB SQLite tests, and check the configured macro/source list/test registration rather than trusting a green ctest summary. Add the negative ORM=OFF and DB=OFF+ORM=ON configuration gates and document the deferred SQL/CRUD coverage.
@Antruly
Antruly changed the base branch from feat/orm-model to master November 27, 2026 06:16
@Antruly

Antruly commented Nov 27, 2026

Copy link
Copy Markdown
Owner Author

Local review before merge: check_orm_ci enabled/disabled/forced-off all pass, check_docs, check_doc_lines and check_ci_layout pass, ORM model + DB SQLite tests pass. Windows/macOS entries are configuration only and marked unverified.

@Antruly
Antruly merged commit af2de9e into master Nov 27, 2026
0 of 6 checks passed
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