-
Notifications
You must be signed in to change notification settings - Fork 144
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
kie-issues#1613: Add CI :: License headers / check
GitHub Actions workflow
#2111
Merged
+197
−19
Merged
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
d6fcb48
Add license header
jomarko 25c9fcb
merge main
jomarko 5c11578
rat-excludes
jomarko da1b7fc
print rat-check output
jomarko 445da64
rename the yaml file
jomarko 4fff193
Try to fix tests
jomarko fd4f15f
List explicitely all files in .rat-excludes
jomarko 95bf652
Use apache-rat v0.16.1
jomarko 414d3b8
revert newline at the EOF
jomarko 59f5c2b
Everthing -> Everything
jomarko 25da501
Add ./jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resourc…
jomarko 8ea07fe
Merge remote-tracking branch 'upstream/main' into apps-license
jomarko 7335513
CI :: License headers
jomarko 35c4fd1
Merge remote-tracking branch 'upstream/main' into apps-license
jomarko 975415d
Exclude bundle.js from license header check
jomarko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
name: "CI :: License headers" | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download Apache RAT | ||
run: | | ||
curl -LO https://repo1.maven.org/maven2/org/apache/rat/apache-rat/0.16.1/apache-rat-0.16.1.jar | ||
- name: Run Apache RAT | ||
run: | | ||
java -jar apache-rat-0.16.1.jar -d . -E .rat-excludes | grep "== File:" && echo "The files listed above are missing license headers." && exit 1 || echo "All files have license headers." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,3 +52,6 @@ package-lock.json | |
/cypress* | ||
|
||
.factorypath | ||
|
||
# Apache RAT check excludes file | ||
!.rat-excludes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
# .rat-excludes | ||
.rat-excludes | ||
# DISCLAIMER-WIP | ||
DISCLAIMER-WIP | ||
# apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-common/src/main/resources/approval.bpmn | ||
approval.bpmn | ||
# apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-quarkus/src/main/resources/META-INF/processSVG/approvals.svg | ||
approvals.svg | ||
# apps-integration-tests/integration-tests-data-index-service/integration-tests-data-index-service-quarkus/src/test/resources/approval.bpmn | ||
approval.bpmn | ||
# apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/processes/MultipleTimerInstancesBoundaryTimerEvent.bpmn | ||
MultipleTimerInstancesBoundaryTimerEvent.bpmn | ||
# apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/processes/MultipleTimerInstancesTimerEvent.bpmn | ||
MultipleTimerInstancesTimerEvent.bpmn | ||
# apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/travels/async.bpmn | ||
async.bpmn | ||
# apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/travels/timer-on-task.bpmn | ||
timer-on-task.bpmn | ||
# apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/travels/timers.bpmn | ||
timers.bpmn | ||
# apps-integration-tests/integration-tests-jobs-service/integration-tests-jobs-service-common/src/main/resources/org/acme/travels/timersCycle.bpmn | ||
timersCycle.bpmn | ||
# apps-integration-tests/integration-tests-trusty-service/integration-tests-trusty-service-common/src/main/resources/TrafficViolation.dmn | ||
TrafficViolation.dmn | ||
# data-audit/data-audit-common/src/main/resources/META-INF/data-audit-job-query.graphqls | ||
data-audit-job-query.graphqls | ||
# data-audit/data-audit-common/src/main/resources/META-INF/data-audit-process-query.graphqls | ||
data-audit-process-query.graphqls | ||
# data-audit/data-audit-common/src/main/resources/META-INF/data-audit-types.graphqls | ||
data-audit-types.graphqls | ||
# data-audit/data-audit-common/src/main/resources/META-INF/data-audit-usertask-query.graphqls | ||
data-audit-usertask-query.graphqls | ||
# data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/META-INF/data-audit-orm.xml | ||
data-audit-orm.xml | ||
# data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/META-INF/services/org.kie.kogito.app.audit.spi.DataAuditStore | ||
org.kie.kogito.app.audit.spi.DataAuditStore | ||
# data-audit/kogito-addons-data-audit-jpa/kogito-addons-data-audit-jpa-common/src/main/resources/META-INF/services/org.kie.kogito.app.audit.spi.GraphQLSchemaQueryProvider | ||
org.kie.kogito.app.audit.spi.GraphQLSchemaQueryProvider | ||
# data-audit/kogito-addons-data-audit-springboot/src/test/resources/application.properties | ||
application.properties | ||
# data-index/data-index-graphql/src/main/resources/basic.schema.graphqls | ||
basic.schema.graphqls | ||
# data-index/data-index-service/data-index-service-common/src/main/resources/domain.schema.graphqls | ||
domain.schema.graphqls | ||
# data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/integration-tests-process/src/main/resources/hello.bpmn | ||
hello.bpmn | ||
# data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-infinispan/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg | ||
hello.svg | ||
# data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/integration-tests-process/src/main/resources/hello.bpmn | ||
hello.bpmn | ||
# data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-inmemory/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg | ||
hello.svg | ||
# data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-jpa/integration-tests-process/src/main/resources/hello.bpmn | ||
hello.bpmn | ||
# data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-jpa/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg | ||
hello.svg | ||
# data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/integration-tests-process/src/main/resources/hello.bpmn | ||
hello.bpmn | ||
# data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-mongodb/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg | ||
hello.svg | ||
# data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/integration-tests-process/src/main/resources/hello.bpmn | ||
hello.bpmn | ||
# data-index/kogito-addons-quarkus-data-index/kogito-addons-quarkus-data-index-postgresql/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg | ||
hello.svg | ||
# data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-infinispan/integration-tests-process/src/main/resources/hello.bpmn | ||
hello.bpmn | ||
# data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-jpa/integration-tests-process/src/main/resources/hello.bpmn | ||
hello.bpmn | ||
# data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-jpa/integration-tests-process/src/main/resources/META-INF/processSVG/hello.svg | ||
hello.svg | ||
# data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-mongodb/integration-tests-process/src/main/resources/hello.bpmn | ||
hello.bpmn | ||
# data-index/kogito-addons-quarkus-data-index-persistence/kogito-addons-quarkus-data-index-persistence-postgresql/integration-tests-process/src/main/resources/hello.bpmn | ||
hello.bpmn | ||
# explainability/explainability-service/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker | ||
org.mockito.plugins.MockMaker | ||
# jitexecutor/jitexecutor-bpmn/src/test/resources/MultipleInvalidModel.bpmn2 | ||
MultipleInvalidModel.bpmn2 | ||
# jitexecutor/jitexecutor-bpmn/src/test/resources/MultipleProcess.bpmn2 | ||
MultipleProcess.bpmn2 | ||
# jitexecutor/jitexecutor-bpmn/src/test/resources/SingleInvalidModel.bpmn2 | ||
SingleInvalidModel.bpmn2 | ||
# jitexecutor/jitexecutor-bpmn/src/test/resources/SingleProcess.bpmn | ||
SingleProcess.bpmn | ||
# jitexecutor/jitexecutor-bpmn/src/test/resources/SingleProcess.bpmn2 | ||
SingleProcess.bpmn2 | ||
# jitexecutor/jitexecutor-bpmn/src/test/resources/SingleUnparsableModel.bpmn2 | ||
SingleUnparsableModel.bpmn2 | ||
# jitexecutor/jitexecutor-bpmn/src/test/resources/UnparsableModel.bpmn2 | ||
UnparsableModel.bpmn2 | ||
# jitexecutor/jitexecutor-bpmn/src/test/resources/ValidModel.bpmn | ||
ValidModel.bpmn | ||
# jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs/src/test/resources/application.properties | ||
application.properties | ||
# jobs-service/kogito-addons-jobs-service/kogito-addons-quarkus-jobs-service-embedded/runtime/src/main/resources/META-INF/services/org.eclipse.microprofile.config.spi.ConfigSource | ||
org.eclipse.microprofile.config.spi.ConfigSource | ||
# trusty/trusty-service/trusty-service-common/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker | ||
org.mockito.plugins.MockMaker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
really not sure about this file, it contains so much:
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 seems to be a combined js. I don't know what reviewers will say, but I hope it's not a blocker.
I think you can list the copyright [Sindre Sorhus, Jed Watson, Meta(Facebook), Gary Court] and license [MIT, BSD 2-clause].
FYI)
Copyright (c) Meta Platforms, Inc. and affiliates.
rather thanFacebook
.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.
+1 on what @tkobayas said about Facebook -> Meta Platforms
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.
Unfortunately I'm not too deep into this project ... generally the "Licensed to the Apache Software" foundation header should only be used if it contains a significant amount of content from an Apache project and not simply stuff that's licensed under the Apache 2.0 license.
Do I understand it correctly, that ./jitexecutor/jitexecutor-dmn/src/main/resources/META-INF/resources/bundle.js contains resources from various sources? Usually in such a case it would be good to mention which parts are taken from which project and which license they are under. Would that be possible? Because otherwise it's not really possible to correctly find out which code is licensed under which license.
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.
Thank you all for inputs and comments. before we proceed with adding the
bundle.js
entry intoLICENSE
, I opened internal slack conversation about dropping it from the codebase. It is basically used in small demo webapp, that has actually an alternative in usingcurl
commands orswagger-ui
endpoints documentation. From my point of view, there is a chance we drop it.If slack conversation will give me a green light for it, I can inform about it also using Apache mailing list, and if there is no objection, we can remove it.
If not, yes, we will need to figure out proper licensing.
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.
@jomarko please use public channels, ML is supposed for that
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.
@porcelli https://lists.apache.org/thread/k1lrg5bdflf653zwgmtvxvn4fozocbyr
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 great if we can drop it.
Btw, @pjfanning @chrisdutz Am I right to assume that this
bundle.js
issue is not a blocker for 10.0.0 because the file is MIT and BSD which are Category A, so not hitting "Blocker" in https://issues.apache.org/jira/browse/LEGAL-469 ?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 is not blocker but the getting the LICENSE text right is needed eventually
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 updated the
LICENSE
entry for thebundle.js
Potential
bundle.js
removal will be handled in a separate ticket.