Skip to content

ci(vss): auto-extract Gradle version number ffg upgrade - #593

Merged
tnull merged 1 commit into
lightningdevkit:mainfrom
enigbe:2025-07-fix-vss-integration-ci
Jul 10, 2025
Merged

ci(vss): auto-extract Gradle version number ffg upgrade#593
tnull merged 1 commit into
lightningdevkit:mainfrom
enigbe:2025-07-fix-vss-integration-ci

Conversation

@enigbe

@enigbeenigbe commented Jul 7, 2025

Copy link
Copy Markdown
Contributor

What this PR does

  • Extract and use Gradle version instead of hard-coded value.

Related Issues

@ldk-reviews-bot

ldk-reviews-bot commented Jul 7, 2025

Copy link
Copy Markdown

I've assigned @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@tnulltnull left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks! Looks good generally, some questions.

# Print Info
java -version
gradle --version
GRADLE_VERSION=$(gradle --version | grep "Gradle" | awk '{print $2}')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Shouldn't we just fail here? If we can't extract the version it probably means something during the install went wrong or something unexpected happened, no? I think we should then just abort here rather than continuing with a default, which might just be confusing to debug if it ever gets hit?

echo "Failed to extract Gradle version, using default"
GRADLE_VERSION="9.0.0-rc-1"
fi
echo $GRADLE_VERSION

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe still print the entire gradle --version in addition to the extracted value?

# Print Info
java -version
GRADLE_VERSION=$(gradle --version | grep "Gradle" | awk '{print $2}')
GRADLE_VERSION=$(gradle --version | awk '/^Gradle/ {print $2}' | head -1)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems some of these changes should go in the first commit?

@enigbe
enigbeforce-pushed the 2025-07-fix-vss-integration-ci branch from 0cef221 to ef9254aCompareJuly 9, 2025 23:14

@tnulltnull left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, feel free to squash!

@enigbe
enigbeforce-pushed the 2025-07-fix-vss-integration-ci branch from ef9254a to 0392313CompareJuly 10, 2025 09:49
update to Gradle 9.0 and auto-extract version
number.
@enigbe
enigbeforce-pushed the 2025-07-fix-vss-integration-ci branch from 0392313 to 8c157c3CompareJuly 10, 2025 10:23
@enigbe

Copy link
Copy Markdown
ContributorAuthor

Squashed!

@tnull
tnull merged commit 57e1fb1 into lightningdevkit:mainJul 10, 2025
Sign up for freeto 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.

VSS CI job is failing

3 participants

@enigbe@ldk-reviews-bot@tnull