Repository navigation
ci(orm): gate the model layer on all three compiler families - #99
Merged
Merged
Conversation
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.
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. |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #88. Stacked on #96 (
feat/orm-model); retarget tomasterafter #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
ormmatrix entries to Linux/Ubuntu, macOS and Windows/MSVC:DB=ON,SQLite=ON,UVCPP_BUILD_ORM=ON;test_orm_model_funcandtest_db_sqlite_func;dbentries now explicitly setUVCPP_BUILD_ORM=OFFand act as the negative gate.tests/tools/check_orm_ci.pywith 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.doc/ci-guide.md,doc/testing-guide.md,doc/db-guide.md, both READMEs andcheck_ci_layout.pyso the feature table and hooks stay machine-checked.tests/functional/CMakeLists.txtwith an explicit [ORM] 结果映射与 CRUD #91/[ORM] 事务与异步集成 #92 extension note; no non-existentorm_sqlite_functarget is registered.Verification (local)
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_funcandtest_orm_model_funcboth passed in the ORM-enabled tree; the ORM-disabled tree has notest_orm_model_funcand still runs the DB test.Unverified / known gaps
src/orm/currently stops at model metadata; SQL/CRUD tests are [ORM] 结果映射与 CRUD #91/[ORM] 事务与异步集成 #92 and will use theorm_naming hook.check_doc_lines.pywas red on the base branch because [ORM] 模型契约与元数据 #89 inserted CMake lines; this PR is stacked after the [ORM] 模型契约与元数据 #89 line-reference refresh, so it is green here.