Repository navigation
Fix Python packaging dependency detection - #132
Conversation
ip332
left a comment
There was a problem hiding this comment.
Independent technical review: GO / approved for squash merge at exact head 945730e89a290994438d91d381c9d8d87d604d38.
Reviewed the full four-file patch. The CMake probe now checks build.__main__ with the configured interpreter from a fixed binary directory instead of treating an empty local build/ namespace as the installed packaging frontend. The Python packaging runner builds from temporary working directories; the existing public-example runner already does so. The new regression exercises the actual CMake/CTest registration for missing and installed dependencies, with shadow build/ directories in both caller and probe locations; Linux CI explicitly guards that packaging, dependency regression and public examples remain registered.
Verified exact-head workflow 45036263480 completed successfully: Linux Build and test 74/74, coverage baseline 69/69, clang-tidy and Cortex-M passed; benchmarks skipped by normal PR policy. Reported Python 3.9.6, 3.12.3 and 3.14.7 coverage, Clang 18 Debug/sanitizer conformance and five-language interop are consistent with the submitted evidence. No merge-blocking finding. This change is limited to test infrastructure, with no production wire/API/identity behavior changes.
Recommend squash merge at the reviewed SHA, then verify #88 closes and post-merge CI is green before release-gate #105. Follow-ups #129/#130 still need explicit release dispositions; do not infer a public release authorization from this review. Recorded as a positive technical-review COMMENT because the connected account is the PR author. No merge performed.
Closes #88
CMake's
import build, setuptoolsaccepted the repository's emptybuild/namespace directory as the Python build frontend. Both optional integration tests were consequently registered even thoughpython -m buildcould not execute.The probe now imports
build.__main__and setuptools using the selectedQUARRY_PYTHON3_EXECUTABLE, from the tests' fixed binary directory. This checks the entry point the tests actually need and rejects an empty namespace regardless of configure invocation directory. Isolated mode was evaluated and intentionally avoided: on the native host it hides genuine installed user-site dependencies. A directory change alone is insufficient, so the regression also places an empty build namespace in the fixed probe directory.The Python packaging test's two build invocations now run from its clean temporary root. The public-example build invocation already uses a clean temporary root and needs no change. Existing interpreter selection, presets and optional-dependency skip diagnostics remain intact. Linux CI explicitly checks that the dependency regression, packaging test and public-example test are registered before running CTest, so its installed release-validation dependencies cannot silently lose coverage.
Regression and validation
33b033e14c1396b2e528f766773ee1ab1929cc76, generic_runtime_conformance_test ValidFixture fails with Clang 18 on Linux #85 closed, and all five jobs in post-merge CI passed before implementation.build/, the old probe exits 0 whilepython -m build --versionexits 1.Exact committed head:
945730e89a290994438d91d381c9d8d87d604d38.scripts/quarry-validate validate HEADpassed 74/74 native CTests on this exact head (CTest 746.42 s; total validation 773.7 s, two build/test slots). The dependency regression passed in 15.28 s in that run, with no packaging or public-example skip. The receipt matches HEAD, result pass, fingerprintb7f585657bf5daa66bdab10be82e525d12d64a6102147de836fa5292a6dbbd39. Configured pre-commit YAML/whitespace hooks andgit diff --checkpassed. Delivery usesscripts/quarry-validate pushwith hooks enabled. Exact-head Linux CI passed all applicable jobs: Linux GCC Build and test, clang-tidy, Coverage baseline, and Cortex-M Cross Build. Benchmarks retained its existing PR-policy skip.The exact-head receipt remains valid after the hooked push. PR is ready for independent review; auto-merge remains disabled.
Existing optional extended G4 cases are skipped because no second/older generator build is supplied; two Python/Go include-path cases are inapplicable to those languages. Their regular import and five-language interoperability tests execute. No packaging coverage is skipped in the installed-dependency environments.
Only test registration, test invocation isolation, regression coverage and CI coverage checks change. No compiler/runtime serialization, BRF/QBS/IR, record allocation, schema_id, generated-code identity/naming, APIs or epochs change. #90, #119, #129, #130 and Stage B remain untouched; unrelated artifacts and the experimental branch are preserved. No release publication/tag or #105 work. Auto-merge stays disabled; do not merge automatically.