Skip to content

Bump Bazel to 2.2.0 - #84

Merged
pudelkoM merged 33 commits into
masterfrom
bazel-1.0.0
Mar 4, 2020
Merged

pudelkoM merged 33 commits into
masterfrom
bazel-1.0.0

Conversation

@Yi-Tseng

@Yi-Tseng Yi-Tseng commented Jan 9, 2020

Copy link
Copy Markdown
Contributor

Fix #12

@pudelkoM

pudelkoM commented Jan 9, 2020 •

Copy link
Copy Markdown
Member

I'd suggest moving directly to 2.0.0.

We could also think about dropping some of our special rules (stratum_cc_library)
and use the official ones.

@pudelkoM

pudelkoM commented Jan 9, 2020

Copy link
Copy Markdown
Member

Good news! Most of our targets still build with 2.0.0. E.g. stratum_bcm and the /hal tree.
Only the P4c related targets fail because of a boost dependency:

@devjitgopalpur

Copy link
Copy Markdown
Contributor

Good news! Most of our targets still build with 2.0.0. E.g. stratum_bcm and the /hal tree.
Only the P4c related targets fail because of a boost dependency:

Is this PR bumping version to 2.0.0?

devjitgopalpur
devjitgopalpur previously approved these changes Jan 9, 2020
@pudelkoM

pudelkoM commented Jan 9, 2020

Copy link
Copy Markdown
Member

Good news! Most of our targets still build with 2.0.0. E.g. stratum_bcm and the /hal tree.
Only the P4c related targets fail because of a boost dependency:

Is this PR bumping version to 2.0.0?

Not yet. @Yi-Tseng started with 1.X, but I'd tried 2.0.0 because why should we be stuck on an old version again?

@pudelkoM

pudelkoM commented Jan 9, 2020

Copy link
Copy Markdown
Member

All test-targets.txt build and pass!

@pudelkoM

pudelkoM commented Jan 9, 2020 •

Copy link
Copy Markdown
Member

All build and tests targets we check in CI work now. I think we made it!

@Yi-Tseng I'm not sure about the code chunks you commented out and leave them to you.

@pudelkoM pudelkoM changed the title Bump Bazel to 1.0.0 Bump Bazel to 2.0.0 Jan 9, 2020
Comment thread stratum/BUILD Resolved
Comment thread stratum/glue/BUILD Resolved
Comment thread stratum/glue/net_util/BUILD Resolved
Comment thread stratum/glue/status/BUILD Resolved
Comment thread stratum/hal/config/BUILD Resolved
@bocon13

bocon13 commented Jan 10, 2020 •

Copy link
Copy Markdown
Member

We could also think about dropping some of our special rules (stratum_cc_library)
and use the official ones.

@devjitgopalpur One of the reasons that we kept these is so that someone else (e.g. Google) could use a different implementation (e.g. compiler options/toolchain/etc.); is this still a use case that you care about?

@devjitgopalpur

Copy link
Copy Markdown
Contributor

We could also think about dropping some of our special rules (stratum_cc_library)
and use the official ones.

@devjitgopalpur One of the reasons that we kept these is so that someone else (e.g. Google) could use a different implementation (e.g. compiler options/toolchain/etc.); is this still a use case that you care about?

Yes, I think we might want to keep these around. Would be handy for compiling to another architecture.

Comment thread WORKSPACE Resolved
Comment thread bazel/patches/grpc.patch
@@ -1,124 +1,24 @@
From 76c126b8f7d35134be88165c63bec872c88e58f2 Mon Sep 17 00:00:00 2001

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.

this file can be removed.

@Yi-Tseng

Copy link
Copy Markdown
Contributor Author

All build and tests targets we check in CI work now. I think we made it!

@Yi-Tseng I'm not sure about the code chunks you commented out and leave them to you.

I am still testing python-grpc targets.
Those targets are:
P4Runtime gRPC python: for PTF
gNMI gRPC python: for gNMI CLI
dummy gRPC library: for dummy CLI

We can remove gNMI gRPC python library if we want to move to go/c++ version gNMI CLI (#74)
we can also remove dummy gRPC python library since we can re-implement the dummy CLI with c++

@pudelkoM

Copy link
Copy Markdown
Member

We could also think about dropping some of our special rules (stratum_cc_library)
and use the official ones.

@devjitgopalpur One of the reasons that we kept these is so that someone else (e.g. Google) could use a different implementation (e.g. compiler options/toolchain/etc.); is this still a use case that you care about?

Yes, I think we might want to keep these around. Would be handy for compiling to another architecture.

Sure. They didn't cause any issues anyway.

Comment thread .circleci/config.yml Outdated
unit_tests:
docker:
- image: stratumproject/build:build
- image: stratumproject/build:bazel-2.0.0

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.

Will change back after merged

pudelkoM
pudelkoM previously approved these changes Jan 13, 2020
@pudelkoM

Copy link
Copy Markdown
Member

CI fails because of this bazel bug. It's just analyze-profile, so not really important. We could either temporarily disable the command or remove it.

@pudelkoM
pudelkoM merged commit b4d745d into master Mar 4, 2020
@pudelkoM
pudelkoM deleted the bazel-1.0.0 branch March 4, 2020 22:57
@pudelkoM pudelkoM mentioned this pull request Mar 8, 2020
ffoulkes added a commit to ffoulkes/stratum that referenced this pull request Nov 15, 2024
- Apply the -Wno-deprecated-declarations compiler flag directly
  to tdi_pre_manager.cc instead of setting it globally.

Signed-off-by: Derek G Foster <[email protected]>
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.

Bump Bazel version to 2.0.0

5 participants