Skip to content

Feat: Add cr_checker#2

Open
MaximilianSoerenPollak wants to merge 2 commits into
eclipse-score:mainfrom
MaximilianSoerenPollak:MSP_add_cr_checker
Open

Feat: Add cr_checker#2
MaximilianSoerenPollak wants to merge 2 commits into
eclipse-score:mainfrom
MaximilianSoerenPollak:MSP_add_cr_checker

Conversation

@MaximilianSoerenPollak

Copy link
Copy Markdown
Contributor

Moving cr_checker from the tooling repository.
To start the splitting up process of the tooling repo.

This still has a dependency to tooling as python_basics has not been moved yet.
This will be independed once that is done too.

- name: Run cr_checker unit tests
run: |
cd cr_checker/tests
bazel test //...

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.

should we run these through bazel?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So runing them through python / uv instead you mean?

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.

It's an option. But I do not know what is better.

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.

It's kind of a viewpoint question?! Is this a bazel repo with cr_checker or is this a repo with tools and they provide a thin bazel execution wrapper.

Comment thread .github/workflows/tests.yml
Comment thread cr_checker/resources/exclusion.txt
#
# SPDX-License-Identifier: Apache-2.0
# *******************************************************************************
[cpp,c,h,hpp,trlc,rsl]

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.

this is not good c++, but I guess this file is just moved as-is?

Comment thread cr_checker/tests/MODULE.bazel
Comment thread cr_checker/cr_checker.bzl
Comment on lines +53 to +54
debug (bool, optional): Whether to enable debug mode, providing additional logs.
Defaults to False.

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.

maybe we can delete debug parameter?

Comment thread cr_checker/cr_checker.bzl
Comment on lines +55 to +56
use_memory_map (bool, optional): Whether to use memory mapping for large files to
improve performance. Defaults to False.

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.

Either this increases performance (default true) or it can be deleteted

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I can not say what exactly this does. I do not see it having any effect in the code whatsoever. It just gets passed around.

@nradakovic do you remember what this parameter does or if it even was fully implemented?

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.

Generally speaking mmap is faster than reading files. At least that was the case some years ago. (In some situations?)

Comment thread cr_checker/resources/config.json
Comment thread LICENSES/Apache-2.0.txt
Comment thread REUSE.toml
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.

2 participants