Skip to content

[cr checker] refactor - #365

Merged
LittleHuba merged 3 commits into
mainfrom
joho_fix_cr_checker_symlinks
Jul 31, 2026
Merged

[cr checker] refactor#365
LittleHuba merged 3 commits into
mainfrom
joho_fix_cr_checker_symlinks

Conversation

@hoe-jo

@hoe-jo hoe-jo commented Jul 23, 2026

Copy link
Copy Markdown
Contributor
  • use git based file discovery
  • change from include to exclude based schema
  • read file only once (instead of 3 times)
  • add integration tests

Comment thread cr_checker/cr_checker.bzl Outdated
Comment on lines +24 to +27
label = native.package_relative_label(src)
if str(label.workspace_root):
fail("copyright_checker: srcs must be main-repo labels, got: {}".format(src))
return label.package + "/" + label.name if label.package else label.name

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This assumes that a target ends up pointing to files that have a name starting similar as the target. This is often true but not nearly always...

@hoe-jo
hoe-jo force-pushed the joho_fix_cr_checker_symlinks branch 2 times, most recently from fd80782 to 9a4c684 Compare July 30, 2026 14:57
@hoe-jo
hoe-jo requested review from castler, limdor and ramceb as code owners July 30, 2026 14:57
@hoe-jo hoe-jo changed the title [cr checker] fix symlink resolution [cr checker] refactor Jul 30, 2026
hoe-jo added 3 commits July 30, 2026 17:21
- use git based file discovery
- change from include to exclude based schema
- read file only once (instead of 3 times)
- add integration tests
@hoe-jo
hoe-jo force-pushed the joho_fix_cr_checker_symlinks branch from 9a4c684 to 2ad524a Compare July 30, 2026 15:50
@github-actions

Copy link
Copy Markdown

Coverage Report

Coverage report was generated.

Full report can be downloaded from the CI artifacts (expand Artifacts at the bottom of the run).

Overall coverage rate:

lines......: 86.5%
functions......: 53.7%

@LittleHuba
LittleHuba merged commit 90728a3 into main Jul 31, 2026
16 checks passed
@LittleHuba
LittleHuba deleted the joho_fix_cr_checker_symlinks branch July 31, 2026 07:21
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