Skip to content

Conversation

@moisesPompilio
Copy link
Contributor

@moisesPompilio moisesPompilio commented Apr 2, 2025

Ensures CMake is between 3.5 and 4.0 in the CI workflow to prevent LND integration test failures caused by prost-build v0.10.4. Since ubuntu-latest is not a fixed version, this safeguards against future runner updates that might introduce an incompatible CMake version.

Closes #515.

@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Apr 2, 2025

👋 I see @valentinewallace was un-assigned.
If you'd like another reviewer assignemnt, please click here.

@moisesPompilio moisesPompilio changed the title fix(ci): ensure CMake >= 3.5 is installed for lnd_grpc_rust tests fix(ci): enforce compatible CMake version for LND tests Apr 3, 2025
@tnull tnull requested review from tnull and removed request for valentinewallace April 3, 2025 07:35
Copy link
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this! Two comments.


- name: Check and install CMake if needed
# lnd_grpc_rust (via prost-build v0.10.4) requires CMake >= 3.5 but is incompatible with CMake >= 4.0.
# This step checks if CMake is missing, below 3.5, or 4.0 or higher, and installs CMake 3.31.5 if needed,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC, 3.31.6 is the latest 3.x version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's the last version before 4.x. You can check all releases here.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but you're downloading 3.31.5, not 3.31.6. Wondered if we wanted to use the latest version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I mistakenly added the wrong version, but I’ll update it to the latest one now.

[ "$(cmake --version | head -n1 | cut -d' ' -f3)" \> "4.0" ]; then
sudo apt-get update
sudo apt-get remove -y cmake
wget https://github.com/Kitware/CMake/releases/download/v3.31.5/cmake-3.31.5-Linux-x86_64.sh
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we verify the checksum to check we're downloading what we're expecting (similar to what we do in ./scripts/download_bitcoind_electrs.sh)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I’ve added checksum verification.

Ensure CMake is between 3.5 and 4.0 to prevent failures in LND integration tests
caused by prost-build v0.10.4. This safeguards against version changes in ubuntu-latest.

Closes lightningdevkit#515
Copy link
Collaborator

@tnull tnull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

CI failures are unrelated.

@tnull tnull merged commit 5abb42f into lightningdevkit:main Apr 3, 2025
6 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix broken LND integration test

3 participants