Skip to content

[bazel] Modify includes for piserver#648

Open
c8ef wants to merge 1 commit into
p4lang:mainfrom
c8ef:piserver-bazel
Open

[bazel] Modify includes for piserver#648
c8ef wants to merge 1 commit into
p4lang:mainfrom
c8ef:piserver-bazel

Conversation

@c8ef
Copy link
Copy Markdown
Contributor

@c8ef c8ef commented May 17, 2026

BMv2 has following use case:

https://github.com/p4lang/behavioral-model/blob/044fccf9d40b04849f9f0d9b314f63678738ec25/targets/simple_switch_grpc/switch_runner.cpp#L31

In order to support this kind of includes we need the change in this pr.

Signed-off-by: c8ef <c8ef@outlook.com>
@github-actions github-actions Bot added the bazel label May 17, 2026
@c8ef
Copy link
Copy Markdown
Contributor Author

c8ef commented May 17, 2026

cc @fruffy @jafingerhut @matthewtlam for review.

@c8ef
Copy link
Copy Markdown
Contributor Author

c8ef commented May 17, 2026

Also, from this bazel build run, we can see that the build cache is working well. The bazel action finished almost instantly.

@c8ef
Copy link
Copy Markdown
Contributor Author

c8ef commented May 19, 2026

Gentle ping on this PR since it's a required dependency for the bmv2 bazel build~

@jafingerhut
Copy link
Copy Markdown
Contributor

Gentle ping on this PR since it's a required dependency for the bmv2 bazel build~

FYI, I could rubber-stamp approve it, without knowing what the changes mean, as I have no knowledge of how Bazel works, but it would be better if someone with at least some knowledge of Bazel can review it.

@fruffy
Copy link
Copy Markdown
Contributor

fruffy commented May 19, 2026

Bazel changes should be reviewed by @p4lang/google-p4-infra folks.

Copy link
Copy Markdown

@matthewtlam matthewtlam left a comment

Choose a reason for hiding this comment

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

LGTM!

@c8ef Can we update the PR description regarding that we need this to expose the piserver's header files so that BMv2 can successfully build with Bazel without missing header/include errors?

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.

4 participants