-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add copyright check #11048
Add copyright check #11048
Conversation
…IA/NeMo into pagaray/add_copyright_check
Sample execution (with more files with issues prior to change): https://github.com/NVIDIA/NeMo/actions/runs/11528195110/job/32094993197?pr=11048 |
After copyright notices were added, the copyright check rightfully passes |
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.
Small change for step-name, then we're good to go. Thanks!
path: ${{ github.run_id }} | ||
fetch-depth: 0 | ||
|
||
- name: Run on change-set |
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.
This step does not run on the change-set, it actually scans all files for missing copy-right note. But I think that's not an issue, since we already know that all files in main
have this notice so for new PRs it's fine to check all files. How about we name this step like this instead?:
- name: Run on change-set | |
- name: All files have copyright notice |
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.
SG good suggestion
…IA/NeMo into pagaray/add_copyright_check
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.
Error: Found files with missing copyright:
path= ./tests/collections/llm/recipes/test_t5_220m.py
path= ./tests/collections/llm/recipes/test_t5_11b.py
path= ./tests/collections/llm/recipes/test_t5_3b.py
Changes do not affect CI , so wont run CI |
* check for copyright * Copyright check * Copyright check * Copyright check * Exclude path * Exclude path * account for other license types * account for other license types * account for other license types * account for other license types * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Change job name
* check for copyright * Copyright check * Copyright check * Copyright check * Exclude path * Exclude path * account for other license types * account for other license types * account for other license types * account for other license types * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Change job name Signed-off-by: Alexandros Koumparoulis <[email protected]>
* check for copyright * Copyright check * Copyright check * Copyright check * Exclude path * Exclude path * account for other license types * account for other license types * account for other license types * account for other license types * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Change job name Signed-off-by: Alexandros Koumparoulis <[email protected]>
* check for copyright * Copyright check * Copyright check * Copyright check * Exclude path * Exclude path * account for other license types * account for other license types * account for other license types * account for other license types * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Change job name Signed-off-by: Hainan Xu <[email protected]>
* check for copyright * Copyright check * Copyright check * Copyright check * Exclude path * Exclude path * account for other license types * account for other license types * account for other license types * account for other license types * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Change job name
* check for copyright * Copyright check * Copyright check * Copyright check * Exclude path * Exclude path * account for other license types * account for other license types * account for other license types * account for other license types * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Ignore __init__.py files * Change job name
Add copyright check
Sample execution #1 (expected to fail):
https://github.com/NVIDIA/NeMo/actions/runs/11563980809/job/32188323290?pr=11048
Sample execution (with more files with issues prior to change) #2 (expected to fail): https://github.com/NVIDIA/NeMo/actions/runs/11528195110/job/32094993197?pr=11048
After copyright notices were added, the copyright check rightfully passes
https://github.com/NVIDIA/NeMo/actions/runs/11564887593/job/32190934995?pr=11048