Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martijnthe
Copy link

@martijnthe martijnthe commented Apr 17, 2018

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 and tools and no excludes.

@martijnthe martijnthe self-assigned this Apr 17, 2018
@martijnthe
Copy link
Author

Failing the build when the commit message misses the DCO signed-off message can be seen here:
https://travis-ci.org/jerryscript-project/jerryscript-debugger-ts/jobs/367663604

…it message

JerryScript-DCO-1.0-Signed-off-by: Martijn The [email protected]
@martijnthe
Copy link
Author

@akosthekiss or perhaps @yichoi could you review?

@@ -1,2 +1,3 @@
node_modules
yarn-error.log
.idea
Copy link
Contributor

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.*

Copy link
Author

@martijnthe martijnthe Apr 20, 2018

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...

Copy link
Member

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

Copy link
Contributor

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. :)

Copy link
Contributor

@grgustaf grgustaf left a 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',
Copy link
Contributor

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?

Copy link
Author

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.

Copy link
Member

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
Copy link
Member

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
Copy link
Member

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',
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants