Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] fix some shellcheck warnings in package-building scripts #6641

Open
wants to merge 33 commits into
base: master
Choose a base branch
from

Conversation

vnherdeiro
Copy link
Contributor

@vnherdeiro vnherdeiro commented Sep 4, 2024

Contributes to #6498 continues from #6621

Now I am tackling ./build-python.sh and ./build-cran-package.sh

All feedback is welcome!

Please forgive the polluted commit history.

Copy link
Collaborator

@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.

Thanks for working on this!

Left a first round of comments for your consideration.

build-cran-package.sh Outdated Show resolved Hide resolved
build-cran-package.sh Outdated Show resolved Hide resolved
build-cran-package.sh Outdated Show resolved Hide resolved
build-cran-package.sh Outdated Show resolved Hide resolved
build-python.sh Outdated Show resolved Hide resolved
@jameslamb
Copy link
Collaborator

Please forgive the polluted commit history.

No worries! We'll squash all of the history when this is merged anyway.

@vnherdeiro
Copy link
Contributor Author

That is a prompt review @jameslamb Thanks, will amend soonish!

Copy link
Collaborator

@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.

Thanks, I've left another round of questions and suggestions. I'm really confused by some of these changes... I left comments asking for clarification on a few.

build-python.sh Outdated Show resolved Hide resolved
build-python.sh Outdated
@@ -342,7 +346,7 @@ if test "${BUILD_SDIST}" = true; then
python -m build \
--sdist \
--outdir ../dist \
${BUILD_ARGS} \
${BUILD_ARGS:+ -o "$BUILD_ARGS"} \
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't understand this change, can you please explain it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@vnherdeiro are you still interested in this work and available to help? If not, could you please let us know so we can continue it in other PRs?

build-python.sh Outdated Show resolved Hide resolved
build-python.sh Outdated Show resolved Hide resolved
build-python.sh Outdated Show resolved Hide resolved
build-python.sh Outdated Show resolved Hide resolved
build-python.sh Outdated Show resolved Hide resolved
@vnherdeiro
Copy link
Contributor Author

vnherdeiro commented Sep 7, 2024

@jameslamb thanks for the review and code suggestions about the more extent quotemarks! Do you mind if I start a new PR soon with changes for the files you had asked my to postpone from #6621 :

  • .ci/test.sh
  • .ci/test-r-package.sh
  • .ci/setup.sh
    ?

@jameslamb jameslamb self-requested a review September 15, 2024 03:23
Copy link
Collaborator

@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.

Thanks for working on this.

I'm confused by several of these changes. As I've asked in previous reviews... please explain the reasoning for your proposes changes here. Several of these are not obvious at all, and it's difficult to review without knowing the underlying shellcheck warnings you're trying to address.

build-python.sh Outdated Show resolved Hide resolved
build-python.sh Show resolved Hide resolved
build-python.sh Show resolved Hide resolved
build-python.sh Show resolved Hide resolved
@jameslamb
Copy link
Collaborator

Do you mind if I start a new PR soon with changes for the files you had asked my to postpone from #6621

Looks like you decided to do that in #6646. That's fine, will review there.

@jameslamb jameslamb changed the title fixes for some shellcheck warnings [ci] fix some shellcheck warnings in package-building scripts Sep 15, 2024
@jameslamb
Copy link
Collaborator

@vnherdeiro will you have time in the next week to come back and work with us on this? If not, I'll close this and fix the remaining shellcheck issues myself.

@vnherdeiro
Copy link
Contributor Author

@jameslamb I am back and willing to continue working on this.

@jameslamb
Copy link
Collaborator

Alright thanks. You can start here: #6641 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants