Skip to content

Misc fixes#21

Open
ekacnet wants to merge 5 commits into
mainfrom
dev/miscfixesmay
Open

Misc fixes#21
ekacnet wants to merge 5 commits into
mainfrom
dev/miscfixesmay

Conversation

@ekacnet
Copy link
Copy Markdown
Owner

@ekacnet ekacnet commented May 10, 2026

  • Better parse custom commands used for generating files
  • Fix visiting protobuf and grpc libs
  • Don't rely on the order for properly populating deps or srcs of protobuf libs and grpc libs
  • Don't forget to import cc_proto_library if needed
  • Overall postprocess to work better with strings, load, rules

ekacnet added 5 commits May 10, 2026 11:59
Sometime you might have multiple command that generates different files
in the same group of command and previous implementation was not picking
all the commands leaving some files ungenerated.
After refactoring the way we parse commands for genrule we exposed a bug
in the way some relation existed in the graph we have to fix them.
* preserve load(...) lines understand loaded rule symbols
* emit BUILD rules with more Bazel-like formatting, add ordered attribute
  printing, sorted list values
* correct string formatting including triple-quoted strings
* avoid emitting the same rule more than once
* narrow the companion _hdrs rule behavior to cc_library rules
* fixes a missing-dependency bookkeeping bug with missing.setdefault(...).
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.40893% with 50 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.12%. Comparing base (315d59f) to head (0105078).

Files with missing lines Patch % Lines
build.py 84.27% 39 Missing ⚠️
ninjabuild.py 81.81% 10 Missing ⚠️
build_visitor.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #21      +/-   ##
==========================================
+ Coverage   77.39%   80.12%   +2.72%     
==========================================
  Files          23       23              
  Lines        4575     5101     +526     
==========================================
+ Hits         3541     4087     +546     
+ Misses       1034     1014      -20     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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