Skip to content

ORC-1395: Enforce license check via github action - #1442

Closed
wgtmac wants to merge 3 commits into
apache:mainfrom
wgtmac:license
Closed

wgtmac wants to merge 3 commits into
apache:mainfrom
wgtmac:license

Conversation

@wgtmac

@wgtmac wgtmac commented Mar 16, 2023 •

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

Add a Gitbub action to enforce license check of c++ source files.

Why are the changes needed?

#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging.

How was this patch tested?

Make sure the new action works as expected.

@github-actions github-actions Bot added the INFRA label Mar 16, 2023

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @wgtmac !

@dongjoon-hyun

Copy link
Copy Markdown
Member

This PR is supposed to fail at C++ code, right?

@wgtmac

wgtmac commented Mar 16, 2023

Copy link
Copy Markdown
Member Author

This PR is supposed to fail at C++ code, right?

Give me some time to learn how to config it for C++ only.

@wgtmac
wgtmac force-pushed the license branch 4 times, most recently from 1565fd7 to 0231045 Compare March 16, 2023 02:53
@wgtmac

wgtmac commented Mar 16, 2023

Copy link
Copy Markdown
Member Author

The new action is now ready to go: https://github.com/apache/orc/actions/runs/4433068369/jobs/7777756717

I found that we have different license headers in the C++ source codes and use the tool to fix them in this PR.

I haven't fixed the two new files without license headers to make sure the tool works as below:

Run license-eye -v info -c .github/.licenserc.yaml header check
INFO Loading configuration from file: .github/.licenserc.yaml 
INFO Totally checked 2062 files, valid: 157, invalid: 2, ignored: 1903, fixed: 0 
ERROR the following files don't have a valid license header: 
c++/src/SchemaEvolution.cc
c++/src/SchemaEvolution.hh 
ERROR one or more files does not have a valid license header 
Error: Process completed with exit code 1.

Once #1441 is merged, I can rebase and retrigger the action.

@dongjoon-hyun @coderex2522 @ffacs

@dongjoon-hyun dongjoon-hyun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM.

@dongjoon-hyun

Copy link
Copy Markdown
Member

Merged to main.

Could you make a PR to branch-1.8 and branch-1.7, @wgtmac ?

wgtmac added a commit to wgtmac/orc that referenced this pull request Mar 16, 2023
Add a Gitbub action to enforce license check of c++ source files.

apache#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging.

Make sure the new action works as expected.

Closes apache#1442 from wgtmac/license.

Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
wgtmac added a commit to wgtmac/orc that referenced this pull request Mar 16, 2023
Add a Gitbub action to enforce license check of c++ source files.

apache#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging.

Make sure the new action works as expected.

Closes apache#1442 from wgtmac/license.

Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
guiyanakuang pushed a commit that referenced this pull request Mar 16, 2023
Add a Gitbub action to enforce license check of c++ source files.

#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging.

Make sure the new action works as expected.

Closes #1442 from wgtmac/license.

Authored-by: Gang Wu <ustcwg@gmail.com>

Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
wgtmac added a commit to wgtmac/orc that referenced this pull request Mar 16, 2023
Add a Gitbub action to enforce license check of c++ source files.

apache#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging.

Make sure the new action works as expected.

Closes apache#1442 from wgtmac/license.

Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
wgtmac added a commit to wgtmac/orc that referenced this pull request Mar 16, 2023
Add a Gitbub action to enforce license check of c++ source files.

apache#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging.

Make sure the new action works as expected.

Closes apache#1442 from wgtmac/license.

Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@dongjoon-hyun dongjoon-hyun added this to the 1.9.0 milestone Mar 16, 2023
wgtmac added a commit that referenced this pull request Mar 16, 2023
Add a Gitbub action to enforce license check of c++ source files.

#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging.

Make sure the new action works as expected.

Closes #1442 from wgtmac/license.

Authored-by: Gang Wu <ustcwg@gmail.com>

Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
cxzl25 pushed a commit to cxzl25/orc that referenced this pull request Jan 11, 2024
### What changes were proposed in this pull request?
Add a Gitbub action to enforce license check of c++ source files.

### Why are the changes needed?
apache#1427 was accidentally merged without license headers added to new files. We need a tool to automatically check it before merging.

### How was this patch tested?
Make sure the new action works as expected.

Closes apache#1442 from wgtmac/license.

Authored-by: Gang Wu <ustcwg@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
@wgtmac
wgtmac deleted the license branch February 27, 2024 02:28
dongjoon-hyun added a commit that referenced this pull request Feb 6, 2026
### What changes were proposed in this pull request?

This PR aims to use `license-check` GitHub Action job to check `java` directory.

### Why are the changes needed?

Previously, Java directory was ignored.
- #1442

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: `Opus 4.5` on `Claude Code`

Closes #2512 from dongjoon-hyun/ORC-2076.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit to dongjoon-hyun/orc that referenced this pull request Feb 6, 2026
### What changes were proposed in this pull request?

This PR aims to use `license-check` GitHub Action job to check `java` directory.

### Why are the changes needed?

Previously, Java directory was ignored.
- apache#1442

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: `Opus 4.5` on `Claude Code`

Closes apache#2512 from dongjoon-hyun/ORC-2076.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
(cherry picked from commit 230971d)
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
dongjoon-hyun added a commit that referenced this pull request Feb 6, 2026
### What changes were proposed in this pull request?

This PR aims to use `license-check` GitHub Action job to check `java` directory.

This is a backport of
- #2512

### Why are the changes needed?

Previously, Java directory was ignored.
- #1442

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

Generated-by: `Opus 4.5` on `Claude Code`

Closes #2513 from dongjoon-hyun/ORC-2076-2.

Authored-by: Dongjoon Hyun <dongjoon@apache.org>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants