[LU-15617] Add shellcheck to prepare-commit-msg Created: 04/Mar/22  Updated: 11/Jun/22  Resolved: 11/Jun/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0

Type: Improvement Priority: Minor
Reporter: Arshad Hussain Assignee: Arshad Hussain
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
Gantt End to Start
has to be done after LU-15626 Fix "error" reported by shellcheck Resolved
Related
is related to LU-14826 enable striped directory as NFS export Resolved
is related to LU-15612 Replace unicode double quotes with AS... Resolved
is related to LU-15614 Variable incorrectly used in sanity-f... Resolved
is related to LU-15358 Fix shellcheck errors Resolved
is related to LU-11673 Correct shell issues/mistakes in Lust... Resolved
Rank (Obsolete): 9223372036854775807

 Description   

Add shellcheck to prepare-commit-msg.



 Comments   
Comment by Gerrit Updater [ 04/Mar/22 ]

"Arshad Hussain <arshad.hussain@aeoncomputing.com>" uploaded a new patch: https://review.whamcloud.com/46705
Subject: LU-15617 contrib: Add shellcheck to prepare-commit-msg
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: baac4ea013463ff277383afa09aad3abe892f0fb

Comment by Andreas Dilger [ 09/Mar/22 ]

The other place where shellcheck could be usefully added (once it is working in prepare-commit-msg) is in contrib/scripts/gerrit-checkpatch.py, which is doing the actual work of calling checkpatch.pl on each submitted patch and posting comments on the patches in Gerrit.

Like in prepare-commit-msg, it would need to determine which files are shell scripts, and then run shellcheck on the file and limit it to lines which are modified by the patch and call add_comment() for each one, and the script should handle the rest. The gerrit-checkpatch.py script is in Python, so I can't help very much with that, but hopefully it is fairly clear.

Comment by Arshad Hussain [ 15/Mar/22 ]

Andreas, will have a go at this one LU-15617 & LU-15626 are done.

Comment by Gerrit Updater [ 11/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46705/
Subject: LU-15617 contrib: Add shellcheck to prepare-commit-msg
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 57abd991ade9a381ac3ec94ca1d02993378c8e7c

Comment by Peter Jones [ 11/Jun/22 ]

Landed for 2.16

Generated at Sat Feb 10 03:19:51 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.