-
Notifications
You must be signed in to change notification settings - Fork 302
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
DAOS-15677 cq: add copyright GHA #15552
Conversation
Ticket title is 'add copyright GHA and remove required-githooks watermark' |
a33fbbf
to
757a388
Compare
Add GHA to check for copyright update. Move core logic from update-copyright githook into check_update_copyright.sh so the logic is shared between the githook and GHA. Skip-build: true Required-githooks: true Signed-off-by: Dalton Bohning <[email protected]>
893e4cd
to
6261270
Compare
Skip-build: true Signed-off-by: Dalton Bohning <[email protected]>
6261270
to
4d45740
Compare
Skip-build: true Signed-off-by: Dalton Bohning <[email protected]>
Skip-build: true Required-githooks: true Signed-off-by: Dalton Bohning <[email protected]>
Skip-build: true Signed-off-by: Dalton Bohning <[email protected]>
I need to remove DEBUG and the dummy change, but I left it for now so we can see how it works. |
src/client/dfuse/pil4dfs/hook_int.h
Outdated
|
||
/* dummy change */ |
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.
Notice if you view this file in the Files changed
tab, the annotation for the copyright is inline
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 good.
if [[ -z $y1 ]] ; then | ||
# Print warning but don't error on non-existent copyright | ||
echo " Copyright Information not found in: $file" |
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.
It's possible to propagate warnings to GHA but I'm not sure how many files would be flagged here
@@ -197,6 +197,20 @@ jobs: | |||
- name: Run check | |||
run: yamllint --format github . | |||
|
|||
copyright: |
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.
Plan to make the GHA required after we're sure it's stable
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 good. Please re-request review once you have cleaned it up.
CURL_OPTS="$CURL_PROXY $CURL_VERBOSE -s" | ||
URL="https://$HOST/pipeline-model-converter/validate" | ||
# shellcheck disable=SC2086 | ||
if ! output=$(curl $CURL_OPTS -s -X POST -F "jenkinsfile=<${1:-Jenkinsfile}" "$URL"); 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.
SC2086 is usually pretty easy to resolve:
CURL_OPTS="$CURL_PROXY $CURL_VERBOSE -s" | |
URL="https://$HOST/pipeline-model-converter/validate" | |
# shellcheck disable=SC2086 | |
if ! output=$(curl $CURL_OPTS -s -X POST -F "jenkinsfile=<${1:-Jenkinsfile}" "$URL"); then | |
CURL_OPTS=($CURL_PROXY $CURL_VERBOSE -s) | |
URL="https://$HOST/pipeline-model-converter/validate" | |
if ! output=$(curl "${CURL_OPTS[@]}" -s -X POST -F "jenkinsfile=<${1:-Jenkinsfile}" "$URL"); then |
Clearly I should have done that in the first place.
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.
Fixed
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.
Actually, no. It doesn't like that either
https://github.com/daos-stack/daos/actions/runs/12164183236/job/33925207435?pr=15552
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.
Pushed with more quotes
Skip-build: true Required-githooks: true Signed-off-by: Dalton Bohning <[email protected]>
Skip-build: true Required-githooks: true Signed-off-by: Dalton Bohning <[email protected]>
Add GHA to check for copyright update. Move core logic from update-copyright githook into check_update_copyright.sh so the logic is shared between the githook and GHA. Remove required-githooks watermark since it did not work in all scenarios and the GHA checks are more secure than client-side githooks. Combination of #15552, #15596, #15636, #15639 Skip-build: true Signed-off-by: Dalton Bohning <[email protected]>
Add GHA to check for copyright update. Move core logic from update-copyright githook into check_update_copyright.sh so the logic is shared between the githook and GHA. Remove required-githooks watermark since it did not work in all scenarios and the GHA checks are more secure than client-side githooks. Combination of #15552, #15596, #15636, #15639 Skip-build: true Signed-off-by: Dalton Bohning <[email protected]>
Add GHA to check for copyright update. Move core logic from update-copyright githook into check_update_copyright.sh so the logic is shared between the githook and GHA. Remove required-githooks watermark since it did not work in all scenarios and the GHA checks are more secure than client-side githooks. Combination of #15552, #15596, #15636, #15639 Skip-build: true Signed-off-by: Dalton Bohning <[email protected]>
Add GHA to check for copyright update.
Move core logic from update-copyright githook into check_update_copyright.sh so the logic is shared between the githook and GHA.
Skip-build: true
Required-githooks: true
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: