Update to PSLP version with bug fixes#920
Conversation
📝 WalkthroughWalkthroughUpdated the PSLP dependency version from v0.0.4 to v0.0.8 in a FetchContent_Declare block. No control flow changes, error handling modifications, or other components affected. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
cpp/CMakeLists.txt (1)
238-238: Pin PSLP to an immutable commit instead of a mutable tag.At line 238, using
GIT_TAG "v0.0.8"creates a reproducibility risk: Git allows tags to be force-moved or recreated upstream, making builds non-deterministic. CMake recommends pinning to the resolved commit SHA for deterministic and supply-chain-safe builds.Proposed CMake change
FetchContent_Declare( pslp GIT_REPOSITORY "https://github.com/dance858/PSLP.git" - GIT_TAG "v0.0.8" + # v0.0.8 resolves to commit 91404985d5fcf560637ec522e1356c3ed1c43357 + GIT_TAG "91404985d5fcf560637ec522e1356c3ed1c43357" GIT_PROGRESS TRUE EXCLUDE_FROM_ALL SYSTEM )🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@cpp/CMakeLists.txt` at line 238, The CMake fetch currently pins PSLP with a mutable tag via GIT_TAG "v0.0.8"; replace that mutable tag with the repository's immutable commit SHA (the resolved commit for v0.0.8) so builds are deterministic. Locate the FetchContent_Declare (or add_subdirectory/ExternalProject) stanza that uses GIT_TAG "v0.0.8" and change the GIT_TAG value to the exact commit SHA (the full 40-char hash) for that release; ensure any reviewers/CI are updated to use the same SHA rather than the tag.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@cpp/CMakeLists.txt`:
- Line 238: The CMake fetch currently pins PSLP with a mutable tag via GIT_TAG
"v0.0.8"; replace that mutable tag with the repository's immutable commit SHA
(the resolved commit for v0.0.8) so builds are deterministic. Locate the
FetchContent_Declare (or add_subdirectory/ExternalProject) stanza that uses
GIT_TAG "v0.0.8" and change the GIT_TAG value to the exact commit SHA (the full
40-char hash) for that release; ensure any reviewers/CI are updated to use the
same SHA rather than the tag.
|
/ok to test b066ab2 |
|
/merge |
Description
Updating to latest version of PSLP. This fixes a bug where PSLP is making feasible LP problems to infeasible ones and has performance improvements as well.
Issue
Checklist