Test-build pipeline: fix lock scope, remove dead code, close coverage gaps - #1217
Merged
Conversation
…rage gaps Audits the test-build pipeline (lib/ceedling/test_invoker/) against its own README and comments: moves a plugin hook call outside the shared-state lock in stage_determine_files, removes five confirmed-dead struct fields/methods (Stage#run?, Testable#results_fail/#no_link_objects, fetch_include_search_paths_for_test_file, form_partials_filenames), fixes a duplicate stage heading and a couple of typos/misspellings, renames generate_executable_now to generate_executable, and documents why a Partial-replaced module's source is always compiled and only excluded from linking. Adds unit coverage for previously-untested branches: the generate_executable ShellException rescue path, :mocking with mocks disabled, stage_prepare_build_paths, the mock/Partials-in-use validators, tailor_search_paths's special-case branches, and TEST_SOURCE_FILE() validation under assembly support. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This was referenced Aug 20, 2026
Merged
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.
Summary
Audit of the test-build pipeline (
lib/ceedling/test_invoker/) against its own README, comments, and test coverage, following the two major refactorings that produced its current stage-sequenced architecture.stage_determine_filesheld the shared-state lock across a call to@plugin_manager.pre_test, an arbitrary plugin hook — not just the struct-field writes the README says the lock is for. UnderBatchinatorparallelism this serialized every test's plugin-hook invocation behind one global mutex. Moved the call outside the lock.Stage#run?,Testable#results_fail,Testable#no_link_objects,TestBuildPlanner#fetch_include_search_paths_for_test_file,TestBuildPlanner#form_partials_filenames.objects_list), a duplicate stage heading ("Collecting More Test Context" used for two different stages), a couple of typos, a misspelled method name, andgenerate_executable_nowrenamed togenerate_executable(the_nowsuffix was a disambiguation artifact from the original Rake-extraction refactor).delta_builds_spec.rb,wondrous_forestproject) showed a plain, non-coverage build still needs that compile for its own dependency tracking to keep working.generate_executable'sShellExceptionrescue path,:mockingcombined with mocks disabled,stage_prepare_build_paths, the mock/Partials-in-use validators,tailor_search_paths's special-case branches, andTEST_SOURCE_FILE()validation under assembly support.Test plan
bundle exec rspec spec/units— 2587 examples, 0 failuresthrowtheswitch/madsciencelab-plugins:v1.1.4)spec/system/delta_builds_spec.rb— 16 examples, 0 failuresspec/system/gcov_deployment_spec.rb's Partials/coverage cases — 16 examples, 0 failures🤖 Generated with Claude Code