-
Notifications
You must be signed in to change notification settings - Fork 6
Clean up util directory #59
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,14 @@ | ||
| # [INTERNAL] AIS Development Utilities | ||
| # hipFile Development Utilities | ||
|
|
||
| ## clear-journal.sh | ||
| ## files-changed.sh | ||
|
|
||
| Clears systemd's journal. | ||
| Determines if important files changed. Used by CI. | ||
|
|
||
| ## format-source.sh | ||
|
|
||
| Formats applicable source in the repo using a specific version | ||
| of `clang-format`. Run it from the root. | ||
|
|
||
| ## llvm-coverage.sh | ||
|
|
||
| Code coverage script used by CI. | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -16,17 +16,17 @@ CHECK_PATTERN=$3 | |||||||||
| FILES_CHANGED=0 | ||||||||||
|
|
||||||||||
| changed_files=() | ||||||||||
| if ! diff_output="$(git diff --name-only ${BASE_REF} ${HEAD_REF})"; then | ||||||||||
| echo ${diff_output} | ||||||||||
| if ! diff_output="$(git diff --name-only "${BASE_REF}" "${HEAD_REF}")"; then | ||||||||||
| echo "${diff_output}" | ||||||||||
| exit 1 | ||||||||||
| fi | ||||||||||
| mapfile -t changed_files <<< "${diff_output}" | ||||||||||
|
|
||||||||||
| for changed_file in "${changed_files[@]}"; do | ||||||||||
| if [[ "${changed_file}" == ${CHECK_PATTERN} ]]; then | ||||||||||
| if [[ "${changed_file}" == "${CHECK_PATTERN}" ]]; then | ||||||||||
| FILES_CHANGED=1 | ||||||||||
| fi | ||||||||||
| done | ||||||||||
|
|
||||||||||
| printf '%s' ${FILES_CHANGED} | ||||||||||
|
||||||||||
| printf '%s' ${FILES_CHANGED} | |
| printf '%s' "${FILES_CHANGED}" |
Copilot
AI
Nov 18, 2025
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.
The variable FILES_CHANGED should be quoted here to follow the same shellcheck improvements applied to other variables in this file. This ensures consistent behavior when the variable is empty or contains special characters.
Suggested change:
printf '%s' "${FILES_CHANGED}"| printf '%s' ${FILES_CHANGED} | |
| printf '%s' "${FILES_CHANGED}" |
This file was deleted.
This file was deleted.
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.
The README.md documents all shell scripts but doesn't mention the
docker/subdirectory which contains three DOCKERFILE files (ais_ci_rocky, ais_ci_suse, ais_ci_ubuntu). Consider adding a section documenting the docker subdirectory and its purpose for completeness.Example:
## docker/ Contains Dockerfiles for CI environments on different Linux distributions (Rocky, SUSE, Ubuntu).