Skip to content

Add Linux asset suffix handling and tests#525

Merged
anirudhwarrier merged 2 commits into
mainfrom
DEVSVCS-5549/ldd-fix
Jul 10, 2026
Merged

Add Linux asset suffix handling and tests#525
anirudhwarrier merged 2 commits into
mainfrom
DEVSVCS-5549/ldd-fix

Conversation

@anirudhwarrier

@anirudhwarrier anirudhwarrier commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

DEVSVCS-5549

Summary

  • Select the correct Linux release build on glibc < 2.36 by probing ldd --version and using the _ldd2-35 asset suffix (e.g. Ubuntu 22.04).
  • cre update: downloads cre_linux_{arch}_ldd2-35.tar.gz and matching .sig on older glibc; default asset unchanged on 2.36+.
  • install/install.sh: same detection for one-line installs; prints a message when the legacy build is selected.
  • Fail-open if glibc detection fails (falls back to default asset).

Test plan

  • Go unit tests for glibc parsing and suffix selection
  • install/linux_asset_suffix_test.sh in CI
  • Docker smoke: Ubuntu 22.04 → _ldd2-35, Ubuntu 24.04 → default
  • Manual: cre update / bash install/install.sh on Ubuntu 22.04 amd64 link

- Introduced functions to determine the appropriate asset suffix based on glibc version for Linux.
- Added tests for parsing glibc versions and verifying the correct asset suffix.
- Updated installation script to utilize the new suffix logic.
- Enhanced the getAssetName function to include the Linux suffix in asset naming.

This change improves compatibility for older Linux distributions.
@github-actions

Copy link
Copy Markdown

🚀 Preview Build Artifacts

You can download the preview builds for this PR from the following URL:

https://github.com/smartcontractkit/cre-cli/actions/runs/29078785445

Note: These are preview builds and are not signed.

@github-actions

Copy link
Copy Markdown

🚀 Preview Build Artifacts

You can download the preview builds for this PR from the following URL:

https://github.com/smartcontractkit/cre-cli/actions/runs/29079756583

Note: These are preview builds and are not signed.

@anirudhwarrier
anirudhwarrier marked this pull request as ready for review July 10, 2026 12:23
@anirudhwarrier
anirudhwarrier requested a review from a team as a code owner July 10, 2026 12:23
@github-actions

Copy link
Copy Markdown

🚀 Preview Build Artifacts

You can download the preview builds for this PR from the following URL:

https://github.com/smartcontractkit/cre-cli/actions/runs/29092431799

Note: These are preview builds and are not signed.

@anirudhwarrier
anirudhwarrier added this pull request to the merge queue Jul 10, 2026
Merged via the queue into main with commit 6be2764 Jul 10, 2026
30 checks passed
@anirudhwarrier
anirudhwarrier deleted the DEVSVCS-5549/ldd-fix branch July 10, 2026 16:05
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.

2 participants