Open xliang6 opened 6 years ago
@charliegracie @0xdaryl @mstoodle @mgaudet I think that if and when we get more contributors to the OMR and OpenJ9 projects, being able to run a commit validation script as a part of a code review would make committers' job a lot easier. What do you think? Should I look into enabling this? Thanks.
if it's reliable, i don't see why we wouldn't add it as a mandatory checkmark. +1
Can you outline what the script is checking for and what you think should cause the job to fail?
@charliegracie Thanks for your questions.
The script (when installed in a repository) will validate commits in the local repository, so it will have to be changed to work on the server, i.e. how it gets the commit information. It is intended to check against commit guidelines section in CONTRIBUTING.md and it needs to be updated along with the guidelines. I just noticed the guidelines were modified recently, so the script will have to be changed accordingly too.
A quick summary of what it does today:
Signed-off-by
footer, script will fail.Thanks for the write up.
If we are going to add a job to run this script on every PR I think we may want to add some more checks to make the job of the committer and contributor easier.
@charliegracie I will update the script to reflect the changes you requested. I am not familiar with ci.eclipse.org/omr framework, can it invoke any script (mine was written in ruby)? Can you point me to a working script so I can see how github parameters are obtained in this environment? How can I test my script in this environment? Thanks.
@mstoodle @0xdaryl @mgaudet Please let me know if you would anything to be changed in the script.
@xliang6 the CI can easily run Ruby scripts. Are there any specific gems you would need?
For the PR builds we are using the Jenkins GitHub Pull Request Plugin so you can view the plugin help to see the data that is easily made available to consumers.
My assumption would be that I will set up the job on Jenkins to invoke your script with the require parameters. I would expect your script should just take a commit SHA and then use regular GIT commands to get any data you need about that SHA.
A while ago, I checked in a commit validation script (written in ruby) in OMR to check commit messages against the OMR contributing guidelines. However, this script needs to be installed by a developer into a local repository to allow automatic commit validation in that repository. The steps on how to do this have been outlined in the contributing guidelines, however, this is very hard to enforce.
With the new ci.eclipse.org/omr framework, should we add the ability to allow a committer/contributor to request the script to be run on the server as a part of the code review process? The script will need to be modified as our guidelines change.