Skip to content

Conversation

@gforsyth
Copy link
Contributor

Finishes up the shellcheck work tracked in rapidsai/build-planning#135

@gforsyth gforsyth requested a review from a team as a code owner June 12, 2025 18:05
@gforsyth gforsyth added improvement Improves an existing functionality non-breaking Introduces a non-breaking change labels Jun 12, 2025
@gforsyth gforsyth requested review from a team as code owners June 12, 2025 18:05
@gforsyth gforsyth added the improvement Improves an existing functionality label Jun 12, 2025
@gforsyth gforsyth requested a review from bdice June 12, 2025 18:05
@gforsyth gforsyth added the non-breaking Introduces a non-breaking change label Jun 12, 2025
@gforsyth gforsyth requested review from jameslamb and removed request for bdice June 13, 2025 19:03
@gforsyth
Copy link
Contributor Author

@jameslamb one more for you here

Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

I left a couple suggestions... leaving a blocking review because I think one is a correctness problem. The others are just small suggestions for improvement.

@ me whenever you want another review.

build.sh Outdated
if [[ ${CMAKE_TARGET} != "" ]]; then
echo "-- Compiling targets: ${CMAKE_TARGET}, verbose=${VERBOSE_FLAG}"
if [[ ${CMAKE_TARGET[*]} != "" ]]; then
echo "-- Compiling targets: ${CMAKE_TARGET[*]}, verbose=${VERBOSE_FLAG}"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
echo "-- Compiling targets: ${CMAKE_TARGET[*]}, verbose=${VERBOSE_FLAG}"
echo "-- Compiling targets: ${CMAKE_TARGET[@]}, verbose=${VERBOSE_FLAG}"

Similar to my comment above... I think here you want the values, not the keys (because there are no keys).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I think this is another weird implicit vs. explicit array concatenation thing -- shellcheck doesn't like it when strings and arrays are mixed: https://github.com/koalaman/shellcheck/wiki/SC2145

Copy link
Contributor Author

Choose a reason for hiding this comment

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

huh, well, I'm definitely wrong here because that didn't output any values

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, or maybe CMAKE_TARGET was just empty? I've pushed up a different way of spelling this, in any case, but I think this should work.

 > CMAKE_TARGET=('one' 'two')
 > echo "-- Compiling targets: ${CMAKE_TARGET[*]}"
-- Compiling targets: one two

Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense (if it's possible) to exclude this file from cpp-ownership?

Copy link
Member

Choose a reason for hiding this comment

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

I'd support that change.

Copy link
Member

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

Approving, I think all of my comments have been addressed.

Thanks for finishing this one up! This project has a bit more shell code than RAPIDS repos, because it has bindings for so many languages and scripts to build those bindings. I think we'll be really glad to have shellcheck helping us with development here 😁

@gforsyth
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit c4c03e4 into rapidsai:branch-25.08 Jun 25, 2025
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci cpp improvement Improves an existing functionality non-breaking Introduces a non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants