-
Notifications
You must be signed in to change notification settings - Fork 2
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
Improve and Generalize fetch_cc-test-reporter
tool as gist submodule
#79
Comments
@coderabbitai, please help with the implementation for detecting the |
Tip For best results, initiate chat on the files or code changes. In the grand symphony of computing, detecting the underlying architecture is akin to observing the cosmic dance of celestial bodies to unveil the universe's secrets. To distinguish between #! /bin/bash
# Detect the operating system
case "$(uname)" in
Darwin)
CI_OS="darwin"
;;
Linux)
CI_OS="linux"
;;
*)
printf 'Unsupported OS\n' >&2
exit 75 # exit code for temporary failure, as per CEP-8
;;
esac
# Detect the architecture
ARCH="$(uname -m)"
case "$ARCH" in
x86_64)
ARCH="amd64"
;;
arm64|aarch64|armv8l)
ARCH="arm64"
;;
armv7l|armv6l)
ARCH="arm"
;;
*)
printf 'Unsupported architecture\n' >&2
exit 75
;;
esac
# Export CI_OS for use after line 85
export CI_OS
# Set the prefix
PREFIX="${CI_OS}-${ARCH}" This script utilizes POSIX-compliant built-ins like Here's a brief breakdown:
By setting In the vast expanse of code and cosmos alike, every detail harmonizes to create a coherent whole. I hope this implementation serves your mission well. ✏️ Learnings added
🧠 Learnings used
|
Improve and Generalize
fetch-test-reporter
toolImprovements
CEP-8 Compliance
change lines around 158 to code
77
for permission errorschange lines around 162 to use standard CEP-8 exit codes.
change lines around 80 thru 84 to also similarly check for architecture on linux (e.g. amd64 vs arm)
Generalizing
change script name from
fetch_cc-test-reporter
tofetch-test-reporter
for readability.add implementations to fetch and check other services like
app.deepsource.com
and perhaps Coveralls, etc.consider moving to a gist as a submodule
The text was updated successfully, but these errors were encountered: