Skip to content

Conversation

@rbanka1
Copy link
Contributor

@rbanka1 rbanka1 commented Dec 17, 2024

Description

Add license checker.

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly
  • CI workflows, not executed per PR (e.g. Nightly), execute properly
  • New tests added, especially if they will fail without my changes
  • Added/extended example(s) to cover this functionality
  • Extended the README/documentation
  • All newly added source files have a license
  • All newly added source files are referenced in CMake files
  • Logger (with debug/info/... messages) is used

# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# You can add an exception file
Copy link
Contributor

Choose a reason for hiding this comment

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

is this exception list for license check or for copyright check? or both? please mention it in the comment here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is for both

Copy link
Contributor

Choose a reason for hiding this comment

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

as I stated above - please mention it in the comment here

@@ -0,0 +1,192 @@
#!/usr/bin/env bash
Copy link
Contributor

Choose a reason for hiding this comment

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

when all done, the last thing to do would be to make order in your commits. In this PR it would be at best to have 3 commits:

  1. adding check_license based on the pmemstream repository (with link in the description ,where was it copied from)
  2. adding all your changes to the script
  3. fixing copyrights and licenses

Copy link
Contributor

Choose a reason for hiding this comment

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

ok, so this is not done ideally - a few notes on commits:

  • still there are 4 commits - the last one, with simple fixes should be squashed, for sure
  • descriptions of the commits should be as meaningful as possible; e.g. now, the second one ([Fix formatting of CMakeLists.txt](https://github.com/oneapi-src/unified-memory-framework/pull/997/commits/d8ba0f40dc48ec80eff8e8836d13bf642c780f00)) have a lot of lines, which are not relevant... and the title is inaccurate
  • the title Final version of license check is also not saying what you did in this commit 😉

in case you need any hint on this matter, please let me, or anyone else from the team know and we'll gladly help

Fix formatting of CMakeLists.txt V2

Check license

Check license V2

Check license V2.2

Check license V2.3

Check license V2.3 false test

Check license V2.3 false test 2

Check license V2.3 false test 3

Check license V2.3 false test 4

TEST v1

TEST v1.2

TEST v1.3

TEST v1.4

Fix V1

Add date exception

Added more exception files

 Added more exception files V2

 Added more exception files V2.2

final version

final version v2

final version v3
Final version of license check..

Final version of license check...

Final version of license check....
@rbanka1 rbanka1 marked this pull request as ready for review December 20, 2024 13:34
@rbanka1 rbanka1 requested a review from a team as a code owner December 20, 2024 13:34
@@ -0,0 +1,142 @@
# Check code with compilers' sanitizers
name: Sanitizers
Copy link
Contributor

Choose a reason for hiding this comment

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

heh, this file shouldn't be here

@@ -0,0 +1,192 @@
#!/usr/bin/env bash
Copy link
Contributor

Choose a reason for hiding this comment

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

ok, so this is not done ideally - a few notes on commits:

  • still there are 4 commits - the last one, with simple fixes should be squashed, for sure
  • descriptions of the commits should be as meaningful as possible; e.g. now, the second one ([Fix formatting of CMakeLists.txt](https://github.com/oneapi-src/unified-memory-framework/pull/997/commits/d8ba0f40dc48ec80eff8e8836d13bf642c780f00)) have a lot of lines, which are not relevant... and the title is inaccurate
  • the title Final version of license check is also not saying what you did in this commit 😉

in case you need any hint on this matter, please let me, or anyone else from the team know and we'll gladly help

# Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# You can add an exception file
Copy link
Contributor

Choose a reason for hiding this comment

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

as I stated above - please mention it in the comment here

lukaszstolarczuk and others added 12 commits December 23, 2024 16:27
includes:
- add missing CUDA provider in the web docs,
- proxy_pool is enabled by default, move req. info to proxy_lib,
- add links in README.
and update the script to work outside of scripts dir.
…est_valgrind.sh

Fix paths of logs in test_valgrind.sh
Set device_properties.stype during init.

Found by L0 validation layer.
…n_examples

enable building examples on win static hwloc CI
grep -v -E -e 'src/uthash/.*' \
-e 'benchmark/ubench.h' \
-e 'include/umf/proxy_lib_new_delete.h' \
-e 'scripts/docs_config/conf.py' \
Copy link
Contributor

Choose a reason for hiding this comment

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

docs files moved to a new <umf_root>/docs dir, so at least this line should be updated

-e '\.cmake-format$' \
-e 'CODEOWNERS$' \
-e 'scripts/assets/images/.*' \
-e 'scripts/docs_config/.*' \
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm I think not all files from docs_config (now called docs/config) should be omitted

updated checker algoritm,
added exception files,
added correct license where needed,
added calling checker
@lukaszstolarczuk
Copy link
Contributor

continued in #1028

@rbanka1 rbanka1 deleted the rb_checkLicense branch January 14, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants