-
Notifications
You must be signed in to change notification settings - Fork 10
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: use gh in install.sh for artifacts download #516
Conversation
5960014
to
926d806
Compare
Codecov ReportBase: 53.78% // Head: 53.88% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #516 +/- ##
==========================================
+ Coverage 53.78% 53.88% +0.10%
==========================================
Files 50 50
Lines 3901 3901
==========================================
+ Hits 2098 2102 +4
+ Misses 1543 1539 -4
Partials 260 260
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's just make sure we add helpful output if a user uses this script but doesn't have gh
installed to go install it, and then test it on our supported platforms, then LGTM 👍
926d806
to
88a37b0
Compare
Thanks for the suggestion: I ended up testing this on Mac arm64 and Linux aarch64 (as reported by PTAL. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK, just as long as we test before merging.
I would also ask if we haven't already, we should create some automated tests for this installer and to exercise the CLI to ensure we're not breaking the CLI and its installer on updates. If we could at minimum create a follow-up issue for that, and manually test now that would be good 👍
78e8ebe
to
cf12605
Compare
cf12605
to
92865c8
Compare
I've added a very simple installer test: example run: https://github.com/Kong/kubernetes-testing-framework/actions/runs/4076445875/jobs/7024196104#step:3:10 Plus: as noted above I've tested it manually which should do for now. The old behaviour of downloading via PTAL. |
run: ./docs/install.sh | ||
|
||
- name: run ktf | ||
run: ~/.local/bin/ktf --help |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of --help
here? 🤔
if the purpose is to validate that the ktf binary is present, please (at least) comment about the intent behind using --help
in an automated workflow
|
||
if [ "$ARCH" != "amd64" ]; then | ||
if [[ "$ARCH" != "amd64" && "$ARCH" != "arm64" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: inconsistent quotes around arch names "arm64"
vs aarch64
in lines 37 and 33 respectively
This PR aims to avoid hitting the API rate limiting by using
gh
which should already be usingGITHUB_TOKEN
on Github's CI.