add shellcheck, update pre-commit hooks#738
add shellcheck, update pre-commit hooks#738rapids-bot[bot] merged 9 commits intorapidsai:branch-25.04from jameslamb:more-repo-checks
Conversation
|
The That'll be fixed (and CI unblocked here) once rapidsai/cuvs#750 is merged |
| } | ||
|
|
||
| for FILE in $(find . -name Dockerfile); do | ||
| find . -name Dockerfile | while IFS= read -r -d '' FILE; do |
There was a problem hiding this comment.
Fixes this from shellcheck:
SC2044 (warning): For loops over find output are fragile. Use find -exec or a while read loop.
| for notebook in nb_errors.keys(): | ||
| if nb_errors[notebook]: | ||
| print(f'Errors during {notebook}') | ||
| for notebook_id, errors in nb_errors.items(): |
There was a problem hiding this comment.
fixes this from ruff:
context/test_notebooks.py:200:9: PLC0206 Extracting value from dictionary without calling `.items()
| # context on this being skipped: https://github.com/rapidsai/docker/issues/726 | ||
| 'cuspatial/trajectory_clustering.ipynb', | ||
| # context on this being skipped: https://github.com/rapidsai/docker/issues/740 | ||
| 'cuspatial/Taxi_Dropoff_Reverse_Geocoding.ipynb', |
|
Seeing the one arm test job here fail with this error from
I think that's related to other ongoing jitify issues |
|
|
||
| cuvs_bench_source_tags=() | ||
| cuvs_bench_datasets_source_tags=() | ||
| # cuvs_bench_datasets_source_tags=() |
There was a problem hiding this comment.
This and other things I'm commenting out in this file are unused as long as this other code is commented out:
docker/ci/create-cuvs-multiarch-manifest.sh
Lines 27 to 28 in 5b40771
as it was in #725
There was a problem hiding this comment.
The PR mentioned in #725 as a patch was closed, but there is a comment that indicates this might have been fixed in 25.02, though it's unclear, see #723 (review)
Is there an issue or PR in progress tracking this? that we can reference so when it's fixed we can uncomment this back?
ncclementi
left a comment
There was a problem hiding this comment.
LGTM, I left a comment about the cuvs commented code. I wasn't able to find an issue or anything suggesting we should fix this, but I think ideally we should leave comment in code referencing an issue on why are we commenting this out.
|
|
||
| cuvs_bench_source_tags=() | ||
| cuvs_bench_datasets_source_tags=() | ||
| # cuvs_bench_datasets_source_tags=() |
There was a problem hiding this comment.
The PR mentioned in #725 as a patch was closed, but there is a comment that indicates this might have been fixed in 25.02, though it's unclear, see #723 (review)
Is there an issue or PR in progress tracking this? that we can reference so when it's fixed we can uncomment this back?
bdice
left a comment
There was a problem hiding this comment.
A few nits, otherwise LGTM.
There was a problem hiding this comment.
Should we pin to SHAs of these actions?
There was a problem hiding this comment.
If we want to switch from tags to SHAs, I think that'd be better done as a RAPIDS-wide thing and not in the scope of this PR.
I'd like to not have to worry, for this PR, about questions I have about that, such as how that'd affect auto-updates from dependabot / renovate.
There was a problem hiding this comment.
I've started a separate (private) discussion about switching to commit SHAs RAPIDS-wide. Let's defer the decision on that to the outcome of that discussion.
I'm going to merge this with these pinned to tags, as other actions in this repo's CI already are.
KyleFromNVIDIA
left a comment
There was a problem hiding this comment.
Looks good, just a few minor questions and changes.
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
|
/merge |
Contributes to #667
Expands testing to improve release confidence in these images.
pre-commithooks:rapidsai/verify-copyright= keep copyright notices up to dateshellcheck= catch issues and enforce consistency in shell scriptspre-commithooksrun:topre-commit/action@v3.0.1in CI, for faster runs ofpre-commitand simpler CI configuration