Skip to content

bazel: enable layering check for syn tests#10709

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
naveenvenk17:nv-bazel-syn-test-layering-10478
Jun 22, 2026
Merged

bazel: enable layering check for syn tests#10709
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
naveenvenk17:nv-bazel-syn-test-layering-10478

Conversation

@naveenvenk17

Copy link
Copy Markdown
Contributor

Addresses part of #10478.

src/syn/test/BUILD had per-test features = ["-layering_check"] entries, but the tests include exported syn headers through their declared deps. Enable layering checks for the package and remove the stale per-target disables from the ten syn cc_tests.

Test plan:

  • git diff --check
  • buildifier -mode=check -lint=off src/syn/test/BUILD
  • bazelisk query //src/syn/test:all --noshow_progress

I also attempted bazelisk cquery //src/syn/test:ir_test --features=layering_check --noshow_progress; local analysis was blocked because this checkout is missing the src/sta submodule package required by //src/syn/src/ir.

Signed-off-by: naveenvenk17 <naveenvenkat1711@gmail.com>
@naveenvenk17
naveenvenk17 requested a review from a team as a code owner June 20, 2026 15:58
@naveenvenk17
naveenvenk17 requested a review from povik June 20, 2026 15:58

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request updates the src/syn/test/BUILD file to enable the layering_check feature at the package level, while removing the individual -layering_check feature exclusions from all cc_test targets. There are no review comments, so I have no feedback to provide.

@maliberty
maliberty enabled auto-merge June 22, 2026 16:32
@maliberty
maliberty merged commit 5b269de into The-OpenROAD-Project:master Jun 22, 2026
16 of 17 checks passed
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