-
Notifications
You must be signed in to change notification settings - Fork 276
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
Updates license headers #1829
Updates license headers #1829
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1829 +/- ##
============================================
- Coverage 60.89% 60.87% -0.02%
Complexity 3216 3216
============================================
Files 256 256
Lines 18013 18013
Branches 3211 3211
============================================
- Hits 10969 10966 -3
- Misses 5465 5466 +1
- Partials 1579 1581 +2
Continue to review full report at Codecov.
|
@DarshitChanpura Any progress on this? I'd recommend, if we are unsure of next steps, close the review until it is in state to review/get feedback and then open a fresh pull request. |
@opensearch-project/security team, let's get this reviewed and merged and then we can open a follow-up issue to generate new license headers on new file creation. |
092d457
to
c10db2a
Compare
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.
Taking this change without being sure that we correctly updated all of the files makes it hard to know if this is the correct pull request to merge. I would rather we solved the problem of detecting incorrect license headers first and then rolled out the fix for the improperly documented files.
I believe that OpenSearch already has a process for doing this, can we see if we can adopt it or a similar process?
The license headers are updated according to the step mentioned in the bug attached here. I have replaced all the headers similar to this in all the files to match the header mentioned here. The follow-up to this would to add automated checks i.e. one which you mentioned in the comment, using a groovy task or an alternative in our project which would need more time. I did try by adding a task using spotless, but that would replace all the license headers with the new one which is not correct, so ended up removing it and would need an extra set of hands in getting this fix through. |
Could we add a check for the bad license header to make sure we don't add any more violations like these back in? I don't think we need a 'license header corrector' tool |
f705ecf
to
999305d
Compare
config/checkstyle/sun_checks.xml
Outdated
@@ -204,4 +204,12 @@ | |||
<property name="severity" value="warning"/> | |||
</module> | |||
|
|||
<!-- Checks for Headers to not contain old license text --> | |||
<module name="RegexpSingleline"> | |||
<property name="format" value="Portions Copyright OpenSearch Contributors"/> |
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.
For now I'm checking the starting line of the old license header to see if any files contain it, if so checkstyle will throw violation.
Done |
Signed-off-by: Darshit Chanpura <[email protected]>
999305d
to
19f4bb3
Compare
should we update NOTICE.txt? |
Signed-off-by: Darshit Chanpura <[email protected]>
19f4bb3
to
56c9768
Compare
I don't think we should modify the NOTICE.txt at this time. |
Signed-off-by: Darshit Chanpura <[email protected]> Signed-off-by: Stephen Crawford <[email protected]>
Windows build and test support for 1.3 - Use most recent format of CI workflows from main - Backport #2206 - Supply workarounds for JDK8 incompatible APIs for Encoding / Pattern matching (Thanks @cwperks!) - Backport only freeport logic from #1638 - Backport #1758 - All updates to TestAuditlogImpl.java from main - #2180 - #1935 - #1920 - #1914 - #1829 - And Targeted test updates for ComplianceAuditlogTest and BasicAuditlogTest to keep up with TestAuditlogImpl.java updates Signed-off-by: Peter Nied <[email protected]> Signed-off-by: Stephen Crawford <[email protected]> Signed-off-by: Stephen Crawford <[email protected]> Co-authored-by: Stephen Crawford <[email protected]>
Signed-off-by: Darshit Chanpura <[email protected]>
Description
Updates license headers
Issues Resolved
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.