Modernize build, dependencies, and core safety - #8
Merged
Merged
Conversation
Replace the pinned compiler-specific build with a portable GNU Make setup that supports BSD via gmake and adds dependency tracking. Fix PDB coordinate cache updates and Python parser edge cases, with regression tests and updated build documentation.
Add a GitHub Actions matrix for Linux and macOS compilers using the GNU Make workflow, and run the native C++ and Python test suites. Remove the obsolete Travis configuration and document the macOS gmake requirement.
Include the standard integer header where Split declares uint64_t so GCC and Clang on Ubuntu compile the complete command-line tool set consistently.
Replace the seven unbounded system sprintf calls with bounded snprintf calls while preserving the custom PDB formatter and legacy field ordering. Add coverage for all affected PDBRUN v5 user record types and include the new test in the GNU Make build.
Clear PDB object storage through a byte pointer instead of passing the non-trivial class directly to memset, preserving legacy initialization while allowing GCC warning-clean builds. Use the standard cstring declarations for the related memory comparison and clearing operations.
Document the deliberate fallback from specialized USER record parsing to the generic USER parser so GCC and Clang no longer report an implicit fallthrough warning under the C++14 build.
Pin the Catch2 submodule to v3.9.1 and compile its amalgamated test runner through GNU Make instead of relying on the removed v2 header-only main. Update test includes and assertions, validate the Catch2 dependency, and cover the zero-prediction parser limit.
Pin Eigen to the 3.4.1 release and add focused tests for constraints, multimer transforms, PDB behavior, and invalid ZDOCK input. Document each test invariant and add compact fixtures that exercise model handling and parser error paths.
Preserve final split chunks, enforce multimer and matrix bounds, and make PDB copies own independent records. Reject malformed parser input, incompatible transformations, unsafe paths, and invalid CLI numbers with tested exceptions.
Copy PDB record graphs directly so stateful filters are not re-evaluated and model records retain their shared identity. Exercise formatter boundaries, centroid values, and M-ZDOCK poses with independent or adversarial expectations. Trigger CI for the repository's master branch.
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
and a Linux/macOS GitHub Actions compiler matrix
warnings and unsafe PDBRUN v5 formatting
invariant-focused regression coverage with independent numeric oracles
Testing
make clean && make -j4 allmake cpp-test— 417 assertions in 31 test casesmake python-test— 8 tests