Skip to content

Conversation

@tmjbios
Copy link
Contributor

@tmjbios tmjbios commented Jan 17, 2024

Curl is not a default package on most Linux distributions, and is not listed as a requirement for reFrame.

When curl is missing, bootstrap.sh will blow right past the curl failure and continue to attempt to execute commands.

Add a check for curl, and print a meaningful message + exit if it is not found.

@jenkins-cscs
Copy link
Collaborator

Can I test this patch?

@tmjbios
Copy link
Contributor Author

tmjbios commented Jan 17, 2024

Yes.

To test locally, I used a default Ubuntu 22.04 server, cloned the repo and ran bootstrap, installed curl, the re-ran bootstrap.

@vkarak vkarak self-requested a review January 19, 2024 20:45
@vkarak vkarak added this to the ReFrame 4.6 milestone Jan 19, 2024
@vkarak vkarak changed the base branch from develop to master January 19, 2024 20:46
@vkarak vkarak changed the base branch from master to develop January 19, 2024 20:47
@vkarak vkarak changed the base branch from develop to master January 19, 2024 20:48
@codecov
Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (e118231) 86.63% compared to head (4cf84a6) 86.63%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3096   +/-   ##
=======================================
  Coverage   86.63%   86.63%           
=======================================
  Files          61       61           
  Lines       12041    12041           
=======================================
  Hits        10432    10432           
  Misses       1609     1609           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

When curl is missing, as is the default on Ubuntu, we blow
right past the curl failure and try to run commands.

Clean this up just a tad by detecting a missing curl command.
@vkarak
Copy link
Contributor

vkarak commented Jan 19, 2024

@tmjbios Thanks for the fix. I updated your PR to be against master as it's a bug fix and we could release it in the next patch release.

@vkarak vkarak changed the title [bugfix] Detect missing curl package in bootstrap.sh [bugfix] Detect missing curl in bootstrap.sh Jan 19, 2024
@vkarak vkarak merged commit 98a0a46 into reframe-hpc:master Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants