Adding scripts to download and upload artifacts to the Github Artifact Store - #152
Conversation
jameslamb
left a comment
There was a problem hiding this comment.
I'm going to join here as a reviewer alongside @gforsyth since you and I have been talking about this work and since I'd done an earlier version of it.
To start... how did you test this? Could we see some PRs showing how these would be used?
|
Hey @jameslamb, Here are a couple of PRs on RMM and cuDF which use the new
To test these changes, I used these scripts from my Let me know if you need any additional details, I'll be happy to discuss them with you! |
ajschmidt8
left a comment
There was a problem hiding this comment.
Looks good far! Left a few comments, but we're getting closer.
ajschmidt8
left a comment
There was a problem hiding this comment.
nice! It's coming along.
I tested some of these scripts locally and found one issue. The rapids-download-*-from-github and rapids-get-pr-*-artifact-github scripts fails because rapids-package-name still returns the .tar.gz extension. To fix this, I updated the end of the rapids-package-name script to include the following logic:
diff --git a/tools/rapids-package-name b/tools/rapids-package-name
index eaadc5c..945f2d0 100755
--- a/tools/rapids-package-name
+++ b/tools/rapids-package-name
@@ -76,6 +76,11 @@ if (( append_arch == 1)); then
fi
# for cpp and python package types, it's a tarball, append .tar.gz and prepend project name
-pkg_name="${repo_name}_${pkg_name}.tar.gz"
+pkg_extension=".tar.gz"
+if [[ "${RAPIDS_NO_PKG_EXTENSION:-}" == "true" ]]; then
+ pkg_extension=""
+fi
+
+pkg_name="${repo_name}_${pkg_name}${pkg_extension}"
echo -n "${pkg_name}"then I was able to set RAPIDS_NO_PKG_EXTENSION=true in my local environment and everything started working correctly.
Can you make these changes to your scripts? This change will also require that you update the package extension handling in rapidsai/shared-workflows#297.
|
in hindsight, I probably should've suggested using |
gforsyth
left a comment
There was a problem hiding this comment.
One suggestion and one question, but nothing blocking. This looks really nice @VenkateshJaya !
Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com>
Adding new scripts which use the Github Artifact Store to upload and download build artifacts towards https://github.com/rapidsai/build-infra/issues/237. No existing scripts or functionality is altered.