Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Changes made to the Audit process for prioritizing the commits [skip-ci] #5924

Merged
merged 1 commit into from
Jun 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions scripts/prioritize-commits.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2021-2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -84,6 +84,7 @@ do
CLASSES="${CLASSES}\n$PACKAGE.${CLASS}"
done
done
FOUND_REFS=""
# dedupe
for CLASS in $(echo -e $CLASSES|sort|uniq|xargs)
do
Expand All @@ -94,13 +95,14 @@ do
set -ex
echo -e "looking for class ${CLASS} and ${FOUND}\n"
if [ ${FOUND} -ne 0 ]; then
printf "%s\t%s\t%s\t%s\n" "P1" "${COMMIT_ID}" "${COMMIT_MSG}" "${CLASS}" >> ${PRIORITIZED_COMMITS}
printf "%s\t%s\n" "${COMMIT_ID}" "${CLASS}" >> ${AUDIT_PLUGIN_LOG}
break
FOUND_REFS="$FOUND_REFS ${CLASS},"
fi
fi
done
if [ ${FOUND} -eq 0 ]; then
if [ ! -z "${FOUND_REFS}" ]; then
printf "%s\t%s\t%s\n" "P1" "${COMMIT_ID}" "${COMMIT_MSG}" >> ${PRIORITIZED_COMMITS}
printf "%s\t%s\t%s\n" "${COMMIT_ID}" "${FOUND_REFS}" >> ${AUDIT_PLUGIN_LOG}
else
printf "%s\t%s\t%s\n" "P?" "${COMMIT_ID}" "${COMMIT_MSG}" >> ${PRIORITIZED_COMMITS}
fi
done < <(cat ${COMMIT_DIFF_LOG})
Expand Down