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

Add copyright check #11048

Merged
merged 21 commits into from
Oct 29, 2024
Merged

Add copyright check #11048

merged 21 commits into from
Oct 29, 2024

Conversation

pablo-garay
Copy link
Collaborator

@pablo-garay pablo-garay commented Oct 26, 2024

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

@pablo-garay
Copy link
Collaborator Author

@pablo-garay
Copy link
Collaborator Author

Sample execution (with more files with issues prior to change): https://github.com/NVIDIA/NeMo/actions/runs/11528195110/job/32094993197?pr=11048

@pablo-garay
Copy link
Collaborator Author

After copyright notices were added, the copyright check rightfully passes
https://github.com/NVIDIA/NeMo/actions/runs/11564887593/job/32190934995?pr=11048

Copy link
Collaborator

@ko3n1g ko3n1g left a 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
Copy link
Collaborator

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?:

Suggested change
- name: Run on change-set
- name: All files have copyright notice

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

SG good suggestion

Copy link
Collaborator

@ko3n1g ko3n1g left a 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

@pablo-garay
Copy link
Collaborator Author

Changes do not affect CI , so wont run CI

@ko3n1g ko3n1g merged commit aeee5ae into main Oct 29, 2024
12 of 13 checks passed
@ko3n1g ko3n1g deleted the pagaray/add_copyright_check branch October 29, 2024 15:54
akoumpa pushed a commit that referenced this pull request Oct 29, 2024
* 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
akoumpa pushed a commit that referenced this pull request Oct 29, 2024
* 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]>
akoumpa pushed a commit that referenced this pull request Oct 30, 2024
* 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]>
hainan-xv pushed a commit to hainan-xv/NeMo that referenced this pull request Nov 5, 2024
* 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]>
lilyw97 pushed a commit to lilyw97/NeMo that referenced this pull request Nov 13, 2024
* 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
HuiyingLi pushed a commit to HuiyingLi/NeMo that referenced this pull request Nov 15, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants