Repository navigation
Fix the Makefile workflow, test it in CI, and update infra - #284
Merged
steve-downey merged 7 commits intoNov 24, 2026
Merged
Conversation
The infra/ re-import in a9116bf renamed infra/cmake/bemancmakeinstrumentation.cmake to BuildTelemetry.cmake, but the Makefile still named the old file. CMake reports the missing file, abandons the top-level project() part way through enabling CXX, and the googletest project() call then fails with "Language 'CXX' is currently being enabled. Recursive call not allowed." CI configures through CMakePresets.json, which does not load the telemetry module, so only the Makefile workflow was broken.
etc/toolchain.cmake did not set GCOV_EXECUTABLE, so gcovr.cfg was generated with an empty gcov-executable and `make coverage` failed in gcovr trying to execute '--help'. The versioned gcc and clang toolchains already set it; use plain gcov for the system compiler, matching the example project.
The nodejs.org release index now lists v27.0.0-alpha builds first, and nodeenv 1.10.0 fails to parse that version when pre-commit installs a node environment for markdownlint. 1.12.0 handles it.
The Makefile is the local developer entry point but nothing in CI ran it, so a broken top-level include went unnoticed. Port the Makefile workflow test from the example project: venv, compile, test, coverage, lint, manual lint, and testinstall with the system gcc-14 toolchain.
beman-tidy reads the active branch name and errors out with "An error occurred while getting repository information" on the detached HEAD that actions/checkout produces for pull requests.
Updated with beman-submodule. Picks up the de-exemplar'd use-fetch-content.cmake (BEMAN_LOCKFILE, Beman_* names), lockfile cmake_args support, telemetry fixes, the xfail-compile helpers, and the experimental import std boilerplate.
Upstream infra's use-fetch-content.cmake no longer carries exemplar names, so drop the local cmake/use-fetch-content.cmake fork and point the Makefile, README, and the no-GTest warning at the infra copy, which CMakePresets.json already used. The local copy hard-coded INSTALL_GTEST OFF; express that through the lockfile's cmake_args instead. The lockfile override variable is now BEMAN_LOCKFILE rather than BEMAN_OPTIONAL_LOCKFILE.
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.
The Makefile workflow has been broken since the
infra/re-import in a9116bf, and nothing in CI runs it. This fixes it, adds a CI job that does, and then movesinfra/to current upstream so we can drop our local fork ofuse-fetch-content.cmake.Fixes
infra/renamedbemancmakeinstrumentation.cmaketoBuildTelemetry.cmake. The Makefile still named the old file, so configure failed with:project()partway through enabling CXX. The preset-based CI doesn't load the telemetry module, so it never saw this.make coverage.etc/toolchain.cmakedidn't setGCOV_EXECUTABLE, so the generatedgcovr.cfghad an emptygcov-executableand gcovr failed. It now defaults togcov, matching the versioned toolchains and the example project.make lint. nodejs.org's release index now listsv27.0.0-alphabuilds first. nodeenv 1.10.0 can't parse that, so pre-commit couldn't install markdownlint's node environment. Bumped to nodeenv 1.12.0.New CI
.github/workflows/test_makefile.ymlis ported from the example project's Makefile workflow test. It runsmake venv,compile,test,coverage,lint,lint-manual, andtestinstallwith the system gcc-14.The lint step first switches to a local branch. beman-tidy reads the active branch name and fails with "An error occurred while getting repository information" on the detached HEAD that
actions/checkoutproduces for PRs.infra update
infra/from 53a1500 to bemanproject/infra@a943c4a usingbeman-submodule(which now lives in bemanproject/beman-submodule and is on PyPI).use-fetch-content.cmakeno longer uses exemplar names, so the localcmake/use-fetch-content.cmakeis removed. The Makefile, README, and the no-GTest warning now useinfra/cmake/use-fetch-content.cmake, whichCMakePresets.jsonalready used.INSTALL_GTEST OFF. That now goes through the lockfile'scmake_args.To check
BEMAN_LOCKFILEinstead ofBEMAN_OPTIONAL_LOCKFILE.cmake --workflow --preset gcc-debug..install/, somake lintfails aftermake install. The workflow runs lint beforetestinstall, so CI is not affected.