-
Notifications
You must be signed in to change notification settings - Fork 2
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
Make CI enforce correct license banner + correct DCO sign-off in commit message #9
base: master
Are you sure you want to change the base?
Conversation
Failing the build when the commit message misses the DCO signed-off message can be seen here: |
…it message JerryScript-DCO-1.0-Signed-off-by: Martijn The [email protected]
676802f
to
8e6c27d
Compare
@akosthekiss or perhaps @yichoi could you review? |
@@ -1,2 +1,3 @@ | |||
node_modules | |||
yarn-error.log | |||
.idea |
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.
If this is just something you do on your system, might be more appropriate to do something like I do:
In /home/pepsi/.gitconfig
:
[core]
excludesfile = /home/pepsi/.gitignore_global
In /home/pepsi/.gitignore_global
:
*~
\#*
.#*
NOTES.*
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 main project's .gitignore has a bunch of IDE related lines:
https://github.com/jerryscript-project/jerryscript/blob/master/.gitignore#L9
I don't feel strongly about it though, although I've got bitten by system-level gitignore in the past where a repo actually did have files that were being ignored by my own system-level gitignore (and touching those files didn't appear as changed). So I've lived with an empty one ever since...
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.
My thoughts are with @martijnthe :) I feel alike
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.
Fine with me; I'd never seen .idea before. :)
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.
Other than the .idea in .gitignore, LGTM.
'.py', | ||
'.S', | ||
'.sh', | ||
'.tcl', |
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.
I guess it makes sense to keep these around to catch future additions?
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.
Yeah, I considered it. But most of them only make sense in the context of a C project. I think it makes more sense to just add as needed.
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.
I'm also voting for the shorter list. For now, something like the following might be needed: .sh, .py, .js, .ts?
@@ -1,2 +1,3 @@ | |||
node_modules | |||
yarn-error.log | |||
.idea |
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.
My thoughts are with @martijnthe :) I feel alike
@@ -11,7 +11,10 @@ cache: | |||
jobs: | |||
include: | |||
- stage: lint | |||
script: yarn lint | |||
script: | |||
- ./tools/check-signed-off.sh |
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.
I think you'll need ./tools/check-signed-off.sh --travis
here. When merging a PR, Travis tends to rewrite the author info of the commit with the info found in the public profile of the PR's author. Which can be different from the settings found on the local machine of the author. At least that was the case some time back and caused all validations to check out perfectly while Travis was running for the PR but going red as soon as patches got merged into master. The solution (workaround?) was to be strict when checking the PR but be tolerant when the PR gets merged. (That works if master can progress only through PRs.)
'.py', | ||
'.S', | ||
'.sh', | ||
'.tcl', |
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.
I'm also voting for the shorter list. For now, something like the following might be needed: .sh, .py, .js, .ts?
Addresses #5
I lifted the checking scripts from the main jerryscript repo and changed the list of directories in the license check script to only contain
src
andtools
and no excludes.